Skip to content

Commit 01c308d

Browse files
authored
Fix collectorDataSource retention env var conditions (#336)
* Fix collectorDataSource retention env var conditions The condition checks for retention10m, retention1h, and retention1d were incorrectly checking for non-existent field names (retentionResolution10m, retentionResolution1h, retentionResolution1d), causing the env vars to never be set even when the values were configured in values.yaml. * Bump chart version to 2.5.9
1 parent b23f3d1 commit 01c308d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.8
12+
version: 2.5.9
1313
maintainers:
1414
- name: jessegoodier
1515
- name: toscott

charts/opencost/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ spec:
165165
- name: NETWORK_PORT
166166
value: {{ .networkPort | quote }}
167167
{{- end }}
168-
{{- if .retentionResolution10m }}
168+
{{- if .retention10m }}
169169
- name: COLLECTOR_RESOLUTION_10M_RETENTION
170170
value: {{ .retention10m | quote }}
171171
{{- end }}
172-
{{- if .retentionResolution1h }}
172+
{{- if .retention1h }}
173173
- name: COLLECTOR_RESOLUTION_1H_RETENTION
174174
value: {{ .retention1h | quote }}
175175
{{- end }}
176-
{{- if .retentionResolution1d }}
176+
{{- if .retention1d }}
177177
- name: COLLECTOR_RESOLUTION_1D_RETENTION
178178
value: {{ .retention1d | quote }}
179179
{{- end }}

0 commit comments

Comments
 (0)