@@ -3,12 +3,12 @@ kind: Deployment
3
3
metadata :
4
4
name : {{ include "conduktor-gateway.fullname" . }}
5
5
labels : {{- include "conduktor-gateway.labels" . | nindent 4 }}
6
- {{- if .Values.commonLabels }}
7
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
6
+ {{- with .Values.commonLabels }}
7
+ {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
8
8
{{- end }}
9
9
annotations :
10
- {{- if .Values.commonAnnotations }}
11
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
10
+ {{- with .Values.commonAnnotations }}
11
+ {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
12
12
{{- end }}
13
13
spec :
14
14
selector :
@@ -19,23 +19,23 @@ spec:
19
19
template :
20
20
metadata :
21
21
annotations :
22
- {{- if .Values.commonAnnotations }}
23
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }}
22
+ {{- with .Values.commonAnnotations }}
23
+ {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 8 }}
24
24
{{- end }}
25
- {{- if .Values.gateway.podAnnotations }}
26
- {{- include "common.tplvalues.render" (dict "value" .Values.gateway.podAnnotations "context" $) | nindent 8 }}
25
+ {{- with .Values.gateway.podAnnotations }}
26
+ {{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }}
27
27
{{- end }}
28
28
checksum/config : {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
29
29
checksum/self-secrets : {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
30
30
{{- if .Values.gateway.secretSha256sum }}
31
31
checksum/secret : {{ .Values.gateway.secretSha256sum }}
32
32
{{- end }}
33
33
labels : {{- include "conduktor-gateway.labels" . | nindent 8 }}
34
- {{- if .Values.gateway.podLabels }}
35
- {{- include "common.tplvalues.render" (dict "value" .Values.gateway.podLabels "context" $) | nindent 8 }}
34
+ {{- with .Values.gateway.podLabels }}
35
+ {{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }}
36
36
{{- end }}
37
- {{- if .Values.commonLabels }}
38
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 8 }}
37
+ {{- with .Values.commonLabels }}
38
+ {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 8 }}
39
39
{{- end }}
40
40
spec :
41
41
containers :
0 commit comments