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 get resource by name with --all-namespaces=true #72829

Closed
mjaow opened this Issue Jan 11, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@mjaow
Copy link

mjaow commented Jan 11, 2019

What would you like to be added:
why not support get resources by name with --all-namespaces=true
like
kubectl get pods redis-xxx --all-namespaces=true

Why is this needed:
in some cases,user may only know the podname and donnot know the namespace of it.It 's inconvenient for him to find it in cluster

@mjaow

This comment has been minimized.

Copy link

mjaow commented Jan 11, 2019

/sig cli

@k8s-ci-robot k8s-ci-robot added sig/cli and removed needs-sig labels Jan 11, 2019

@liggitt

This comment has been minimized.

Copy link
Member

liggitt commented Jan 12, 2019

does this work: --all-namespaces --field-selector=metadata.name=<name>

@mjaow

This comment has been minimized.

Copy link

mjaow commented Jan 12, 2019

@liggitt thx

@mjaow mjaow closed this Jan 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment