Add enabled flags for health probes in web and api deployments
Some checks failed
Helm Chart Build / lint-only (push) Has been skipped
Build and Deploy / build-web (push) Failing after 7s
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-api (push) Successful in 42s

This commit is contained in:
d.viti
2025-10-08 13:04:15 +02:00
parent 7ca15fe1a5
commit 0935010f89
3 changed files with 22 additions and 6 deletions

View File

@@ -39,10 +39,14 @@ spec:
- name: http
containerPort: {{ .Values.api.service.targetPort }}
protocol: TCP
{{- if and .Values.api.healthProbes.enabled .Values.api.livenessProbe.enabled }}
livenessProbe:
{{- toYaml .Values.api.livenessProbe | nindent 12 }}
{{- omit .Values.api.livenessProbe "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if and .Values.api.healthProbes.enabled .Values.api.readinessProbe.enabled }}
readinessProbe:
{{- toYaml .Values.api.readinessProbe | nindent 12 }}
{{- omit .Values.api.readinessProbe "enabled" | toYaml | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.api.resources | nindent 12 }}
env:
@@ -74,4 +78,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -39,10 +39,14 @@ spec:
- name: http
containerPort: {{ .Values.web.service.targetPort }}
protocol: TCP
{{- if and .Values.web.healthProbes.enabled .Values.web.livenessProbe.enabled }}
livenessProbe:
{{- toYaml .Values.web.livenessProbe | nindent 12 }}
{{- omit .Values.web.livenessProbe "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if and .Values.web.healthProbes.enabled .Values.web.readinessProbe.enabled }}
readinessProbe:
{{- toYaml .Values.web.readinessProbe | nindent 12 }}
{{- omit .Values.web.readinessProbe "enabled" | toYaml | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.web.resources | nindent 12 }}
env:
@@ -74,4 +78,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}