From 4e694866dff17c087190e11737eb0ab3161e44cc Mon Sep 17 00:00:00 2001 From: Nam Hai Nguyen Date: Mon, 2 Oct 2023 07:51:01 +0000 Subject: [PATCH] Add extra arguments to the cli command --- charts/opencost/Chart.yaml | 2 +- charts/opencost/templates/deployment.yaml | 4 ++++ charts/opencost/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/opencost/Chart.yaml b/charts/opencost/Chart.yaml index 80cc1c1..0bb0b60 100755 --- a/charts/opencost/Chart.yaml +++ b/charts/opencost/Chart.yaml @@ -9,7 +9,7 @@ keywords: - kubecost - opencost - monitoring -version: 1.20.0 +version: 1.20.1 maintainers: - name: mattray url: https://mattray.dev diff --git a/charts/opencost/templates/deployment.yaml b/charts/opencost/templates/deployment.yaml index 807bce3..a43a718 100644 --- a/charts/opencost/templates/deployment.yaml +++ b/charts/opencost/templates/deployment.yaml @@ -53,6 +53,10 @@ spec: - name: {{ include "opencost.fullname" . }} image: "{{ .Values.opencost.exporter.image.registry }}/{{ .Values.opencost.exporter.image.repository }}:{{ .Values.opencost.exporter.image.tag | default (printf "prod-%s" .Chart.AppVersion) }}" imagePullPolicy: {{ .Values.opencost.exporter.image.pullPolicy }} + args: + {{- range .Values.opencost.exporter.extraArgs }} + - --{{ . }} + {{- end }} ports: - containerPort: 9003 name: http diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index dcb33b5..88e4a97 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -62,6 +62,8 @@ opencost: tag: "" # -- Exporter container image pull policy pullPolicy: IfNotPresent + # -- List of extra arguments for the command, e.g.: log-format=json + extraArgs: [] # -- Number of OpenCost replicas to run replicas: 1 resources: