Refactor ingress annotations to include dns-scope conditionally
This commit is contained in:
@@ -5,10 +5,13 @@ metadata:
|
|||||||
name: {{ include "api7ee.fullname" . }}
|
name: {{ include "api7ee.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "api7ee.labels" . | nindent 4 }}
|
{{- include "api7ee.labels" . | nindent 4 }}
|
||||||
{{- with .Values.ingress.annotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if .Values.ingress.dnsScope }}
|
||||||
|
dns-scope: {{ .Values.ingress.dnsScope | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.ingress.className }}
|
{{- if .Values.ingress.className }}
|
||||||
ingressClassName: {{ .Values.ingress.className }}
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
|||||||
Reference in New Issue
Block a user