Skip to content

Instantly share code, notes, and snippets.

@sblack4
Created October 27, 2020 15:44
Show Gist options
  • Save sblack4/71a10452466392cc78d06dcbb1d145d2 to your computer and use it in GitHub Desktop.
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.
#!/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