From 923cfba3395a93f996ed795008420e8374aa4440 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 23 Apr 2021 17:36:07 -0400 Subject: [PATCH] Add option for additional containers to be run with Helm chart --- chart/keel/templates/deployment.yaml | 1 + chart/keel/values.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/chart/keel/templates/deployment.yaml b/chart/keel/templates/deployment.yaml index c2b4884a..10b8cd51 100644 --- a/chart/keel/templates/deployment.yaml +++ b/chart/keel/templates/deployment.yaml @@ -26,6 +26,7 @@ spec: spec: serviceAccountName: {{ template "serviceAccount.name" . }} containers: +{{ toYaml .Values.extraContainers | indent 8 }} - name: keel # Note that we use appVersion to get images tag. image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}" diff --git a/chart/keel/values.yaml b/chart/keel/values.yaml index 0a18c9d1..827c2621 100644 --- a/chart/keel/values.yaml +++ b/chart/keel/values.yaml @@ -15,6 +15,13 @@ insecureRegistry: false polling: enabled: true +# Extra Containers to run alongside Keel +# extraContainers: +# - name: busybox +# image: busybox +# imagePullPolicy: IfNotPresent +# command: ['sh', '-c', 'echo Container 1 is Running ; sleep 3600'] + # Helm provider support helmProvider: enabled: true