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
I am trying to build the chart with Kustomize, and because in templates/infrastructure/cronjob.yaml there is a default securityContext: {} defined, and then at the end there is an if else statement with:
When kustomize tries to build the Chart it sees that securityContext is already defined. Is there any reason why the initial securityContext: {} is needed? Because there is the if else statement, which will always go to else if the condition is not true.
Specific error from kustomize:
error: map[string]interface {}(nil): yaml: unmarshal errors:
line 83: mapping key "securityContext" already defined at line 77
If securityContext: {} is removed from the templates/infrastructure/cronjob.yaml it works fine.
I am trying to build the chart with Kustomize, and because in
templates/infrastructure/cronjob.yaml
there is a defaultsecurityContext: {}
defined, and then at the end there is an if else statement with:When kustomize tries to build the Chart it sees that securityContext is already defined. Is there any reason why the initial
securityContext: {}
is needed? Because there is the if else statement, which will always go to else if the condition is not true.Specific error from kustomize:
If
securityContext: {}
is removed from thetemplates/infrastructure/cronjob.yaml
it works fine.https://github.com/OpenUnison/helm-charts/blob/master/orchestra/templates/infrastructure/cronjob.yaml#L107
The text was updated successfully, but these errors were encountered: