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

Allow setting a default subscription as az does #56

Open
blanquicet opened this issue Feb 5, 2024 · 0 comments
Open

Allow setting a default subscription as az does #56

blanquicet opened this issue Feb 5, 2024 · 0 comments
Labels
config Command config good first issue Good for newcomers
Milestone

Comments

@blanquicet
Copy link
Member

Current situation

We must specify every time the subscription ID. Given that usually users work in one single subscription, let's allow to set it once and forever.

Ideal situation

Analogous to az, allow setting a default subscription:

az account set --subscription <mySubscriptionID>
kubectl aks config set-subscription <mySubscriptionID>

It doesn't make sense to have a use-subscription flag because we can't set more than one subscription.

Implementation details

  • The config import command should also import and set the subscription in the config file.
  • If users use the --subscription flag, it should have precedence over the one in the config file.
  • Should we add another command set-subscription or make it a sub-command of set so that we have: set --node and set --subscription?
  • Should we have unset all, unset nodes [node1,node2,...,nodeX]> (optionally, user can unset one or mode nodes) and unset subscription?
@blanquicet blanquicet added good first issue Good for newcomers config Command config labels Feb 5, 2024
@blanquicet blanquicet added this to the v0.2.6 milestone Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Command config good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant