Created
November 7, 2022 09:02
-
-
Save AKSarav/37ad310e2090b5c69bc79dc0522da512 to your computer and use it in GitHub Desktop.
Kubectl Diff Env variables
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
diff <(kubectl get deployments deployment1 -n ns1 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort) <(kubectl get deployments deployment2 -n ns2 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment