mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 03:48:39 +00:00
After merge this pull request, need to change the `DATABASE_URL` in environment secrets (stable/beta) from `127.0.0.1` to `affine-cloud-sql-proxy`
16 lines
468 B
YAML
16 lines
468 B
YAML
{{- if .Values.global.database.gcloud.enabled -}}
|
|
{{- if .Values.serviceAccount.create -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "gcloud-sql-proxy.serviceAccountName" . }}
|
|
labels:
|
|
{{- include "gcloud-sql-proxy.labels" . | nindent 4 }}
|
|
{{- with .Values.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
|
|
{{- end }}
|
|
{{- end }}
|