File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
charts/nginx-ingress-services/templates Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ When `fakeS3` is enabled, `nginx-ingress-services` creates an ingress for
2+ Minio. This ingress' name is now configurable to allow multiple of them
3+ ("multi-ingress".)
Original file line number Diff line number Diff line change @@ -108,6 +108,21 @@ nginx-ingress-{{ .Values.ingressName }}
108108{ {- end -} }
109109{ {- end -} }
110110
111+ { {/*
112+ Name of the minio ingress. Extracted as helper to reduce the complexity in the template
113+ itself. The default name is ' minio-ingress' for backwards compatibility (it has
114+ been this name in previous versions.)
115+ Why do we need to be able to change this name? For multi-ingress setups, we' ll
116+ have multiple of these ingresses (which need unique names).
117+ */}}
118+ {{- define "nginx-ingress-services.getMinioIngressName" -}}
119+ {{- if (eq .Values.ingressName "") -}}
120+ minio-ingress
121+ {{- else -}}
122+ minio-ingress-{{ .Values.ingressName }}
123+ {{- end -}}
124+ {{- end -}}
125+
111126{{/*
112127Name of the certificate ' Issuer' . Especially, used in ' issuerRef' s.
113128In multi-domain backends (multi-ingress), the ' ingressName' is used as postfix
Original file line number Diff line number Diff line change 77apiVersion : {{ include "ingress.apiVersion" . }}
88kind : Ingress
99metadata :
10- name : minio -ingress
10+ name : {{ include "nginx -ingress-services.getMinioIngressName" . | quote }}
1111 annotations :
1212 {{- if not $ingressFieldNotAnnotation }}
1313 kubernetes.io/ingress.class : " {{ .Values.config.ingressClass }}"
You can’t perform that action at this time.
0 commit comments