kapicorp / kapitan

Generic templated configuration management for Kubernetes, Terraform and other things
https://kapitan.dev
Apache License 2.0
1.83k stars 200 forks source link

Add information about escape syntax in documentation #767

Open jkrzemin opened 3 years ago

jkrzemin commented 3 years ago

Describe the bug/feature In some cases, there is a need to use syntax similar to reclass reference interpolation - i.e. bash scripts in config maps.

Reclass supports this feature with \ character which is not mentioned in the docs.

To Reproduce create a bash script inside any resource that within the value would contain variable reference.

echo "My hostname is ${HOSTNAME}"

This will trigger an attempt to lookup parameters.HOSTNAME which we want to avoid.

Expected behavior In documentation there should be a mention of escape mechanism currently supported in reclass.

echo "My hostname is \${HOSTNAME}
github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 1 year with no activity. Remove the stale label or comment if this issue is still relevant for you. If not, please close it yourself.