From 474c501d5692e2ae4f2a80d548a1dc38c869c4b2 Mon Sep 17 00:00:00 2001 From: Dev Jadeja Date: Wed, 12 Feb 2025 11:33:08 +0530 Subject: [PATCH] added startupProbe support --- charts/py-app/templates/deployment.yaml | 3 +++ charts/py-app/templates/limitrange.yaml | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/py-app/templates/deployment.yaml b/charts/py-app/templates/deployment.yaml index 6b13ecb..01a33b2 100644 --- a/charts/py-app/templates/deployment.yaml +++ b/charts/py-app/templates/deployment.yaml @@ -49,6 +49,9 @@ spec: {{- with .Values.probes.readiness }} readinessProbe: {{ . | toYaml | nindent 12 }} {{- end }} + {{- with .Values.probes.startup }} + startupProbe: {{ . | toYaml | nindent 12 }} + {{- end }} {{- include "py-app.envs" . | indent 10 -}} resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/charts/py-app/templates/limitrange.yaml b/charts/py-app/templates/limitrange.yaml index 6bbf14b..b528383 100644 --- a/charts/py-app/templates/limitrange.yaml +++ b/charts/py-app/templates/limitrange.yaml @@ -6,5 +6,7 @@ metadata: labels: {{- include "py-app.labels" . | nindent 4 }} spec: - limits: {{ .Values.limitRange.limits | toYaml | nindent 2 }} -{{- end -}} \ No newline at end of file + {{- with .Values.limitRange.limits }} + limits: {{ . | toYaml | nindent 2 }} + {{- end }} +{{- end -}}