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