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

Tanzu context list should star the context that was specified by tanzu context use #4403

Open
benjaminapetersen opened this issue Feb 16, 2023 · 0 comments
Assignees
Labels
area/core-cli kind/feature Categorizes issue or PR as related to a new feature

Comments

@benjaminapetersen
Copy link
Member

Describe the feature request

tanzu context list ought have a * or signifier next to the default context in use similar to how kubectl will show the currently used context:

# which one is currently set?
tanzu context list
Target:  kubernetes
  NAME                 ISACTIVE  ENDPOINT  KUBECONFIGPATH                                                                               KUBECONTEXT
  tkg-capz-mgmt-azure  false               /Users/you/.kube/config-files/azure.yaml                                              tkg-capz-mgmt-azure-admin@tkg-capz-mgmt-azure
  tkg-mgmt-vc          true                /Users/you/.kube/config-files/vsphere.yaml  tkg-mgmt-vc-admin@tkg-mgmt-vc

# kubeconfig tells me which one it is using
kubectl config get-contexts
CURRENT   NAME                                                CLUSTER                 AUTHINFO                      NAMESPACE
          tkg-capz-azure-antrea-admin@tkg-capz-azure-antrea   tkg-capz-azure-antrea   tkg-capz-azure-antrea-admin
*         tkg-capz-mgmt-azure-admin@tkg-capz-mgmt-azure       tkg-capz-mgmt-azure     tkg-capz-mgmt-azure-admin
          tkg-mgmt-vc-admin@tkg-mgmt-vc                       tkg-mgmt-vc             tkg-mgmt-vc-admin

Describe alternative(s) you've considered

N/A

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

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

Additional context

N/A

@benjaminapetersen benjaminapetersen added kind/feature Categorizes issue or PR as related to a new feature needs-triage Indicates an issue or PR needs to be triaged labels Feb 16, 2023
@vuil vuil added area/core-cli and removed needs-triage Indicates an issue or PR needs to be triaged labels Feb 16, 2023
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

3 participants