blob: 4181beb1f8c7fb19237f63248b26ada973026cfe [file] [log] [blame]
Ramesh Parthasarathy95dc1c92020-02-05 17:02:28 +00001{{- define "helpers.livenessProbe" -}}
2livenessProbe:
3 httpGet:
4 path: {{- index .Values.livenessProbe.path|indent 2}}
5 port: {{ index .Values.containerPort }}
6 scheme: {{- index .Values.livenessProbe.scheme| indent 2}}
7 {{- if eq .Values.global.security.aaf.enabled true }}
8 httpHeaders:
9 - name: Authorization
10 value: {{ index .Values.global.aaf.auth.header }}
11 {{- end }}
12 initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
13 periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
14 timeoutSeconds: {{ index .Values.livenessProbe.timeoutSeconds}}
15 successThreshold: {{ index .Values.livenessProbe.successThreshold}}
16 failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
17{{- end -}}