From e419cd4a7a039670a8fd4032a47474a3001f46c8 Mon Sep 17 00:00:00 2001 From: devthejo Date: Mon, 28 Aug 2023 15:39:02 +0200 Subject: [PATCH] feat: add lifecycle to chart app --- plugins/contrib/charts/app/templates/deployment.yaml | 4 ++++ plugins/contrib/charts/app/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/plugins/contrib/charts/app/templates/deployment.yaml b/plugins/contrib/charts/app/templates/deployment.yaml index 489e4d34bb..6d81e41836 100644 --- a/plugins/contrib/charts/app/templates/deployment.yaml +++ b/plugins/contrib/charts/app/templates/deployment.yaml @@ -62,6 +62,10 @@ spec: {{- include "contrib-helpers.readinessProbe" . | nindent 12 }} startupProbe: {{- include "contrib-helpers.startupProbe" . | nindent 12 }} + {{ if .Values.lifecycle }} + lifecycle: + {{- tpl (.Values.lifecycle | toYaml) . | nindent 12 }} + {{ end }} resources: limits: cpu: {{ .Values.resources.limits.cpu | quote }} diff --git a/plugins/contrib/charts/app/values.yaml b/plugins/contrib/charts/app/values.yaml index ea7d47ac14..b9f3dc28e1 100644 --- a/plugins/contrib/charts/app/values.yaml +++ b/plugins/contrib/charts/app/values.yaml @@ -22,6 +22,7 @@ probesPath: /index.html livenessProbe: readinessProbe: startupProbe: +lifecycle: resources: limits: cpu: