Why is there an install.sh embedded into your sample ConfigMap?
It is generally not a good idea to embed things like shell scripts into YAML files. It prevents you from running formatters and analysis tools like shellcheck and is error prone.
Can this be done some other way that makes maintenance and troubleshooting easier?