Simplify config options of conduit. Now only supports PV. Also change mount path to /var/local so that it matches the typical Talos Linux config. Bump version to 0.2.2

This commit is contained in:
Tommy 2023-10-29 12:16:06 +01:00
parent cf08130fba
commit 8d496bf93a
2 changed files with 5 additions and 11 deletions

View file

@ -4,5 +4,5 @@ description: Conduit is a simple, fast and reliable chat server powered by Matri
type: application type: application
version: 0.2.1 version: 0.2.2
appVersion: "0.6.0" appVersion: "0.6.0"

View file

@ -62,7 +62,7 @@ spec:
- name: "CONDUIT_SERVER_NAME" - name: "CONDUIT_SERVER_NAME"
value: {{ .Values.conduit.server_name | quote }} value: {{ .Values.conduit.server_name | quote }}
- name: "CONDUIT_DATABASE_PATH" - name: "CONDUIT_DATABASE_PATH"
value: "/var/lib/matrix-conduit" value: "/var/local/matrix-conduit"
- name: "CONDUIT_DATABASE_BACKEND" - name: "CONDUIT_DATABASE_BACKEND"
value: "rocksdb" value: "rocksdb"
- name: "CONDUIT_ALLOW_CHECK_FOR_UPDATE" - name: "CONDUIT_ALLOW_CHECK_FOR_UPDATE"
@ -93,13 +93,11 @@ spec:
- name: "CONDUIT_REGISTRATION_TOKEN" - name: "CONDUIT_REGISTRATION_TOKEN"
value: {{ . | quote }} value: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.conduit.wellKnownClient }}
- name: "CONDUIT_WELL_KNOWN_CLIENT" - name: "CONDUIT_WELL_KNOWN_CLIENT"
value: {{ . | quote }} value: false
{{- end }}
volumeMounts: volumeMounts:
- name: "data" - name: "data"
mountPath: "/var/lib/matrix-conduit" mountPath: "/var/local/matrix-conduit"
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
@ -114,11 +112,7 @@ spec:
{{- end }} {{- end }}
volumes: volumes:
- name: "data" - name: "data"
{{- if .Values.persistence.hostPath }} {{- if .Values.persistence.enabled }}
hostPath:
type: Directory
path: {{ .Values.persistence.hostPath | quote }}
{{- else if .Values.persistence.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "conduit.fullname" . }}{{- end }} claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "conduit.fullname" . }}{{- end }}
{{- else }} {{- else }}