Skip to content

Commit b2c60b3

Browse files
authored
Expose remote-data-loader request cache env vars (#162)
### Changelog * `remote-data-loader`: expose request cache configuration ### Docs https://linear.app/foxglove/issue/FIRE-164 ### Description This PR enables configuration of the remote data loader request cache from the Helm chart. Options for setting the `REQUEST_CACHE_STORAGE_PROVIDER` and `REQUEST_CACHE_BUCKET_NAME` environment variables are exposed through `globals.cache.storageProvider` and `globals.cache.bucketName`. If `cache.enabled` is `true`, then both those values are required.
1 parent 8796a59 commit b2c60b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

charts/remote-data-loader/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{{- $deployment := .Values.remoteDataLoader.deployment -}}
2+
{{- $cache := .Values.globals.cache -}}
3+
24
apiVersion: apps/v1
35
kind: Deployment
46
metadata:
@@ -109,6 +111,12 @@ spec:
109111
value: "{{ $deployment.metrics.subsystem }}"
110112
- name: REMOTE_DATA_LOADER_VERSION
111113
value: "{{ .Chart.Version }}"
114+
{{- if $cache.enabled }}
115+
- name: REQUEST_CACHE_STORAGE_PROVIDER
116+
value: {{ required "globals.cache.storageProvider is required when cache is enabled" $cache.storageProvider }}
117+
- name: REQUEST_CACHE_BUCKET_NAME
118+
value: {{ required "globals.cache.bucketName is required when cache is enabled" $cache.bucketName }}
119+
{{- end }}
112120
{{- range $item := $deployment.env }}
113121
- name: {{ $item.name }}
114122
value: {{ $item.value | quote}}

0 commit comments

Comments
 (0)