mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 21:14:31 +00:00
- Makefile: Added 'init' and 'deploy' targets for k3s parity and Gitea staging. - OpenTofu: Fixed namespace handling in k3s main.tf to prevent metadata overwrites. - UI: Added 'GitOps' and 'Database Options' configuration screens. - Core: Enhanced monitoring, milestones, and environment handling for new services. - Supabase: Integrated full Helm chart and manifest rendering logic. - Gitea: Added deployment scripts and GitOps sync support. - Database: Added Percona/Postgres Dockerfile templates and improved TDE scripts. - Tests: Added coverage for new UI screens and navigation flows.
51 lines
1.7 KiB
Smarty
51 lines
1.7 KiB
Smarty
{{/*
|
|
Expand the name of the chart.
|
|
*/}}
|
|
{{- define "supabase.functions.name" -}}
|
|
{{- default (print .Chart.Name "-functions") .Values.deployment.functions.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create a default fully qualified app name.
|
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
If release name contains chart name it will be used as a full name.
|
|
*/}}
|
|
{{- define "supabase.functions.fullname" -}}
|
|
{{- if .Values.deployment.functions.fullnameOverride }}
|
|
{{- .Values.deployment.functions.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
|
{{- else }}
|
|
{{- $name := default (print .Chart.Name "-functions") .Values.deployment.functions.nameOverride }}
|
|
{{- if contains $name .Release.Name }}
|
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
|
{{- else }}
|
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Selector labels
|
|
*/}}
|
|
{{- define "supabase.functions.selectorLabels" -}}
|
|
app.kubernetes.io/name: {{ include "supabase.functions.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create the name of the service account to use
|
|
*/}}
|
|
{{- define "supabase.functions.serviceAccountName" -}}
|
|
{{- if .Values.serviceAccount.functions.create }}
|
|
{{- default (include "supabase.functions.fullname" .) .Values.serviceAccount.functions.name }}
|
|
{{- else }}
|
|
{{- default "default" .Values.serviceAccount.functions.name }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Persistent volume claim name for edge functions shared storage
|
|
*/}}
|
|
{{- define "supabase.functions.persistenceClaimName" -}}
|
|
{{- printf "%s-pvc" (include "supabase.functions.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|