kapitan icon indicating copy to clipboard operation
kapitan copied to clipboard

Add information about escape syntax in documentation

Open jkrzemin opened this issue 3 years ago • 1 comments

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}

jkrzemin avatar Aug 10 '21 11:08 jkrzemin