Created
February 13, 2026 22:24
-
-
Save se7enack/7fc5adb93aff035ef3a69d63c1c477e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| whatowns() { | |
| [ -z "$1" ] || [ -z "$2" ] && return 0 | |
| kubectl get pod "$1" -n "$2" \ | |
| -o jsonpath='{.metadata.ownerReferences[0].kind}{" / "}{.metadata.ownerReferences[0].name}{"\n"}' \ | |
| 2>/dev/null | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment