-
Notifications
You must be signed in to change notification settings - Fork 38
feat(cli): allow setting default values for Control Plane and CAS #109
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
Conversation
Awesome! As a follow up it could be good to update the upstream docs to link to this alternate method of configuring the CLI https://docs.chainloop.dev/getting-started/installation#configure-cli-optional |
…points endpoints at the CLI build time Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
app/cli/cmd/root.go
Outdated
flagOutputFormat string | ||
actionOpts *action.ActionsOpts | ||
logger zerolog.Logger | ||
defaultCpAPI = "api.cp.chainloop.dev:443" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since CAS and CP are acronyms, I'd update them.
defaultCpAPI
=> defaultCPAPI
defaultCasAPI
=> defaultCASAPI
|
||
By default CLI uses the following values for the Control Plane and Artifacts CAS API endpoints: | ||
|
||
- Artifacts CAS: api.cas.chainloop.dev:443 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for another pull request (no need to block this one). To make it clear, I'd indicate that this is optional, that these values can be overridden "at runtime" on a need-to-need basis. https://github.com/chainloop-dev/chainloop#configure-cli-optional
Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Congrats and welcome!! 🎉
allow setting default values for Control Plane and CAS enpoints endpoints at the CLI build time
closes #96