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

Feature: stackablectl support for kubectl contexts #222

Open
Tracked by #148
NickLarsenNZ opened this issue Mar 15, 2024 · 2 comments
Open
Tracked by #148

Feature: stackablectl support for kubectl contexts #222

NickLarsenNZ opened this issue Mar 15, 2024 · 2 comments

Comments

@NickLarsenNZ
Copy link
Member

NickLarsenNZ commented Mar 15, 2024

I would like to use stackablectl against multiple clusters without having to change the default kubectl context.

For example, I can do:

kubectl --context cluster-a get pods -A
kubectl --context clister-b get pods -A

I would like to be able to do:

stackablectl --context cluster-a list stacklets
stackablectl --context cluster-b list stacklets

An alternative argument could be --kube-context in case --context is misleading, or it could mean something for stackablectl itself.

@NickLarsenNZ
Copy link
Member Author

NickLarsenNZ commented Jul 25, 2024

Shell completion is a must, so you can do:

stackablectl --context clus<TAB>
stackablectl --context cluster-<TAB>
cluster-a
cluster-b

same as kubectl

@NickLarsenNZ
Copy link
Member Author

This would come in handy for spinning up multiple Replicated clusters, and running tests against each in parallel.

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

No branches or pull requests

1 participant