Skip to content

Commit

Permalink
edge-controller: configure primary site mode through values (#101)
Browse files Browse the repository at this point in the history
### Changelog

- Added: expose primary site configuration for edge controller through
helm chart values.

### Docs

foxglove/docs#481

### Description

It's possible to use an edge controller with a hosted primary site, but
right now users don't have a good way to configure that. This PR plumbs
through a configuration variable for this.
<!-- Describe the problem, what has changed, and motivation behind those
changes. Pretend you are advocating for this change and the reader is
skeptical. -->
  • Loading branch information
james-rms authored Nov 12, 2024
1 parent 22ffdb6 commit c19a5fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/edge-site/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ type: application
# 1.0.0-alpha.0
# 1.0.0-alpha.1
# 1.0.0
version: "0.0.29"
version: "0.0.30"

appVersion: "65e83cd7ed9004d89c83e239a4c6fa8dbd4caa08"
2 changes: 2 additions & 0 deletions charts/edge-site/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 9 additions & 4 deletions charts/edge-site/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ globals:
## For example: us-east-1
region: ""

# This section configures where the deployment will upload files you wish to import into a primary site
# This section configures where the deployment will upload files you wish to import.
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. Ignored if
# `primarySiteMode` is set to `hosted`.
# 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. Ignored if `primarySiteMode` is set to
# `hosted`.
bucketName:

# Configuration for recording storage, defaults to the persistent volume configured by
Expand Down

0 comments on commit c19a5fa

Please sign in to comment.