You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Default values to set for args along with dedicated keys that can be set by contributors, cli args take precedence over these.
# In other words, unset values results in no flags passed to helm.
# See the helm usage (helm SUBCOMMAND -h) for more info on default values when those flags aren't provided.
helmDefaults:
args:
- "--no-hooks"
- "-amonitoring.coreos.com/v1"
values:
- aDependentValue: "{{.Values.myValue}}"
environments:
myEnv:
values:
- ../../../values/env/myEnv/values.yaml
secrets:
- ../../../values/env/myEnv/secrets.yaml
When running helmfile --environment myEnv --file my-release.yaml template, I get the following output:
Decrypting secret /home/sahand/cust/helmfile-nest-example/realm/values/env/myEnv/secrets.yaml
in ./my-release.yaml: error during ../../_defaults.yaml.part.0 parsing: template: stringTemplate:10:31: executing "stringTemplate" at <.Values.myValue>: map has no entry for key "myValue"
If I remove the last line of the decrypted secrets file and encrypt again, the error disappears and everything templates properly.
I have a project with the following hierarchy:
I'll also list all the file contents:
my-release.yaml:
_defaults.yaml:
secrets.yaml:
secrets.yaml DECRYPTED:
values.yaml:
When running
helmfile --environment myEnv --file my-release.yaml template
, I get the following output:If I remove the last line of the decrypted secrets file and encrypt again, the error disappears and everything templates properly.
secrets.yaml with the last line removed:
Output of the command
helmfile --environment myEnv --file my-release.yaml template
:Surely this is a bug?
The text was updated successfully, but these errors were encountered: