Skip to content

[Bug] kubectl-plugin get cluster without all-namespace still shows all-namespace. #3806

@fscnick

Description

@fscnick

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

kubectl-plugin

What happened + What you expected to happen

The --all-namespaces is false by default. However, it still shows the clusters under all namespaces.

Image

Reproduction script

Create two RayClusters in the different namespaces. And get Raycluster without specifying --all-namespace. The result will look like the screenshot above.

kubectl ray create cluster sample-cluster
kubectl create namespace ns01
kubectl ray create cluster ns-cluster -n ns01
kubectl ray get cluster

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions