summaryrefslogtreecommitdiffstats
path: root/kubernetes/so/components/soHelpers/templates/_livenessProbe.tpl
blob: cde94742c6c145de5dde8ca3358e9008bd8bf9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{- define "so.helpers.livenessProbe" -}}
{{-   $dot := default . .dot -}}
{{-   $initRoot := default $dot.Values.soHelpers .initRoot -}}
{{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
livenessProbe:
  httpGet:
    path: {{ $subchartDot.Values.livenessProbe.path }}
    port: {{ $subchartDot.Values.containerPort }}
    scheme: {{  $subchartDot.Values.livenessProbe.scheme }}
    {{- if $subchartDot.Values.global.security.aaf.enabled }}
    httpHeaders:
    - name: Authorization
      value: {{ $subchartDot.Values.global.aaf.auth.header }}
    {{- end }}
  initialDelaySeconds: {{ $subchartDot.Values.livenessProbe.initialDelaySeconds }}
  periodSeconds: {{ $subchartDot.Values.livenessProbe.periodSeconds }}
  timeoutSeconds: {{ $subchartDot.Values.livenessProbe.timeoutSeconds }}
  successThreshold: {{ $subchartDot.Values.livenessProbe.successThreshold }}
  failureThreshold: {{ $subchartDot.Values.livenessProbe.failureThreshold }}
{{- end -}}