Another templating issue
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-03-12 19:57:43 +01:00
parent 63a063e552
commit 1c897d727b
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
2 changed files with 8 additions and 6 deletions

View File

@ -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 }}

View File

@ -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 }}