From 44336ba2e95e4c42bda26fb8a8974dcc6e30be03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rost=C3=A1s=20L=C3=A1szl=C3=B3?= Date: Fri, 14 Jul 2023 10:54:27 +0200 Subject: [PATCH] Feat: Add init containers options to helm chart --- helm/chart/router/templates/deployment.yaml | 3 +++ helm/chart/router/values.yaml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/helm/chart/router/templates/deployment.yaml b/helm/chart/router/templates/deployment.yaml index b1b8018d24..6773517136 100644 --- a/helm/chart/router/templates/deployment.yaml +++ b/helm/chart/router/templates/deployment.yaml @@ -129,6 +129,9 @@ spec: {{- if .Values.extraContainers }} {{- include "common.tplvalues.render" (dict "value" .Values.extraContainers "context" $) | nindent 8 }} {{- end }} + {{- if .Values.initContainers }} + {{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }} + {{- end }} {{- if or .Values.router.configuration .Values.extraVolumes }} volumes: {{- if .Values.router.configuration }} diff --git a/helm/chart/router/values.yaml b/helm/chart/router/values.yaml index 03baf33f6e..213f4d5f43 100644 --- a/helm/chart/router/values.yaml +++ b/helm/chart/router/values.yaml @@ -86,6 +86,14 @@ containerPorts: # - containerPort: 4001 extraContainers: [] +# -- An array of init containers to include in the router pod +# Example: +# initContainers: +# - name: init-myservice +# image: busybox:1.28 +# command: ["sh"] +initContainers: [] + # -- A map of extra labels to apply to the router deploment and containers # Example: # extraLabels: