Un-wanted filtering of release_values
when using kubernetes.core.helm
#787
Labels
type/documentation
Improvements or additions to documentation
SUMMARY
When using the
kubernetes.core.helm
module with therelease_values
parameter it is possible to encounter an issue stemming from filtering that occurs in theyaml.dump
operation.The
yaml.dump
operation associated withrelease_values
is on this line of code.The filtering applied by
yaml.dump
removes single and double quotes from variables. This causes an issue with certain helm charts that require specific values to be strings and not booleans.For example:
In the above error the CrunchyData postgres-operator chart requires that
repo2-storage-verify-tls
be a string -- butyaml.dump
has converted it to a boolean.Actual value:
repo2-storage-verify-tls: "n"
Value after passing through
yaml.dump
:repo2-storage-verify-tls: n
ISSUE TYPE
COMPONENT NAME
kubernetes.core.helm
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
I expected
release_values
to preserve the Ansible variable I passed into it without applying any filtering to it. If I wanted to apply filtering to it I would use theto_nice_yaml
filter before handing it off to the Helm module.ACTUAL RESULTS
What actually happened is my variable got converted from a
string
to aboolean
Workaround
As a workaround it is possible to use
values_files
instead ofrelease_values
-- this bypasses the filtering operation.Thanks !
The text was updated successfully, but these errors were encountered: