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
Add cluster name environment variable #4560
Add cluster name environment variable #4560
Conversation
rocktavious
commented
Mar 2, 2018
- Add an environment variable to configure cluster name
- Expose envionrment variable in CLI documentation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
SIgned CLA |
/assign @justinsb |
@rocktavious #4561 fixes the verify bazel test, so please rebase /ok-to-test |
453c29c
to
50edc6f
Compare
@chrislovecnm - I rebased, but looks like Travis is still failing - advice? |
/assign @robinpercy |
/lgtm |
Thanks @rocktavious! /lgtm |
/assign @chrislovecnm |
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.
Just a nitpick on the wording since we will soon have windows support. Overall looks great. Would love to see viper fully implemented as well.
cmd/kops/root.go
Outdated
|
||
cmd.PersistentFlags().StringVarP(&rootCommand.clusterName, "name", "", "", "Name of cluster") | ||
defaultClusterName := os.Getenv("KOPS_CLUSTER_NAME") | ||
cmd.PersistentFlags().StringVarP(&rootCommand.clusterName, "name", "", defaultClusterName, "Name of cluster. Overrides $KOPS_CLUSTER_NAME") |
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.
Just a nit pick, since we will soon have windows support
Overrides $KOPS_CLUSTER_NAME
Should we do
Overrides KOPS_CLUSTER_NAME environment variable
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.
How does that look/sound on both environment variables?
- Add an environment variable to configure cluster name - Expose envionrment variable in CLI documentation
772b235
to
8382cbb
Compare
@robinpercy @chrislovecnm - Rebased on master - made the cli documentation change suggested and regenerated the documentation. |
/lgtm Thanks for the PR! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrislovecnm, rdrgmnzs, robinpercy, rocktavious The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |