Application-gateway-kubernetes-ingress: Helm 3 Compatibility

Created on 14 Nov 2019  路  4Comments  路  Source: Azure/application-gateway-kubernetes-ingress

Describe the bug
Installing the chart with Helm 3 results in an error. Installing it with Helm 2.x works fine.

To Reproduce
helm.exe install ingress-azure --dry-run --debug --generate-name

Ingress Controller details

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: unknown object type "nil" in ConfigMap.data.USE_PRIVATE_IP
helm.go:76: [debug] error validating "": error validating data: unknown object type "nil" in ConfigMap.data.USE_PRIVATE_IP
help wanted

All 4 comments

Thanks for reporting!
Would you be willing to take a stab at this ?

It looks like the validation changed with Helm 3. The error is caused because we do not have any default value for appgw.usePrivateIP in the values. So setting this value during deployment works. What is the default of this one? false?

This one shows the correct output:
helm.exe install ingress-azure --dry-run --debug --generate-name --set appgw.usePrivateIP=false

Should we just update the values file for a default value then?

Correct, default value is false and adding it to the values.yaml will fix this.

Thanks @marc-mueller, found this issue via Google and the extra --set parameter fixed it.

Was this page helpful?
0 / 5 - 0 ratings