From ea8f6aee6efb0f5b25e7a86ca86f15bd4e90b1cd Mon Sep 17 00:00:00 2001 From: Brad Soper Date: Thu, 15 Feb 2024 08:53:54 -0800 Subject: [PATCH] check if the ingress class is defined if not don't include in spec --- pkg/app/dbs/tmpl/es/elastalert/ingress.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/app/dbs/tmpl/es/elastalert/ingress.tpl b/pkg/app/dbs/tmpl/es/elastalert/ingress.tpl index 6d8bdb35..67edacf2 100644 --- a/pkg/app/dbs/tmpl/es/elastalert/ingress.tpl +++ b/pkg/app/dbs/tmpl/es/elastalert/ingress.tpl @@ -18,6 +18,9 @@ metadata: {{$k}}: "{{$v}}" {{- end }} spec: + {{- if ne .Spec.Networking.Ingress.IngressClassName "" }} + ingressClassName: {{ .Spec.Networking.Ingress.IngressClassName }} + {{- end }} ingressClassName: {{ .Spec.Networking.Ingress.IngressClassName }} {{- if and ( isTrue .Spec.Networking.HTTPS.Enabled ) (ne .Spec.Networking.HTTPS.CertSecret "") }} tls: