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

support karmadactl config get-contexts #4304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhzhuang-zju
Copy link
Contributor

What type of PR is this?
/kind feature

What this PR does / why we need it:
support karmadactl config get-contexts to retrieve one or more contexts from a kubeconfig
Which issue(s) this PR fixes:
Parts of #4297

Special notes for your reviewer:
NONE
Does this PR introduce a user-facing change?:

support karmadactl config get-contexts to retrieve one or more contexts from a kubeconfig

@zhzhuang-zju
Copy link
Contributor Author

Verification report:

  • when no contexts in a kubeconfig
➜  karmada git:(master) ✗ _output/bin/linux/amd64/karmadactl config get-contexts 
CURRENT   NAME   CLUSTER   AUTHINFO   NAMESPACE
  • others
➜  karmada git:(master) ✗ _output/bin/linux/amd64/karmadactl config get-contexts              
CURRENT   NAME                CLUSTER             AUTHINFO            NAMESPACE
          karmada-apiserver   karmada-apiserver   karmada-apiserver   
*         karmada-host        kind-karmada-host   kind-karmada-host   
➜  karmada git:(master) ✗ _output/bin/linux/amd64/karmadactl config get-contexts --no-headers 
      karmada-apiserver   karmada-apiserver   karmada-apiserver   
*     karmada-host        kind-karmada-host   kind-karmada-host 

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

Successfully merging this pull request may close these issues.

1 participant