|
42 | 42 | - name: DB_USER
|
43 | 43 | valueFrom:
|
44 | 44 | secretKeyRef:
|
| 45 | + {{- if .Values.secret.db.secretRef }} |
| 46 | + name: {{ .Values.secret.db.secretRef }} |
| 47 | + key: {{ .Values.secret.db.secretRefKey.username | default "username" }} |
| 48 | + {{- else }} |
45 | 49 | name: {{ include "supabase.secret.db" . }}
|
46 | 50 | key: username
|
| 51 | + {{- end }} |
47 | 52 | - name: DB_PORT
|
48 | 53 | value: {{ .Values.auth.environment.DB_PORT | quote }}
|
49 | 54 | command: ["/bin/sh", "-c"]
|
@@ -72,37 +77,67 @@ spec:
|
72 | 77 | - name: DB_PASSWORD
|
73 | 78 | valueFrom:
|
74 | 79 | secretKeyRef:
|
| 80 | + {{- if .Values.secret.db.secretRef }} |
| 81 | + name: {{ .Values.secret.db.secretRef }} |
| 82 | + key: {{ .Values.secret.db.secretRefKey.password | default "password" }} |
| 83 | + {{- else }} |
75 | 84 | name: {{ include "supabase.secret.db" . }}
|
76 | 85 | key: password
|
| 86 | + {{- end }} |
77 | 87 | - name: DB_PASSWORD_ENC
|
78 | 88 | valueFrom:
|
79 | 89 | secretKeyRef:
|
| 90 | + {{- if .Values.secret.db.secretRef }} |
| 91 | + name: {{ .Values.secret.db.secretRef }} |
| 92 | + key: {{ .Values.secret.db.secretRefKey.password | default "password" }} |
| 93 | + {{- else }} |
80 | 94 | name: {{ include "supabase.secret.db" . }}
|
81 | 95 | key: password_encoded
|
| 96 | + {{- end }} |
82 | 97 | - name: DB_NAME
|
83 | 98 | valueFrom:
|
84 | 99 | secretKeyRef:
|
| 100 | + {{- if .Values.secret.db.secretRef }} |
| 101 | + name: {{ .Values.secret.db.secretRef }} |
| 102 | + key: {{ .Values.secret.db.secretRefKey.database | default "database" }} |
| 103 | + {{- else }} |
85 | 104 | name: {{ include "supabase.secret.db" . }}
|
86 | 105 | key: database
|
| 106 | + {{- end }} |
87 | 107 | - name: GOTRUE_DB_DATABASE_URL
|
88 | 108 | value: $(DB_DRIVER)://$(DB_USER):$(DB_PASSWORD_ENC)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?search_path=auth&sslmode=$(DB_SSL)
|
89 | 109 | - name: GOTRUE_DB_DRIVER
|
90 | 110 | value: $(DB_DRIVER)
|
91 | 111 | - name: GOTRUE_JWT_SECRET
|
92 | 112 | valueFrom:
|
93 | 113 | secretKeyRef:
|
| 114 | + {{- if .Values.secret.jwt.secretRef }} |
| 115 | + name: {{ .Values.secret.jwt.secretRef }} |
| 116 | + key: {{ .Values.secret.jwt.secretRefKey.secret | default "secret" }} |
| 117 | + {{- else }} |
94 | 118 | name: {{ include "supabase.secret.jwt" . }}
|
95 | 119 | key: secret
|
| 120 | + {{- end }} |
96 | 121 | - name: GOTRUE_SMTP_USER
|
97 | 122 | valueFrom:
|
98 | 123 | secretKeyRef:
|
| 124 | + {{- if .Values.secret.smtp.secretRef }} |
| 125 | + name: {{ .Values.secret.smtp.secretRef }} |
| 126 | + key: {{ .Values.secret.smtp.secretRefKey.username | default "username" }} |
| 127 | + {{- else }} |
99 | 128 | name: {{ include "supabase.secret.smtp" . }}
|
100 | 129 | key: username
|
| 130 | + {{- end }} |
101 | 131 | - name: GOTRUE_SMTP_PASS
|
102 | 132 | valueFrom:
|
103 | 133 | secretKeyRef:
|
| 134 | + {{- if .Values.secret.smtp.secretRef }} |
| 135 | + name: {{ .Values.secret.smtp.secretRef }} |
| 136 | + key: {{ .Values.secret.smtp.secretRefKey.password | default "password" }} |
| 137 | + {{- else }} |
104 | 138 | name: {{ include "supabase.secret.smtp" . }}
|
105 | 139 | key: password
|
| 140 | + {{- end }} |
106 | 141 | {{- with .Values.auth.livenessProbe }}
|
107 | 142 | livenessProbe:
|
108 | 143 | {{- toYaml . | nindent 12 }}
|
|
0 commit comments