From 896a092dce61d69902d9f52da2ac74c4a3e885d3 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 3 Mar 2021 15:29:53 +0800 Subject: [PATCH] add configmap.enabled option --- charts/bbgo/templates/configmap.yaml | 2 ++ charts/bbgo/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/charts/bbgo/templates/configmap.yaml b/charts/bbgo/templates/configmap.yaml index bef2bb528..ef11002f9 100644 --- a/charts/bbgo/templates/configmap.yaml +++ b/charts/bbgo/templates/configmap.yaml @@ -1,3 +1,4 @@ +{{- if .Values.configmap.enabled }} --- apiVersion: v1 kind: ConfigMap @@ -8,3 +9,4 @@ metadata: data: bbgo.yaml: |- {{- .Files.Get .Values.configmap.file | nindent 4 }} +{{-end }} diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index e7d29d85c..7705bc217 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -16,6 +16,7 @@ nameOverride: "" fullnameOverride: "" configmap: + enabled: true file: "config/bbgo.yaml" dotenv: