Skip to content

Commit

Permalink
Add remoteStorageConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m committed Nov 19, 2024
1 parent fdc3d7c commit 611c8f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/neon-storage-scrubber/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ $ helm install neon-storage-scrubber neondatabase/neon-storage-scrubber
| storageScrubber.awsRegion | string | `""` | The AWS region to run the scrubber |
| storageScrubber.command | list | `["pageserver-physical-gc","--min-age=1week"]` | The command to run |
| storageScrubber.enableStorageControllerConnection | bool | `false` | Enable storage controller related functionalities |
| storageScrubber.remoteStorageConfig | object | `{}` | The config object to connect to the remote storage (alternative to previous two vars) |
| storageScrubber.schedule | string | `"0 18 * * *"` | |
| storageScrubber.storageControllerJwtToken | string | `""` | Control plane / storage controller JWT token for connecting to the storage controller |
| storageScrubber.storageControllerUrl | string | `""` | URL of the storage controller |
Expand Down
8 changes: 8 additions & 0 deletions charts/neon-storage-scrubber/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,18 @@ spec:
{{- end -}}
{{- toYaml .Values.storageScrubber.command | nindent 16 }}
env:
{{- if .Values.storageScrubber.awsBucket }}
- name: BUCKET
value: {{ .Values.storageScrubber.awsBucket }}
{{- end }}
{{- if .Values.storageScrubber.awsRegion }}
- name: REGION
value: {{ .Values.storageScrubber.awsRegion }}
{{- end }}
{{- if .Values.storageScrubber.remoteStorageConfig }}
- name: REMOTE_STORAGE_CONFIG
value: {{ toToml .Values.storageScrubber.remoteStorageConfig | nindent 20 }}
{{- end }}
{{- if .Values.settings }}
{{- with .Values.settings.sentryUrl }}
- name: SENTRY_DSN
Expand Down
2 changes: 2 additions & 0 deletions charts/neon-storage-scrubber/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ storageScrubber:
awsRegion: ""
# -- The AWS bucket for the pageserver storage
awsBucket: ""
# -- The config object to connect to the remote storage (alternative to previous two vars)
remoteStorageConfig: {}
# -- The timezone for the cron job
timeZone: "Etc/UTC"
# -- The schedule for the cron job -- By default runs every day at 6pm
Expand Down

0 comments on commit 611c8f6

Please sign in to comment.