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: metadata:
name: {{ .Values.ingress.name }} name: {{ .Values.ingress.name }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- if .Values.ingress.annotations }} {{- with .Values.ingress.annotations }}
annotations: {{ toYaml .Values.ingress.annotations | nindent 4 }} annotations:
{{- end}} {{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
ingressClassName: {{ .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}

View File

@ -3,9 +3,10 @@ kind: Service
metadata: metadata:
name: {{ .Values.service.name }} name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- if .Values.service.annotations }} {{- with .Values.service.annotations }}
annotations: {{ toYaml .Values.service.annotations | nindent 4}} annotations:
{{- end}} {{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
selector: selector:
app: {{ .Values.name }} app: {{ .Values.name }}