Helm | Template Function List - 0 views
-
The definition of "empty" depends on type:Numeric: 0String: ""Lists: []Dicts: {}Boolean: falseAnd always nil (aka null)
-
The empty function returns true if the given value is considered empty
-
in Go template conditionals, emptiness is calculated for you. Thus, you rarely need if empty .Foo. Instead, just use if .Foo
- ...2 more annotations...