From 9471574c51385587ff86fa529e263e1e19ce37cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Franke?= Date: Wed, 7 Aug 2019 15:44:37 +0200 Subject: [PATCH] Add manifest generation to helm chart. To be able to use flux with kustomize, it needs to be started with --manifest-generation, this was absent in the helm chart. This commit adds this. --- chart/flux/templates/deployment.yaml | 3 +++ chart/flux/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/chart/flux/templates/deployment.yaml b/chart/flux/templates/deployment.yaml index 8b08ad301..4dd5e8869 100644 --- a/chart/flux/templates/deployment.yaml +++ b/chart/flux/templates/deployment.yaml @@ -186,6 +186,9 @@ spec: {{- if .Values.git.label }} - --git-label={{ .Values.git.label }} {{- end }} + {{- if .Values.git.manifestGeneration }} + - --manifest-generation=true + {{- end }} - --registry-poll-interval={{ .Values.registry.pollInterval }} - --registry-rps={{ .Values.registry.rps }} - --registry-burst={{ .Values.registry.burst }} diff --git a/chart/flux/values.yaml b/chart/flux/values.yaml index dab18b280..57a1be481 100644 --- a/chart/flux/values.yaml +++ b/chart/flux/values.yaml @@ -178,6 +178,8 @@ git: # data: | # [credential "https://github.com"] # username = foo + # Enables manifest generation. For an example see: https://github.com/weaveworks/flux-kustomize-example + manifestGeneration: false registry: # Period at which to check for updated images