From 923cfba3395a93f996ed795008420e8374aa4440 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 23 Apr 2021 17:36:07 -0400 Subject: [PATCH 1/3] 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 From 1c08a58a36734fb643b0750313b16322924a0d64 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 24 Apr 2021 11:02:57 -0400 Subject: [PATCH 2/3] Update Chart.yaml Bump chart version --- chart/keel/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/keel/Chart.yaml b/chart/keel/Chart.yaml index ca97b967..b9aab91b 100644 --- a/chart/keel/Chart.yaml +++ b/chart/keel/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: keel description: Open source, tool for automating Kubernetes deployment updates. Keel is stateless, robust and lightweight. -version: 0.9.8 +version: 0.9.9 # Note that we use appVersion to get images tag, so make sure this is correct. appVersion: 0.16.1 keywords: From 5ac174f339692a812665d9c4b4c6904a3d4f7f1a Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 24 Apr 2021 12:24:11 -0400 Subject: [PATCH 3/3] Cleanup chart deployment linting --- chart/keel/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chart/keel/templates/deployment.yaml b/chart/keel/templates/deployment.yaml index 10b8cd51..d4ad39f3 100644 --- a/chart/keel/templates/deployment.yaml +++ b/chart/keel/templates/deployment.yaml @@ -26,7 +26,9 @@ spec: spec: serviceAccountName: {{ template "serviceAccount.name" . }} containers: +{{- if .Values.extraContainers }} {{ toYaml .Values.extraContainers | indent 8 }} +{{- end }} - name: keel # Note that we use appVersion to get images tag. image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"