default
template function treats 0 value as unspecified
#13036
Labels
default
template function treats 0 value as unspecified
#13036
Hi!
I've encountered an interesting problem with helm templating engine:
default
function treats 0 (integer) values as unspecified and uses $default parameter.A small example:
Having single templating yaml and values:
template.yaml
:values.yaml
Running
helm template test test
Received output:
Expected output:
Seems like helm treats zero values as unspecified and replaces with first argument for
default
templating function, which is not expected behavior.Output of
helm version
:Output of
kubectl version
:Cloud Provider/Platform (AKS, GKE, Minikube etc.):
Minikube (doesn't actually matter)
The text was updated successfully, but these errors were encountered: