Ramesh Parthasarathy | 95dc1c9 | 2020-02-05 17:02:28 +0000 | [diff] [blame] | 1 | {{- define "helpers.livenessProbe" -}} |
| 2 | livenessProbe: |
| 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 -}} |