@@ -2,13 +2,14 @@ apiVersion: apps/v1
2
2
kind : Deployment
3
3
metadata :
4
4
name : {{ include "prometheus-mongodb-query-exporter.fullname" . }}
5
+ {{- with ( include "prometheus-mongodb-query-exporter.labels" . ) }}
5
6
labels :
6
- app.kubernetes.io/name : {{ include "prometheus-mongodb-query-exporter.name" . }}
7
- app.kubernetes.io/instance : {{ .Release.Name }}
8
- app.kubernetes.io/managed-by : {{ .Release.Service }}
9
- helm.sh/chart : {{ include "prometheus-mongodb-query-exporter.chart" . }}
7
+ {{- . }}
8
+ {{- end }}
9
+ {{- with .Values.annotations }}
10
10
annotations :
11
- {{- toYaml .Values.annotations | nindent 4 }}
11
+ {{- toYaml . | nindent 4 }}
12
+ {{- end }}
12
13
spec :
13
14
replicas : {{ .Values.replicas }}
14
15
selector :
52
53
- secretRef :
53
54
name : {{ .Values.envFromSecret }}
54
55
{{- end }}
55
- image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
56
+ image : " {{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
56
57
imagePullPolicy : {{ .Values.image.pullPolicy }}
57
58
args :
58
59
- --bind={{ printf ":%s" .Values.port }}
@@ -94,15 +95,23 @@ spec:
94
95
secret :
95
96
secretName : {{ .secretName }}
96
97
{{- end }}
98
+ {{- with .Values.affinity }}
97
99
affinity :
98
- {{- toYaml .Values.affinity | nindent 8 }}
100
+ {{- toYaml . | nindent 8 }}
101
+ {{- end }}
102
+ {{- with .Values.imagePullSecrets }}
99
103
imagePullSecrets :
100
- {{- toYaml .Values.imagePullSecrets | nindent 8 }}
104
+ {{- toYaml . | nindent 8 }}
105
+ {{- end }}
106
+ {{- with .Values.nodeSelector }}
101
107
nodeSelector :
102
- {{- toYaml .Values.nodeSelector | nindent 8 }}
108
+ {{- toYaml . | nindent 8 }}
109
+ {{- end }}
103
110
{{- if .Values.priorityClassName }}
104
111
priorityClassName : {{ .Values.priorityClassName }}
105
112
{{- end }}
106
113
terminationGracePeriodSeconds : 30
114
+ {{- with .Values.tolerations }}
107
115
tolerations :
108
- {{- toYaml .Values.tolerations | nindent 8 }}
116
+ {{- toYaml . | nindent 8 }}
117
+ {{- end }}
0 commit comments