-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make it easier to use garm-cli pool create #292
Comments
Yes to most of the questions, "maybe" to referencing repo by name. The reason for that is that garm supports ghes and github. There is the slim (but still possible) chance that you may have the same owner and repo combination in both and both are configured in garm. There is a way to do this with an extra query. Given that it's a pain in the behind to keep copying that ID, it may be worth adding. Will create a pr next week as time permits. |
Added a |
as for referencing by name, I will try to create a PR for that as well. Repos actually have 2 components. The owner and the name of the repo. You and I can both have a repo with the same name. So to identify a repo, we'd need to specify something like |
In the case of the cryptic error, that's indeed a problem. It shouldn't be a This was started here: Will go through the rest of the files in the following days. |
trying to create a new pool for a given repo we currently have to use the repo id, which is somewhat cumbersome, because there is no apparent way to get the repo id from a name. we have to use
garm-cli repo list
and manually parse the id from the output, which is quite cumbersome and error prone.for example, trying this:
./garm-cli pool create \ --enabled true \ --min-idle-runners 0 \ --max-runners 2 \ --tags azure,ubuntu \ --repo terraform-azure-garm-example-repository \ --provider-name azure \ --os-arch amd64 \ --os-type linux \ --flavor Standard_F8s \ --image Canonical:0001-com-ubuntu-server-jammy:22_04-lts-gen2:22.04.202206040
resulted in cryptic garm-cli error:
and looking at the garm logs we have another cryptic error:
can these errors be somehow improved?
can there be an easier way for creating pools? or maybe, to list repos as json (and to find repos by their properties (e.g. name))?
The text was updated successfully, but these errors were encountered: