seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 1 | {{- 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)) }} |
| 5 | livenessProbe: |
| 6 | httpGet: |
| 7 | path: {{ $subchartDot.Values.livenessProbe.path }} |
| 8 | port: {{ $subchartDot.Values.containerPort }} |
| 9 | scheme: {{ $subchartDot.Values.livenessProbe.scheme }} |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 10 | initialDelaySeconds: {{ $subchartDot.Values.livenessProbe.initialDelaySeconds }} |
| 11 | periodSeconds: {{ $subchartDot.Values.livenessProbe.periodSeconds }} |
| 12 | timeoutSeconds: {{ $subchartDot.Values.livenessProbe.timeoutSeconds }} |
| 13 | successThreshold: {{ $subchartDot.Values.livenessProbe.successThreshold }} |
| 14 | failureThreshold: {{ $subchartDot.Values.livenessProbe.failureThreshold }} |
| 15 | {{- end -}} |