Skip to content

Commit

Permalink
Check if ingress class is defined if not don't include in the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsoper authored Feb 15, 2024
1 parent 62991f2 commit b07917e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/app/dbs/tmpl/minio/ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ metadata:
{{$k}}: "{{$v}}"
{{- end }}
spec:
{{- if ne .Spec.Networking.Ingress.IngressClassName "" }}
ingressClassName: {{ .Spec.Networking.Ingress.IngressClassName }}
{{- end }}
{{- if and ( isTrue .Spec.Networking.HTTPS.Enabled ) (ne .Spec.Networking.HTTPS.CertSecret "") }}
tls:
- hosts:
Expand Down

0 comments on commit b07917e

Please sign in to comment.