wildfly / wildfly-charts

Helm Charts for WildFly
https://docs.wildfly.org/wildfly-charts/
Apache License 2.0
3 stars 14 forks source link

Nil Pointer Exception when using Ingress without TLS #135

Closed ehsavoie closed 10 months ago

ehsavoie commented 10 months ago

When installing without defining anything TLS related on an ingress configuration we are getting:

Error: INSTALLATION FAILED: template: wildfly/templates/ingress.yaml:2:4: executing "wildfly/templates/ingress.yaml" at <include "wildfly-common.ingress" (list . "wildfly.metadata.labels")>: error calling include: template: wildfly/charts/wildfly-common/templates/_ingress.yaml:32:4: executing "wildfly-common.ingress" at <include "wildfly-common.util.merge" (append . "wildfly-common.ingress.tpl")>: error calling include: template: wildfly/charts/wildfly-common/templates/_util.yaml:11:22: executing "wildfly-common.util.merge" at <include (index . 2) $top>: error calling include: template: wildfly/charts/wildfly-common/templates/_ingress.yaml:12:6: executing "wildfly-common.ingress.tpl" at <include "wildfly-common.deployment.ingressSecret" .>: error calling include: template: wildfly/charts/wildfly-common/templates/_helpers.tpl:148:14: executing "wildfly-common.deployment.ingressSecret" at <.Values.deploy.ingress.tls.secret>: nil pointer evaluating interface {}.secret

We should check if .Values.deploy.ingress.tls is defined before checking for .Values.deploy.ingress.tls.secret

ehsavoie commented 10 months ago

https://github.com/wildfly/wildfly-charts/pull/136