From b07917e00be97fa3d1958be82f3a4ef467c9f3bd Mon Sep 17 00:00:00 2001 From: bradsoper <107413559+bradsoper@users.noreply.github.com> Date: Thu, 15 Feb 2024 08:23:57 -0800 Subject: [PATCH] Check if ingress class is defined if not don't include in the spec --- pkg/app/dbs/tmpl/minio/ingress.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/app/dbs/tmpl/minio/ingress.tpl b/pkg/app/dbs/tmpl/minio/ingress.tpl index c7c03e04..c6f1c085 100644 --- a/pkg/app/dbs/tmpl/minio/ingress.tpl +++ b/pkg/app/dbs/tmpl/minio/ingress.tpl @@ -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: