-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prefect-server): support sqlite database (#418)
* feat(prefect-server): support sqlite database Supports using sqlite for the database in place of postgresql. Closes https://linear.app/prefect/issue/PLA-139/support-sqlite-database * Disable hpa, secret if sqlite enabled - HPA is not desired given that sqlite requires 1 replica - secret is postgresql-specific * Add tests for sqlite settings * Fix resiliency of separate test This test, separate from my changes, failed because it was looking for a volumeMount at a specific index. This change allows it to just confirm the entry is present without worrying about a specific location in the list. * Fix mount setting, hosting at /data The application was failing to start, saying it couldn't access the database file. This change mounts a directory without a subPath setting, allowing the application to create the file instead. * Make persistence settings more configurable * Add to values schema * Add documentation on enabling sqlite * Replace hard-coded PVC name Uses a template to calculate the PVC name, matching the pattern used for other objects like the Deployment.
- Loading branch information
1 parent
1904f18
commit f1e9d3a
Showing
9 changed files
with
190 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if and .Values.sqlite.enabled .Values.sqlite.persistence.enabled }} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "common.names.fullname" . }}-sqlite | ||
namespace: {{.Release.Namespace}} | ||
spec: | ||
{{- with .Values.sqlite.persistence.storageClassName }} | ||
storageClassName: {{.}} | ||
{{- end }} | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: {{.Values.sqlite.persistence.size}} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters