why
after spending 1 hour research and writing out the template in golang under /replace-dburl, i figured out a better way
the better way: simple bash script to find out the configmaps that needs changing, and then change it manually why the better way: read operation using bash is not dangerous at all. and the number of entries needing change is few enough for manual operation. also, this is a one time task.
how
./find_relevant_configmaps.shFeatures
- Accepts a search string (required) and an optional output file (defaults to relevant_configmaps.txt).
- Checks that kubectl is installed and configured properly.
- Iterates over all namespaces and ConfigMaps to search the
.datafields for the provided string. - Logs informational messages and errors to stdout/stderr.
- Outputs a tab-separated file listing namespace and ConfigMap names where matches are found.