From 3aa3ae2de485bdda930e26616464651f2f0f777d Mon Sep 17 00:00:00 2001 From: sayboras Date: Tue, 17 Mar 2020 21:39:50 +1100 Subject: [PATCH] Add the logLevel configuration in helm charts --- charts/flagger/Chart.yaml | 2 +- charts/flagger/templates/deployment.yaml | 4 ++++ charts/flagger/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/flagger/Chart.yaml b/charts/flagger/Chart.yaml index ba9c734c..4e4b0886 100644 --- a/charts/flagger/Chart.yaml +++ b/charts/flagger/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: flagger -version: 0.24.0 +version: 0.25.0 appVersion: 1.0.0-rc.1 kubeVersion: ">=1.11.0-0" engine: gotpl diff --git a/charts/flagger/templates/deployment.yaml b/charts/flagger/templates/deployment.yaml index 5d6c5278..7f21da52 100644 --- a/charts/flagger/templates/deployment.yaml +++ b/charts/flagger/templates/deployment.yaml @@ -65,7 +65,11 @@ spec: containerPort: 8080 command: - ./flagger + {{- if .Values.logLevel }} + - -log-level={{ .Values.logLevel }} + {{- else }} - -log-level=info + {{- end }} {{- if .Values.meshProvider }} - -mesh-provider={{ .Values.meshProvider }} {{- end }} diff --git a/charts/flagger/values.yaml b/charts/flagger/values.yaml index 24495ef0..59300ecb 100644 --- a/charts/flagger/values.yaml +++ b/charts/flagger/values.yaml @@ -6,6 +6,9 @@ image: pullPolicy: IfNotPresent pullSecret: +# accepted values are debug, info, warning, error (defaults to info) +logLevel: "info" + podAnnotations: prometheus.io/scrape: "true" prometheus.io/port: "8080"