blob: cde94742c6c145de5dde8ca3358e9008bd8bf9ef [file] [log] [blame]
seshukm0df1f8e2020-08-17 21:45:49 +05301{{- define "so.helpers.livenessProbe" -}}
2{{- $dot := default . .dot -}}
3{{- $initRoot := default $dot.Values.soHelpers .initRoot -}}
4{{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
5livenessProbe:
6 httpGet:
7 path: {{ $subchartDot.Values.livenessProbe.path }}
8 port: {{ $subchartDot.Values.containerPort }}
9 scheme: {{ $subchartDot.Values.livenessProbe.scheme }}
10 {{- if $subchartDot.Values.global.security.aaf.enabled }}
11 httpHeaders:
12 - name: Authorization
13 value: {{ $subchartDot.Values.global.aaf.auth.header }}
14 {{- end }}
15 initialDelaySeconds: {{ $subchartDot.Values.livenessProbe.initialDelaySeconds }}
16 periodSeconds: {{ $subchartDot.Values.livenessProbe.periodSeconds }}
17 timeoutSeconds: {{ $subchartDot.Values.livenessProbe.timeoutSeconds }}
18 successThreshold: {{ $subchartDot.Values.livenessProbe.successThreshold }}
19 failureThreshold: {{ $subchartDot.Values.livenessProbe.failureThreshold }}
20{{- end -}}