-
-
Save thikade/fce2df4201bc3a60d9eb07edf5791387 to your computer and use it in GitHub Desktop.
List and VERIFY all objects in helm deployment
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
# helm get manifest $RELEASE_NAME | yq -N eval '[.kind, .metadata.name] | join("/")' - | sort | |
helm get manifest $RELEASE_NAME | yq -N '[.kind,.metadata.name] | join("/") '| sort | \ | |
while read X; do \ | |
Y=$(kubectl get $X -o name 2>/dev/null); \ | |
test $? -eq 0 && Y="OK " || Y="MISSING"; \ | |
echo "$Y $X"; \ | |
done | |
# sample output: | |
MISSING ConfigMap/elastic-7 | |
MISSING DeploymentConfig/elastic-7 | |
OK PersistentVolumeClaim/elastic-7 | |
MISSING Route/elastic-7 | |
MISSING SealedSecret/elastic-7-secured | |
MISSING Service/elastic-7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment