Skip to content

Commit

Permalink
check if the ingress class is defined if not don't include in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsoper committed Feb 15, 2024
1 parent b07917e commit ea8f6ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/app/dbs/tmpl/es/elastalert/ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ea8f6ae

Please sign in to comment.