Mihaela Balutoiu
802c7527fe
Add more swagger annotations for apiserver
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-19 18:06:13 +03:00
Gabriel
ddd6976115
Merge pull request #139 from mihaelabalutoiu/fix-swagger-annotations
...
Fix swagger annotations
2023-07-18 20:03:36 +03:00
Mihaela Balutoiu
e3275b4dc1
Update generated swagger client code
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-18 19:29:02 +03:00
Mihaela Balutoiu
9ba3ae487b
Update the swagger annotations for the apiserver
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-18 19:27:21 +03:00
Gabriel
0d08808c81
Merge pull request #138 from ionutbalutoiu/small-fixes
...
Small fixes to the GARM api server
2023-07-18 17:25:30 +03:00
Ionut Balutoiu
572094700d
Fix calling /api/v1/first-run without ending /
...
The endpoint endpoint `/api/v1/first-run` only works when we
have ending `/`.
This commit fixes this.
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-07-18 17:01:17 +03:00
Ionut Balutoiu
4787622450
Fix Content-Type not being set on invalidAuthResponse
...
When `w.WriteHeader(...)` is called, the HTTP headers are written in
the HTTP response.
Therefore, calling `w.Header().Add(...)` after `w.WriteHeader(...)`
will not have any effect.
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-07-18 16:42:32 +03:00
Gabriel
91dd082f81
Merge pull request #136 from mihaelabalutoiu/add-more-swagger-client-api
...
Add more functionality to swagger client library
2023-07-18 16:00:16 +03:00
Mihaela Balutoiu
520f468500
Update generated swagger client code
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-18 15:20:31 +03:00
Mihaela Balutoiu
f13d19b4ec
Add more functionality to swagger client library
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-18 15:19:53 +03:00
Gabriel
8089244c9c
Merge pull request #134 from mihaelabalutoiu/add-more-swagger-client-api
...
Implement more features for the swagger client API
2023-07-17 16:16:46 +03:00
Mihaela Balutoiu
db21fb6ea9
Update generated swagger client code
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-17 14:24:54 +03:00
Mihaela Balutoiu
98e415bf11
Add more swagger annotations to apiserver
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-17 12:00:51 +03:00
Gabriel
fbee4d4cbd
Merge pull request #133 from gabriel-samfira/fix-garm-cli-version
...
Properly set garm-cli version
2023-07-16 14:13:10 +03:00
Gabriel Adrian Samfira
2076581d47
Properly set garm-cli version
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-16 11:12:32 +00:00
Gabriel
824a1efd78
Merge pull request #132 from gabriel-samfira/add-dockerfile-and-workflow
...
Add dockerfile and workflow
2023-07-16 02:34:03 +03:00
Gabriel Adrian Samfira
30036bd128
Copy x509 root CAs
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-15 23:22:38 +00:00
Gabriel Adrian Samfira
f96ea1edcf
Add dockerfile and workflow
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-15 23:22:32 +00:00
Gabriel
72e0b12f62
Merge pull request #131 from mihaelabalutoiu/fix-routers-typo
...
Fix `apiserver/routers/routers.go` typo
2023-07-10 19:50:10 +03:00
Mihaela Balutoiu
a871931210
Fix apiserver/routers/routers.go typo
...
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
2023-07-10 19:20:19 +03:00
Gabriel
9e849ed8f9
Merge pull request #128 from gabriel-samfira/set-on-delete-for-jobs
...
Set on delete for jobs
2023-07-05 22:56:41 +03:00
Gabriel Adrian Samfira
dea941df43
Set on delete for jobs
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-05 19:49:48 +00:00
Gabriel
9a8773539a
Merge pull request #127 from ionutbalutoiu/add-swagger-client-auth-info
...
Add swagger client auth info
2023-07-05 14:37:51 +03:00
Ionut Balutoiu
e5b52bea34
Update swagger client generated code
...
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-07-05 14:25:31 +03:00
Ionut Balutoiu
a952729082
Update swagger:meta API info
...
* Include details about what API consumes / produces.
* Add info about GARM authentication.
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-07-05 14:24:37 +03:00
Gabriel
5e18f8570e
Merge pull request #126 from ionutbalutoiu/swagger-client-api-implementation
...
Add more swagger client API implementation
2023-07-05 13:58:29 +03:00
Ionut Balutoiu
5891216179
Update generated swagger client code
...
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-07-05 13:48:01 +03:00
Ionut Balutoiu
ca878507b5
Add more functionality to swagger client library
...
* Update `go:generate` annotations to use stable swagger tag instead
of relying on the `swagger` CLI tool already installed.
* Rename the following route IDs from repositories:
* `Create` -> `CreateRepo`
* `List` -> `ListRepos`
* `Get` -> `GetRepo`
* `Delete` -> `DeleteRepo`
The swagger CLI spec validation will fail if the route IDs are not unique.
* Fully implement the all the API calls to:
* `/api/v1/repositories`
* `/api/v1/instances`
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-07-05 13:47:58 +03:00
Gabriel
3fe5d510fe
Merge pull request #124 from gabriel-samfira/fix-entity-update
...
Fix entity update
2023-07-05 13:39:07 +03:00
Gabriel Adrian Samfira
fe2cb01528
Slight refactor and fix tests
...
Updating a pool will no longer try to create a pool manager if one does
not already exist. A pool manager must be started when a pool is created.
Updating an existing pool without a pool manager is an error condition.
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-05 09:46:19 +00:00
Gabriel
2efb1b2109
Merge pull request #125 from gabriel-samfira/add-entity-update-subcommand
...
Add entity update subcommand
2023-07-05 03:06:08 +03:00
Gabriel Adrian Samfira
86ed06d6ff
Rename UpdateRepositoryParams to UpdateEntityParams
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-05 00:00:24 +00:00
Gabriel Adrian Samfira
6c6c6636ba
Add org and enterprise update
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-04 23:24:19 +00:00
Gabriel Adrian Samfira
c162bde6cb
Set pool manager status
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-04 23:05:01 +00:00
Gabriel Adrian Samfira
cec1d59991
Add repo update command
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-04 22:27:25 +00:00
Gabriel Adrian Samfira
3d26900d32
Set credentials in pool manager
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-04 22:11:45 +00:00
Gabriel Adrian Samfira
f12d93f14c
Use random UUID4
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-04 14:24:06 +00:00
Gabriel
e1cf03d02e
Merge pull request #122 from gabriel-samfira/amend-comment
...
Update comment on function
2023-07-04 13:48:52 +03:00
Gabriel Adrian Samfira
a41eeb6f1e
Update comment on function
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-04 10:48:14 +00:00
Gabriel
0889f6c999
Merge pull request #86 from gabriel-samfira/add-job-tracking
...
Add job tracking
2023-07-04 10:23:42 +03:00
Gabriel Adrian Samfira
6c06afb8e8
Don't add aditional labels to GH runner
...
For now, the aditional labels would only contain the job ID that triggered
the creation of the runner. It does not make sense to add this label to the
actual runner that registeres against github. We can simply use it internally
by fetching it from the DB.
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:48:22 +00:00
Gabriel Adrian Samfira
0ab8f73bb4
Use r.log()
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
9101cdc0a2
Lower the tool update interval to 1 minute
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
f92ac2a74f
Lower backoff timer to 1 minute
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
7f510ec40a
Check if we have a recorded job
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
45dceae88c
Add requested labels to cli
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
774b790cca
tweak select
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
6169677cd9
Convert uuid.Nil to NULL
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
f027bc4fbd
Attempt to add OnDelete:CASCADE to sqlite
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00
Gabriel Adrian Samfira
117a41e9ed
Add cascade on tags
...
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-07-03 07:46:20 +00:00