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: