Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add helm config for PersistentStorge #427

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions helm/flowforge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ Enables FlowForge Telemetry
- `forge.fileStore.labels` allows to add custom labels to the file-server related objects (e.g. deployment, services, etc.) (default `{}`)
- `forge.fileStore.podLabels` allows to add custom labels to the file-server pod (default `{}`)

### Persistent Storage

This is a replacement for the File Storage, both can be run at once to enable migration

- `forge.persistentStorage.enabled` (default `false`)
- `forge.persistentStorage.size` The size of the Persistent Volume that will be mounted into each instance e.g. `5Gi` (default not set)
- `forge.persistentStorage.storageClass` The name of the Kubernetes Storage Class used to provision the volumes (default not set)
- `forge.persistentStorage.storageClassEFSTag` The name of a AWS Tag used to find EFS Volumes when needing to scale (default not set)

One of either `storageClass` or `storageClassEFSTag` needs to be set.

### Private Certificate Authority

- `forge.privateCA.configMapName` name of ConfigMap to store the CA Cert bundle (default `ff-ca-certs`)
Expand Down
13 changes: 13 additions & 0 deletions helm/flowforge/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ data:
ingressClass: {{ .Values.forge.customHostname.ingressClass }}
{{- end }}
{{- end }}
{{- if .Values.forge.persistentStorage }}
storage:
enabled: {{ .Values.forge.persistentStorage.enabled | default false }}
{{- if .Values.forge.persistentStorage.storageClass }}
storageClass: {{ .Values.forge.persistentStorage.storageClass }}
{{- end }}
{{- if .Values.forge.persistentStorage.storageClassEFSTag }}
storageClassEFSTag: {{ .Values.forge.persistentStorage.storageClassEFSTag }}
{{- end }}
{{- if .Values.forge.persistentStorage.size }}
size: {{ .Values.forge.persistentStorage.size }}
{{- end }}
{{- end }}
{{- if .Values.forge.email }}
email:
enabled: true
Expand Down
18 changes: 18 additions & 0 deletions helm/flowforge/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,24 @@
}
}
},
"persistentStorage": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"storageClass": {
"type": "string"
},
"storageClassEFSTag": {
"type": "string"
},
"size": {
"type": "string"
}
},
"required": [ "enabled" ]
},
"fileStore": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions helm/flowforge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ forge:
podLabels: {}
ingress.annotations: {}

persistentStorage:
enabled: false

fileStore:
enabled: false
type: localfs
Expand Down
Loading