From 774ee2bc7f239390043c18d6760c8f73e3c7476f Mon Sep 17 00:00:00 2001 From: plavy <86317719+plavy@users.noreply.github.com> Date: Wed, 25 Aug 2021 11:19:12 +0200 Subject: [PATCH] fix: Added support for initContainers (#21) Co-authored-by: Tin Plavec --- charts/unleash/Chart.yaml | 2 +- charts/unleash/templates/deployment.yaml | 4 ++++ charts/unleash/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/unleash/Chart.yaml b/charts/unleash/Chart.yaml index 364ca1c..59476d2 100644 --- a/charts/unleash/Chart.yaml +++ b/charts/unleash/Chart.yaml @@ -16,4 +16,4 @@ sources: - https://github.com/Unleash/unleash-docker - https://github.com/Unleash/helm-charts type: application -version: 2.1.2 +version: 2.1.3 diff --git a/charts/unleash/templates/deployment.yaml b/charts/unleash/templates/deployment.yaml index 1b6fb65..35c4f0f 100644 --- a/charts/unleash/templates/deployment.yaml +++ b/charts/unleash/templates/deployment.yaml @@ -101,6 +101,10 @@ spec: {{- end }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} + {{- with .Values.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} {{- if .Values.configMaps }} volumes: - name: config-dir diff --git a/charts/unleash/values.yaml b/charts/unleash/values.yaml index 63e9bab..3e90de5 100644 --- a/charts/unleash/values.yaml +++ b/charts/unleash/values.yaml @@ -163,6 +163,8 @@ ingress: # hosts: # - chart-example.local +initContainers: [] + livenessProbe: enabled: true path: /health