File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -327,24 +327,34 @@ spec:
327
327
{{- toYaml . | nindent 8 }}
328
328
{{- end }}
329
329
serviceAccountName: {{ include "<CHARTNAME>.serviceAccountName" . }}
330
+ {{- with .Values.podSecurityContext }}
330
331
securityContext:
331
- {{- toYaml .Values.podSecurityContext | nindent 8 }}
332
+ {{- toYaml . | nindent 8 }}
333
+ {{- end }}
332
334
containers:
333
335
- name: {{ .Chart.Name }}
336
+ {{- with .Values.securityContext }}
334
337
securityContext:
335
- {{- toYaml .Values.securityContext | nindent 12 }}
338
+ {{- toYaml . | nindent 12 }}
339
+ {{- end }}
336
340
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
337
341
imagePullPolicy: {{ .Values.image.pullPolicy }}
338
342
ports:
339
343
- name: http
340
344
containerPort: {{ .Values.service.port }}
341
345
protocol: TCP
346
+ {{- with .Values.livenessProbe }}
342
347
livenessProbe:
343
- {{- toYaml .Values.livenessProbe | nindent 12 }}
348
+ {{- toYaml . | nindent 12 }}
349
+ {{- end }}
350
+ {{- with .Values.readinessProbe }}
344
351
readinessProbe:
345
- {{- toYaml .Values.readinessProbe | nindent 12 }}
352
+ {{- toYaml . | nindent 12 }}
353
+ {{- end }}
354
+ {{- with .Values.resources }}
346
355
resources:
347
- {{- toYaml .Values.resources | nindent 12 }}
356
+ {{- toYaml . | nindent 12 }}
357
+ {{- end }}
348
358
{{- with .Values.volumeMounts }}
349
359
volumeMounts:
350
360
{{- toYaml . | nindent 12 }}
You can’t perform that action at this time.
0 commit comments