@@ -10,63 +10,13 @@ securityContext:
10
10
{ {- toYaml .Values.podSecurityContext | nindent 2 } }
11
11
containers:
12
12
- name: { { .Chart.Name } }
13
- image: "{ { .Values.image.repository } }:{ { .Values.image.tag } }"
14
- imagePullPolicy: Always
15
- { {- if .Values.command } }
16
- command:
17
- { { toYaml .Values.command | nindent 6 } }
18
- { {- end } }
19
- { {- if .Values.args } }
20
- args:
21
- { { toYaml .Values.args | nindent 6 } }
22
- { {- end } }
23
- { {- if or (.Values.volumeMounts) (.Values.csi) } }
24
- volumeMounts:
25
- { {- if .Values.volumeMounts } }
26
- { { toYaml .Values.volumeMounts | nindent 6 } }
27
- { {- end } }
28
- { {- if .Values.csi } }
29
- - name: { { .Values.csi.name } }
30
- mountPath: { { .Values.csi.mountPath | quote } }
31
- readOnly: true
32
- { {- end } }
33
- { {- end } }
34
- ports:
35
- - name: http
36
- containerPort: { { .Values.service.targetPort | default 8080 } }
37
- protocol: TCP
38
- { { if .Values.extraContainerPorts } }
39
- { { toYaml .Values.extraContainerPorts | nindent 6 } }
40
- { {- end } }
41
- { {- if and (.Values.liveness) (.Values.liveness.enabled) } }
42
- livenessProbe:
43
- httpGet:
44
- path: { { .Values.liveness.path | default " /" } }
45
- port: { { .Values.liveness.port | default 8080 } }
46
- initialDelaySeconds: { { .Values.liveness.delay | default 15 } }
47
- timeoutSeconds: { { .Values.liveness.timeout | default 15 } }
48
- periodSeconds: { { .Values.liveness.periodSeconds | default 15 } }
49
- { {- end } }
50
- { {- if and (.Values.readiness) (.Values.readiness.enabled) } }
51
- readinessProbe:
52
- httpGet:
53
- path: { { .Values.readiness.path | default " /" } }
54
- port: { { .Values.readiness.port | default 8080 } }
55
- initialDelaySeconds: { { .Values.readiness.delay | default 15 } }
56
- timeoutSeconds: { { .Values.readiness.timeout | default 15 } }
57
- periodSeconds: { { .Values.readiness.periodSeconds | default 15 } }
58
- { {- end } }
59
- env:
60
- { {- if .Values.secrets } }
61
- { { toYaml .Values.secrets | nindent 6 } }
62
- { {- end } }
63
- { {- if .Values.environment } }
64
- { { toYaml .Values.environment | nindent 6 } }
65
- { {- end } }
66
- resources:
67
- { { toYaml .Values.resources | nindent 6 } }
68
- securityContext:
69
- { {- toYaml .Values.securityContext | nindent 6 } }
13
+ { {- include " libchart.container" .Values | indent 2 -} }
14
+ { {- range $sc := .Values.sidecars -} }
15
+ { { " - name: " | nindent 2 } }{ { $sc .name } }
16
+ { {- include " libchart.container" $sc | indent 2 } }
17
+ { {- end } }
18
+ { {- if .Values.initContainers } }
19
+ { {- end } }
70
20
{ {- with .Values.nodeSelector } }
71
21
nodeSelector:
72
22
{ { toYaml . | nindent 4 } }
0 commit comments