Archify Sync server, Dockerfile and Helm chart
Rust server (axum, yrs, sqlx/PostgreSQL): live shared models over the y-websocket protocol, versions, browser sign-in with PKCE, invites, single sign-on through OIDC, metrics. Docker image on distroless, compose file, and a Helm chart with one pod, optional bundled PostgreSQL and secrets from existing Secrets.
This commit is contained in:
commit
99778d7489
67 files changed
+8362
No files matched your search
@@ -0,0 +1,45 @@
|
||||
{{- define "archify-sync.fullname" -}}
|
||||
{{- if contains .Chart.Name .Release.Name -}}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "archify-sync.labels" -}}
|
||||
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
app.kubernetes.io/part-of: archify-sync
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "archify-sync.selector" -}}
|
||||
app.kubernetes.io/name: archify-sync
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "archify-sync.dbSelector" -}}
|
||||
app.kubernetes.io/name: archify-sync-postgresql
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end -}}
|
||||
|
||||
{{/* The Secret and key that hold the database URL. */}}
|
||||
{{- define "archify-sync.dbSecret" -}}
|
||||
{{- if and .Values.postgresql.enabled .Values.postgresql.existingSecret -}}
|
||||
{{ .Values.postgresql.existingSecret }}
|
||||
{{- else if .Values.postgresql.enabled -}}
|
||||
{{ include "archify-sync.fullname" . }}-postgresql
|
||||
{{- else if .Values.database.existingSecret -}}
|
||||
{{ .Values.database.existingSecret }}
|
||||
{{- else -}}
|
||||
{{ include "archify-sync.fullname" . }}-database
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "archify-sync.dbSecretKey" -}}
|
||||
{{- if or .Values.postgresql.enabled (not .Values.database.existingSecret) -}}
|
||||
url
|
||||
{{- else -}}
|
||||
{{ .Values.database.existingSecretKey }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in new issue
Block a user