Created
October 27, 2020 15:44
-
-
Save sblack4/71a10452466392cc78d06dcbb1d145d2 to your computer and use it in GitHub Desktop.
Running it over multiple helm charts required a simple script. Here I use bash to get the helm charts from every namespace in the cluster and then iterate over them, running them through the mapkubeapis tool.
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
#!/bin/bash | |
helm list -A | while read line; do | |
linearray=($line) | |
release=${linearray[0]} | |
namespace=${linearray[1]} | |
helm mapkubeapis --namespace $namespace --dry-run $release | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment