I have a configmap yaml that needs to be executed if a particular value is set to true. This is the config map yaml def
{{ if (.Values.telemetry.create) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: telemetry-allowlist
data:
metrics.json: |
{
...
Now in some cases users forget to add this value
.Values.telemetry.create
This causes the entire setup to fail with the error
at <.Values.telemetry.create>: nil pointer evaluating interface {}.create
Wondering how to add default values so that it defaults to false if the value is not present