Skip to content

Commit

Permalink
feat: Allow FileStore image to be set
Browse files Browse the repository at this point in the history
Allows overriding the file store container
  • Loading branch information
hardillb committed Feb 14, 2024
1 parent 9b09492 commit e6fd3d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/flowforge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Enables FlowForge Telemetry
### File Storage

- `forge.fileStore.enabled` (default `false`)
- `forge.fileStore.image` supply a fully qualified container image for the File Storage app (default `forge.registry`/flowforge/file-server:<App Version>)
- `forge.fileStore.type` Choice of backends to store files `localfs` or `s3` (default `localfs`)
- `forge.fileStore.options` Options to pass to the backend storage driver (See [file-server](https://github.com/flowforge/flowforge-file-server) for details)
- `forge.fileStore.quota` Sets the maximum number of bytes that a project can store as files (default `104857600`)
Expand Down
4 changes: 4 additions & 0 deletions helm/flowforge/templates/file-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ spec:
key: password
containers:
- name: file-storage
{{- if .Values.forge.fileStore.image }}
image: {{ .Values.forge.fileStore.image }}
{{ else }}
image: {{ .Values.forge.registry }}{{- if .Values.forge.registry -}}/{{- end -}}flowforge/file-server:{{ .Chart.AppVersion }}
{{end -}}
imagePullPolicy: Always
env:
- name: NODE_ENV
Expand Down
3 changes: 3 additions & 0 deletions helm/flowforge/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@
},
"labels": {
"type": "object"
},
"image": {
"type": "string"
}
},
"required": [
Expand Down

0 comments on commit e6fd3d3

Please sign in to comment.