From 5863b56f44b457a3cf50da3090c54870719bc424 Mon Sep 17 00:00:00 2001 From: Sean Holcomb Date: Tue, 23 Jun 2026 11:39:02 -0700 Subject: [PATCH 1/2] Add control to enable KubeModel export Signed-off-by: Sean Holcomb --- charts/opencost/templates/deployment.yaml | 2 ++ charts/opencost/values.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/opencost/templates/deployment.yaml b/charts/opencost/templates/deployment.yaml index 186e334..7774f81 100644 --- a/charts/opencost/templates/deployment.yaml +++ b/charts/opencost/templates/deployment.yaml @@ -291,6 +291,8 @@ spec: {{- else }} value: {{ .Values.opencost.retention1d | quote }} {{- end }} + - name: EXPORT_KUBEMODEL + value: {{ .Values.opencost.exporter.exportKubeModel | quote }} - name: RESOLUTION_1H_RETENTION value: {{ .Values.opencost.retention1h | quote }} - name: CLOUD_COST_ENABLED diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index 7b0926d..017b0be 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -395,6 +395,8 @@ opencost: # -- The number of 1d intervals the Collector DataSource should maintain retention1d: 15 + exportKubeModel: true + # Persistent volume claim for storing the data. eg: csv file persistence: enabled: false From 554042272257a34c2f8c98970ca328526b4a3b2f Mon Sep 17 00:00:00 2001 From: Thomas Nguyen Date: Tue, 30 Jun 2026 09:44:57 -0700 Subject: [PATCH 2/2] Values comment Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Thomas Nguyen --- charts/opencost/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index 017b0be..1b7e20c 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -395,6 +395,7 @@ opencost: # -- The number of 1d intervals the Collector DataSource should maintain retention1d: 15 + # -- Enable/disable KubeModel export by setting the EXPORT_KUBEMODEL env var exportKubeModel: true # Persistent volume claim for storing the data. eg: csv file