Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

feat(helm): refactor probes for better flexibility and simplicity

Zekeriya Akgul3a8e5bbf509c
diff --git a/deploy/helm/templates/statefulset.yaml b/deploy/helm/templates/statefulset.yaml
index 0d28b725..b36777ea 100644
--- a/deploy/helm/templates/statefulset.yaml
+++ b/deploy/helm/templates/statefulset.yaml
@@ -91,31 +91,11 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
- {{- if .Values.livenessProbe.exec }}
- exec:
- {{- toYaml .Values.livenessProbe.exec | nindent 14 }}
- {{- else if .Values.livenessProbe.httpGet }}
- httpGet:
- {{- toYaml .Values.livenessProbe.httpGet | nindent 14 }}
- {{- end }}
- initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
- periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
- timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
- failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
- {{- end }}
- {{- if .Values.readinessProbe.enabled }}
+ {{- toYaml .Values.livenessProbe.probe | nindent 12 }}
+ {{- end }}
+ {{- if .Values.readinessProbe.enabled }}
readinessProbe:
- {{- if .Values.readinessProbe.exec }}
- exec:
- {{- toYaml .Values.readinessProbe.exec | nindent 14 }}
- {{- else if .Values.readinessProbe.httpGet }}
- httpGet:
- {{- toYaml .Values.readinessProbe.httpGet | nindent 14 }}
- {{- end }}
- initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
- periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
- timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
- failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
+ {{- toYaml .Values.readinessProbe.probe | nindent 12 }}
{{- end }}
{{- if or .Values.customRootCA .Values.extraVolumes }}
volumes:
diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml
index 532f628f..612ebbfe 100644
--- a/deploy/helm/values.yaml
+++ b/deploy/helm/values.yaml
@@ -130,25 +130,27 @@ route:
# Health checks configuration
livenessProbe:
enabled: true
- exec:
- command:
- - databasus
- - healthcheck
- initialDelaySeconds: 30
- periodSeconds: 10
- timeoutSeconds: 5
- failureThreshold: 3
+ probe:
+ exec:
+ command:
+ - databasus
+ - healthcheck
+ initialDelaySeconds: 30
+ periodSeconds: 10
+ timeoutSeconds: 5
+ failureThreshold: 3
readinessProbe:
enabled: true
- exec:
- command:
- - databasus
- - healthcheck
- initialDelaySeconds: 10
- periodSeconds: 5
- timeoutSeconds: 3
- failureThreshold: 3
+ probe:
+ exec:
+ command:
+ - databasus
+ - healthcheck
+ initialDelaySeconds: 10
+ periodSeconds: 5
+ timeoutSeconds: 3
+ failureThreshold: 3
# StatefulSet update strategy
updateStrategy: