diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index abeb6d42..26fcce23 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -62,10 +62,15 @@ spec: - /app/config-db args: - operator - - -v + {{- if .Values.logLevel }} + - {{ .Values.logLevel }} + {{- end }} - --disable-postgrest={{ .Values.disablePostgrest }} - --change-retention-days={{ .Values.configChangeRetentionDays }} - --analysis-retention-days={{ .Values.configAnalysisRetentionDays }} + {{- if .Values.jsonLogs }} + - --json-logs + {{- end }} {{- if .Values.db.runMigrations}} - --db-migrations {{- end}} diff --git a/chart/values.yaml b/chart/values.yaml index 92feb6b6..06b6becd 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -26,6 +26,10 @@ image: configChangeRetentionDays: 60 configAnalysisRetentionDays: 60 +# -v, -vv, -vvv +logLevel: "" +jsonLogs: true + # a list of configmaps to load scrape rules from, the configmap should have a single entry called "config.yaml" scrapeRuleConfigMaps: - config-db-rules