Commit graph

926 commits

Author SHA1 Message Date
Fabian Fulga
e221698299 Update Performance Considerations - Cached runners section 2025-01-17 10:14:24 +02:00
Gabriel
b60fad59d5
Merge pull request #324 from cloudbase/dependabot/go_modules/github.com/bradleyfalzon/ghinstallation/v2-2.13.0
Bump github.com/bradleyfalzon/ghinstallation/v2 from 2.12.0 to 2.13.0
2025-01-07 00:19:14 +02:00
Gabriel
a040dde9b4
Merge pull request #325 from cloudbase/dependabot/go_modules/golang.org/x/oauth2-0.25.0
Bump golang.org/x/oauth2 from 0.24.0 to 0.25.0
2025-01-07 00:18:20 +02:00
dependabot[bot]
83ee1724db
Bump golang.org/x/oauth2 from 0.24.0 to 0.25.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 06:38:40 +00:00
dependabot[bot]
5d6ace6a2c
Bump github.com/bradleyfalzon/ghinstallation/v2 from 2.12.0 to 2.13.0
Bumps [github.com/bradleyfalzon/ghinstallation/v2](https://github.com/bradleyfalzon/ghinstallation) from 2.12.0 to 2.13.0.
- [Release notes](https://github.com/bradleyfalzon/ghinstallation/releases)
- [Commits](https://github.com/bradleyfalzon/ghinstallation/compare/v2.12.0...v2.13.0)

---
updated-dependencies:
- dependency-name: github.com/bradleyfalzon/ghinstallation/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-03 06:41:00 +00:00
Gabriel
f43f797883
Merge pull request #322 from gabriel-samfira/update-deps
Update dependencies
2024-12-20 20:59:10 +02:00
Gabriel Adrian Samfira
c42c3f580e Update dependencies
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-20 18:54:05 +00:00
Gabriel
72034d445a
Merge pull request #321 from cloudbase/dependabot/go_modules/github.com/jedib0t/go-pretty/v6-6.6.5
Bump github.com/jedib0t/go-pretty/v6 from 6.6.4 to 6.6.5
2024-12-20 20:47:47 +02:00
dependabot[bot]
e96145833c
Bump github.com/jedib0t/go-pretty/v6 from 6.6.4 to 6.6.5
Bumps [github.com/jedib0t/go-pretty/v6](https://github.com/jedib0t/go-pretty) from 6.6.4 to 6.6.5.
- [Release notes](https://github.com/jedib0t/go-pretty/releases)
- [Commits](https://github.com/jedib0t/go-pretty/compare/v6.6.4...v6.6.5)

---
updated-dependencies:
- dependency-name: github.com/jedib0t/go-pretty/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-20 18:42:29 +00:00
Gabriel
e69838b678
Merge pull request #320 from cloudbase/gabriel-samfira-patch-2
Create dependabot.yml
2024-12-20 20:41:22 +02:00
Gabriel
1f3c7cd34a
Create dependabot.yml 2024-12-20 20:35:04 +02:00
Gabriel
54505289d5
Merge pull request #319 from gabriel-samfira/update-deps
Update dependencies
2024-12-12 23:48:52 +02:00
Gabriel Adrian Samfira
f0aaf20998
Update dependencies
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-12 23:42:01 +02:00
Gabriel
1cb2d70546
Merge pull request #318 from gabriel-samfira/fix-nil-pointer-cli
Fix nil pointer dereference when rendering message
2024-12-12 10:49:09 +02:00
Gabriel Adrian Samfira
f8b4118306
Fix nil pointer dereference when rendering message
We failed to properly check the error of the update url call before
trying to access the payload, which lead to a panic in the CLI. This
change should fix that.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-12 09:49:42 +02:00
Gabriel
c4a7a59bc9
Merge pull request #316 from gabriel-samfira/fix-run-as-user
Fix hardcoded user value in template
2024-12-05 01:28:43 +02:00
Gabriel Adrian Samfira
67928ccd94
Fix hardcoded user value in template
The User option in the systemd unit file used when JIT configs are enabled
had a hardcoded value of "runner". This change fixes that oversight.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-05 00:04:11 +02:00
Gabriel
7d889f0cdd
Merge pull request #315 from mercedes-benz/fix/makefile
fix: remove duplication in Makefile
2024-11-26 16:59:14 +02:00
Michael Kuhnt
53bc1eedce fix: remove duplication in Makefile 2024-11-26 15:04:53 +01:00
Gabriel
8e13588edd
Merge pull request #314 from mercedes-benz/improve_error_message
Improve error messages in garm log
2024-11-26 10:44:41 +02:00
Michael Kuhnt
6167d8c7fd lint: exclude gosec G115 2024-11-26 09:23:58 +01:00
Michael Kuhnt
3a95b8f704 fix linter finding 2024-11-26 07:53:02 +01:00
Michael Kuhnt
386aba18c0 set specific linter version 2024-11-26 07:49:08 +01:00
Michael Kuhnt
d6de59619d commit suggestion 2024-11-22 16:49:56 +01:00
Michael Kuhnt
935c9dcd96
Update database/sql/jobs.go
Co-authored-by: Gabriel <samfiragabriel@gmail.com>
2024-11-22 16:40:23 +01:00
Michael Kuhnt
8a31d81faf ignore workflow_jobs without labels 2024-11-22 11:48:59 +01:00
Michael Kuhnt
c5c74a8dfc add runner name in error message 2024-11-22 11:48:59 +01:00
Gabriel
06dfc2708d
Merge pull request #306 from gabriel-samfira/fix-conflicting-options
Remove conflicting short hand option
2024-10-23 16:43:54 +03:00
Gabriel Adrian Samfira
2273b1de19 Remove conflicting short hand option
The --format command line option is persistent to allow all commands to
output to either json or table. The shorthand of this option caused a
conflict with other subcommands that also define the -f option. Removing
the persitent short form option.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-10-23 13:38:05 +00:00
Gabriel
54aa3815df
Merge pull request #302 from fabi200123/cached-runner-docs
Add Using Cached Runner documentation
2024-10-22 13:22:56 +03:00
Fabian Fulga
8515bf1083 Add Using Cached Runner documentation 2024-10-16 08:28:12 +03:00
Gabriel
465b12beb5
Merge pull request #299 from gabriel-samfira/use-errors-wrap
Use errors.Wrap() in repositories.go
2024-10-06 14:30:36 +03:00
Gabriel
6e38e23cdc
Merge pull request #301 from gabriel-samfira/copy-ca-certs
Copy the CA certificates to final image
2024-09-28 22:40:32 +03:00
Gabriel Adrian Samfira
1ba14f858d Copy the CA certificates to final image
The busybox image does not contain CA certificares. This adds them from
the builder stage.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:30:20 +00:00
Gabriel
72e8aa10ee
Merge pull request #300 from gabriel-samfira/add-default-value
Add a default value to the new --format option
2024-09-28 22:26:54 +03:00
Gabriel Adrian Samfira
f9abb30128 Add a default value to the new --format option
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:21:20 +00:00
Gabriel
5323fcb513
Merge pull request #298 from gabriel-samfira/add-format-option
Add --format command line option
2024-09-28 22:15:13 +03:00
Gabriel Adrian Samfira
36b9e9f296 Use errors.Wrap() in repositories.go
The API code unwraps errors wrapped by the errors.Wrap() function. It
falls back to 500 error if it can't determine any other error type.

Ultimately we need to migrate to the fmt.Errorf() pattern. But for now
at least, we need to return proper errors. Any 500 error will not output
details to the API. Neither will 401 for similar reasons.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:13:05 +00:00
Gabriel Adrian Samfira
63000113ee Add --format command line option
This change adds a --format command line option to the GARM cli. This
option accepts either json or table as a value.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:09:45 +00:00
Gabriel
cf231c9d8d
Merge pull request #297 from gabriel-samfira/add-omitempty
Add omitempty to all struct fields
2024-09-28 21:25:07 +03:00
Gabriel Adrian Samfira
2dfde30aad Add omitempty to all struct fields
The JSON that gets returned by the API is filled with empty values
which serve no purpose. Adding omitempty will skip empty values.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 18:19:14 +00:00
Gabriel
bdb26c1827
Merge pull request #296 from gabriel-samfira/make-tag-search-case-insensitive
Do a case insensitive search for tags
2024-09-28 21:03:29 +03:00
Gabriel Adrian Samfira
e5fd702544 Fix tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-27 08:05:43 +00:00
Gabriel Adrian Samfira
c319341ec5 Do a case insensitive search for tags
This change switches to a case insensitive search for pool tags.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-27 07:54:29 +00:00
Gabriel
3a2061afb9
Merge pull request #278 from fabi200123/version-v3
Add provider interface versioning
2024-09-04 15:15:46 +03:00
Fabian Fulga
dcff6f9854 Add getProviderBaseParams function in basePoolManager 2024-09-02 15:25:44 +03:00
Fabian Fulga
7074f01541 Move ValidateResult to common package 2024-09-02 10:39:45 +03:00
Fabian Fulga
08244161a1 Update garm-provider-common package 2024-08-22 11:40:37 +03:00
Fabian Fulga
03f280da59 Version provider interface 2024-08-21 16:14:38 +03:00
Gabriel
deb30e1d25
Merge pull request #288 from gabriel-samfira/use-lxd-image-mirror
Allow using LXD image mirror
2024-08-14 23:57:41 +03:00