Skip to content
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

Setting cluster status to active without passing --environment does not return error #37

Open
swarupdonepudi opened this issue Nov 14, 2019 · 4 comments

Comments

@swarupdonepudi
Copy link
Contributor

When I ran the command to set cluster status to active without passing the environment, the call returns a "Setting cluster status active" message but does not really set the cluster to active. But when I pass --environment dev I see the following output.

Setting cluster environment to dev
Setting cluster status active

Does not work(which is great): kubectl hyperkube set-cluster-status --status active --cluster <cluster-fqdn>
Works: kubectl hyperkube set-cluster-status --status active --cluster <cluster-fqdn> --environment <cluster-env>

Not working version should display an error message to the user.

@swarupdonepudi
Copy link
Contributor Author

swarupdonepudi commented Nov 14, 2019

I just noticed that running this command without passing --environment is inserting a record in dynamodb table which can be verified by running kubectl hyperkube list

@sepulworld
Copy link
Contributor

We didn’t initially want to make these cluster meta data items mandatory, but perhaps we do now?

@swarupdonepudi
Copy link
Contributor Author

I think it is a good idea to make environment a mandatory input with a sane default dev maybe?

@sepulworld
Copy link
Contributor

Perhaps the default should be configurable. I was thinking maybe a dynamodb table meant for configuration defaults that can be used to override hard coded constants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants