From 31a8cd64c3dbf2ef4240168069ef24f8de36628b Mon Sep 17 00:00:00 2001 From: Valdis Rigdon Date: Mon, 3 Jun 2024 03:54:38 -0400 Subject: [PATCH] Fixes missing inclusion of subpath for the mount path (#208) Signed-off-by: Matt Ray Co-authored-by: Matt Ray --- charts/opencost/Chart.yaml | 2 +- charts/opencost/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/opencost/Chart.yaml b/charts/opencost/Chart.yaml index 59fe19b..66d2ac6 100755 --- a/charts/opencost/Chart.yaml +++ b/charts/opencost/Chart.yaml @@ -9,7 +9,7 @@ keywords: - finops - monitoring - opencost -version: 1.38.0 +version: 1.38.1 maintainers: - name: mattray url: https://mattray.dev diff --git a/charts/opencost/templates/deployment.yaml b/charts/opencost/templates/deployment.yaml index 1cf459d..735d9a4 100644 --- a/charts/opencost/templates/deployment.yaml +++ b/charts/opencost/templates/deployment.yaml @@ -249,7 +249,7 @@ spec: readOnly: true {{- end }} {{- if .Values.opencost.metrics.config.enabled }} - - mountPath: {{ .Values.opencost.customPricing.configPath }} + - mountPath: {{ .Values.opencost.customPricing.configPath }}/metrics.json name: custom-metrics subPath: metrics.json readOnly: true @@ -373,7 +373,7 @@ spec: {{- if .Values.opencost.metrics.config.enabled }} - name: custom-metrics configMap: - name: {{ .Values.opencost.config.metrics.configmapName }} + name: {{ .Values.opencost.metrics.config.configmapName }} {{- end }} {{- if .Values.opencost.exporter.persistence.enabled }} - name: opencost-export