Commit graph

908 commits

Author SHA1 Message Date
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
Gabriel Adrian Samfira
9a6f0e7926 Pin go version
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-14 20:52:10 +00:00
Gabriel Adrian Samfira
f5992b7344 Allow using LXD image mirror
This change allows GARM tests to use a mirror for LXD images, allowing
for faster image downloads.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-14 19:44:23 +00:00
Gabriel
3b1e3c77e1
Merge pull request #287 from gabriel-samfira/switch-to-self-hosted
Switch to self hosted runner
2024-08-14 20:14:52 +03:00
Gabriel Adrian Samfira
d5cbc5bfb2 Switch to self hosted runner
GitHub hosted runners seem to have issues with LXD containers.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-12 21:15:47 +00:00
Gabriel
fc32978c63
Merge pull request #286 from gabriel-samfira/replace-ngrok
Replace ngrok
2024-08-12 22:29:37 +03:00
Gabriel Adrian Samfira
e1e46211a1 Replace ngrok
This change switches the integration tests to an alternate tunneling
service.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-12 19:22:52 +00:00
Gabriel
237afdb25d
Merge pull request #284 from gabriel-samfira/prepare-v0.1.5
Prepare v0.1.5
2024-08-08 15:32:37 +03:00
Gabriel Adrian Samfira
926797dda5 Pin provider versions and switch to busybox
Thic change pins all providers to a released version. We also switched
the GARM image to busybox. This adds an extra ~45MB, but we get an image
we can exec into.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-08 12:22:16 +00:00
Gabriel
82d70d2310
Merge pull request #4 from fabi200123/small-nits
Update docs
2024-08-08 15:05:17 +03:00
Fabian Fulga
b9aafbe65e Update docs 2024-08-08 15:01:24 +03:00
Gabriel Adrian Samfira
a12ad2fa89 Fix example spaces vs tabs
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-08 09:29:15 +00:00
Gabriel Adrian Samfira
932ee4693e Remove extra doc
The database.md doc has been added to config.md.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-08 09:16:09 +00:00
Gabriel Adrian Samfira
1a54bcfc35 Restructure docs
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-08 09:13:55 +00:00
Gabriel Adrian Samfira
6640599584 Add more info on events
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-06 15:18:18 +00:00
Gabriel Adrian Samfira
9b0633c557 Update quickstart and using_garm, add events.md
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-06 15:18:18 +00:00
Gabriel Adrian Samfira
35f4bea269 Update docs
Reword some phrases, update links and steps.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-06 15:18:18 +00:00
Gabriel
56b0e6065a
Merge pull request #283 from gabriel-samfira/add-json-tags
Add JSON tags to the ChangePayload struct
2024-08-06 16:53:12 +03:00
Gabriel Adrian Samfira
a7f1a51a7d Add JSON tags to the ChangePayload struct
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-08-06 13:43:58 +00:00