Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Provide kubeconfig/context defaulting in context create workflow #3806

Open
vuil opened this issue Nov 1, 2022 · 0 comments
Open

Provide kubeconfig/context defaulting in context create workflow #3806

vuil opened this issue Nov 1, 2022 · 0 comments
Labels
area/core-cli kind/feature Categorizes issue or PR as related to a new feature

Comments

@vuil
Copy link
Contributor

vuil commented Nov 1, 2022

Describe the feature request

The context create workflow involving supplying a kubeconfig context can leverage conventions on location of the default kubeconfig file and the active context in the kubeconfig, to minimize the amount of user input is the common cases.
e.g.

Prepopulate default standard kube config location
? Select context creation type Local kubeconfig
? Enter path to kubeconfig (~/.kube/config) /Users/dfein/.kube/config


Kube context selector 
? Select context creation type Local kubeconfig
? Enter path to kubeconfig (~/.kube/config) /Users/dfein/.kube/config
? Enter kube context to use
  > default
    name one
    second name
   

this would help with long kube context names

option to create tanzu context from currently active kube config/context 
? Select context creation type Local kubeconfig
? Enter path to kubeconfig (~/.kube/config) /Users/dfein/.kube/config <enter>
? Select context creation type Local kubeconfig <enter>

would save having to specify kube config / context 

Describe alternative(s) you've considered

Affected product area (please put an X in all that apply)

  • ( ) APIs
  • ( ) Addons
  • (X) CLI
  • ( ) Docs
  • ( ) IAM
  • ( ) Installation
  • ( ) Plugin
  • ( ) Security
  • ( ) Test and Release
  • (X) User Experience
  • ( ) Developer Experience

Additional context

@vuil vuil added kind/feature Categorizes issue or PR as related to a new feature needs-triage Indicates an issue or PR needs to be triaged area/core-cli and removed needs-triage Indicates an issue or PR needs to be triaged labels Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/core-cli kind/feature Categorizes issue or PR as related to a new feature
Projects
None yet
Development

No branches or pull requests

1 participant