mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/external-dns] Use custom probes if given (#12495)
Without this change, in order to use a custom probe, the user has to specify the probe parameters, and also must specify for the original probe "enabled: false". Issue: #12354 Signed-off-by: Orgad Shaneh <orgad.shaneh@audiocodes.com>
This commit is contained in:
@@ -24,4 +24,4 @@ sources:
|
|||||||
- https://github.com/kubernetes-sigs/external-dns
|
- https://github.com/kubernetes-sigs/external-dns
|
||||||
- https://github.com/bitnami/containers/tree/main/bitnami/external-dns
|
- https://github.com/bitnami/containers/tree/main/bitnami/external-dns
|
||||||
- https://github.com/kubernetes-sigs/external-dns
|
- https://github.com/kubernetes-sigs/external-dns
|
||||||
version: 6.10.1
|
version: 6.10.2
|
||||||
|
|||||||
@@ -584,7 +584,9 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.containerPorts.http }}
|
containerPort: {{ .Values.containerPorts.http }}
|
||||||
{{- if .Values.livenessProbe.enabled }}
|
{{- if .Values.customLivenessProbe }}
|
||||||
|
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.livenessProbe.enabled }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
@@ -594,10 +596,10 @@ spec:
|
|||||||
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
||||||
successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
||||||
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
||||||
{{- else if .Values.customLivenessProbe }}
|
|
||||||
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.readinessProbe.enabled }}
|
{{- if .Values.customReadinessProbe }}
|
||||||
|
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.readinessProbe.enabled }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
@@ -607,10 +609,10 @@ spec:
|
|||||||
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
||||||
successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
||||||
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
||||||
{{- else if .Values.customReadinessProbe }}
|
|
||||||
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.startupProbe.enabled }}
|
{{- if .Values.customStartupProbe }}
|
||||||
|
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.startupProbe.enabled }}
|
||||||
startupProbe:
|
startupProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
@@ -620,8 +622,6 @@ spec:
|
|||||||
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
|
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
|
||||||
successThreshold: {{ .Values.startupProbe.successThreshold }}
|
successThreshold: {{ .Values.startupProbe.successThreshold }}
|
||||||
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
||||||
{{- else if .Values.customStartupProbe }}
|
|
||||||
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.containerSecurityContext }}
|
{{- if .Values.containerSecurityContext }}
|
||||||
securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user