Another templating issue
This commit is contained in:
parent
d94f5119f7
commit
d2c19667fc
@ -3,9 +3,10 @@ kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Values.ingress.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- if .Values.ingress.annotations }}
|
||||
annotations: {{ toYaml .Values.ingress.annotations | nindent 4 }}
|
||||
{{- end}}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
{{- if .Values.ingress.tls }}
|
||||
|
@ -3,9 +3,10 @@ kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.service.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- if .Values.service.annotations }}
|
||||
annotations: {{ toYaml .Values.service.annotations | nindent 4}}
|
||||
{{- end}}
|
||||
{{- with .Values.service.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
selector:
|
||||
app: {{ .Values.name }}
|
||||
|
Loading…
Reference in New Issue
Block a user