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

--no-headers available for k config get-contexts but not get-clusters #123466

Open
gburke-ppb opened this issue Feb 23, 2024 · 2 comments · May be fixed by #123610
Open

--no-headers available for k config get-contexts but not get-clusters #123466

gburke-ppb opened this issue Feb 23, 2024 · 2 comments · May be fixed by #123610
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/cli Categorizes an issue or PR as relevant to SIG CLI.

Comments

@gburke-ppb
Copy link

What happened?

$ kubectl config get-clusters --no-headers
error: unknown flag: --no-headers

whereas

$ kubectl config get-contexts --no-headers
      arn:aws:eks:eu-west-1:....
      ...

What did you expect to happen?

The list of clusters to be displayed without the NAME header

How can we reproduce it (as minimally and precisely as possible)?

Run kubectl config get-clusters --no-headers

Anything else we need to know?

No response

Kubernetes version

:$ kubectl version
Client Version: v1.29.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.0-eks-c417bb3

Cloud provider

not relevant to the issue

OS version

MacOS
$ sw_vers
ProductName:            macOS
ProductVersion:         14.2.1
BuildVersion:           23C71

$ uname -a
Darwin MACC02DV7WCMD6R 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 x86_64 i386 Darwin

Install tools

`Homebrew`
$ brew info kubernetes-cli
==> kubernetes-cli: stable 1.29.2 (bottled), HEAD
Kubernetes command-line interface
https://kubernetes.io/docs/reference/kubectl/
/usr/local/Cellar/kubernetes-cli/1.29.2 (234 files, 60.3MB) *
  Poured from bottle using the formulae.brew.sh API on 2024-02-15 at 11:59:04
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/k/kubernetes-cli.rb
License: Apache-2.0
==> Dependencies
Build: bash ✔, coreutils ✔, go ✔
==> Options
--HEAD
	Install HEAD version
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

@gburke-ppb gburke-ppb added the kind/bug Categorizes issue or PR as related to a bug. label Feb 23, 2024
@k8s-ci-robot k8s-ci-robot added needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 23, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@neolit123
Copy link
Member

/sig cli

@k8s-ci-robot k8s-ci-robot added sig/cli Categorizes an issue or PR as relevant to SIG CLI. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 23, 2024
@liggitt liggitt added kind/feature Categorizes issue or PR as related to a new feature. and removed kind/bug Categorizes issue or PR as related to a bug. labels Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/cli Categorizes an issue or PR as relevant to SIG CLI.
Projects
Status: Needs Triage
Development

Successfully merging a pull request may close this issue.

4 participants