-
Notifications
You must be signed in to change notification settings - Fork 23
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
[Idea] Being able to find clusters/contexts that have a matching k8s resource #15
Comments
I don't understand how it works. Aren’t you shelling out to a "find" plugin? |
No, I changed the code so that if it detected the I.E.
Lines 223 to 226 in 87284f2
Line 260 in 87284f2
|
Interesting, so it's like I didn't design But right now I think just seeing |
So I forked this and added a feature that my team has been wanting, which is a command that allows you to find a context that contains a K8s resource we're looking for. This often comes up during oncall issues where a service or deployment is acting strange but we don't know where it's located.
Ex.
kubectl foreach -- find svc foo -n bar
This would return any and all contexts that contain this resource. Not sure if this is something you'd be interested in for upstream or find useful, but figured I'll bring it up.
The text was updated successfully, but these errors were encountered: