Helm Template Function Default

From NovaOrdis Knowledge Base
Jump to: navigation, search




{{ default <default-value> <actual-value> }}
{{ default "blue" .Values.color }}

In an actual chart, all static default values should live in the values.yaml, and should not be repeated using the default command - if that happens, we will have redundantly specified values. However, the default is useful for computed values, which cannot be declared inside values.yaml.