Skip to content

Commit d1f08f2

Browse files
authored
Merge pull request #333 from HMetcalfeW/fix-cloud-cost-storage
Create Empty /var/configs dir
2 parents fbee83d + b3dc306 commit d1f08f2

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

charts/opencost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords:
99
- finops
1010
- monitoring
1111
- opencost
12-
version: 2.5.11
12+
version: 2.5.12
1313
maintainers:
1414
- name: jessegoodier
1515
- name: toscott

charts/opencost/templates/deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ spec:
363363
name: custom-configs
364364
{{- end }}
365365
{{- if $cloudIntegrationSecretName }}
366+
- name: var-configs
367+
mountPath: /var/configs
366368
- name: cloud-integration
367369
mountPath: /var/configs/cloud-integration.json
368370
subPath: cloud-integration.json
@@ -496,13 +498,15 @@ spec:
496498
claimName: {{ include "opencost.fullname" . }}-pvc
497499
{{- end }}
498500
{{- if $cloudIntegrationSecretName }}
501+
- name: var-configs
502+
emptyDir: {}
499503
- name: cloud-integration
500504
secret:
501505
secretName: {{ $cloudIntegrationSecretName }}
502506
items:
503507
- key: cloud-integration.json
504508
path: cloud-integration.json
505-
{{- end }}
509+
{{- end }}
506510
{{- if .Values.opencost.ui.enabled }}
507511
- name: opencost-ui-nginx-config-volume
508512
configMap:

charts/opencost/templates/httproute.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ spec:
4040
port: {{ default $.Values.opencost.ui.uiPort .port }}
4141
{{- end }}
4242
{{- end }}
43-
{{- end }}
4443
---
44+
{{- end }}
4545
{{- if .Values.opencost.exporter.apiHttpRoute.enabled }}
4646
apiVersion: gateway.networking.k8s.io/v1
4747
kind: HTTPRoute
@@ -84,8 +84,8 @@ spec:
8484
port: {{ default $.Values.opencost.exporter.apiPort .port }}
8585
{{- end }}
8686
{{- end }}
87-
{{- end }}
8887
---
88+
{{- end }}
8989
{{- if and .Values.opencost.mcp.enabled .Values.opencost.mcp.httpRoute.enabled }}
9090
apiVersion: gateway.networking.k8s.io/v1
9191
kind: HTTPRoute

charts/opencost/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ spec:
3737
name: {{ $.Values.opencost.ui.ingress.servicePort }}
3838
{{- end }}
3939
{{- end }}
40-
{{- end }}
4140
---
41+
{{- end }}
4242
{{- if .Values.opencost.exporter.apiIngress.enabled }}
4343
apiVersion: networking.k8s.io/v1
4444
kind: Ingress
@@ -78,8 +78,8 @@ spec:
7878
name: {{ $.Values.opencost.exporter.apiIngress.servicePort }}
7979
{{- end }}
8080
{{- end }}
81-
{{- end }}
8281
---
82+
{{- end }}
8383
{{- if and .Values.opencost.mcp.enabled .Values.opencost.mcp.ingress.enabled }}
8484
apiVersion: networking.k8s.io/v1
8585
kind: Ingress

0 commit comments

Comments
 (0)