From 46daf4420a779c8cfff0fa2a910e20b826054eeb Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 11 Nov 2024 15:44:49 +1100 Subject: [PATCH] edge-controller: configure primary site mode through values --- charts/edge-site/templates/statefulset.yaml | 2 ++ charts/edge-site/values.yaml | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/charts/edge-site/templates/statefulset.yaml b/charts/edge-site/templates/statefulset.yaml index cbb3109..71d3dc9 100644 --- a/charts/edge-site/templates/statefulset.yaml +++ b/charts/edge-site/templates/statefulset.yaml @@ -75,6 +75,8 @@ spec: key: token optional: false {{- end }} + - name: PRIMARY_SITE_MODE + value: "{{ .Values.globals.upload.primarySiteMode }}" - name: DATABASE_CONNECTION_STRING value: sqlite://file:/data/index/foxglove.db?_journal_mode=WAL - name: STORAGE_ROOT diff --git a/charts/edge-site/values.yaml b/charts/edge-site/values.yaml index 977aef6..9f3fa8a 100644 --- a/charts/edge-site/values.yaml +++ b/charts/edge-site/values.yaml @@ -18,10 +18,14 @@ globals: # This section configures where the deployment will upload files you wish to import into a primary site upload: - # The cloud provider where the destination inbox bucket lives - # Values values: aws, azure, google_cloud + # Upload to either a Foxglove-hosted or self-managed primary site. + # Values: "self-managed", "hosted" + primarySiteMode: self-managed + # The cloud provider where the self-managed primary site inbox bucket lives. + # If `primarySiteMode` is set to `hosted`, these values are ignored. + # Values: aws, azure, google_cloud provider: - # The bucket name where the deployment will send the requested files + # The self-managed primary site inbox bucket name bucketName: # Configuration for recording storage, defaults to the persistent volume configured by