{{- if and .Values.deployment.oauth2proxy.enabled (not .Values.secret.oauth2proxy.secretRef) -}} apiVersion: v1 kind: Secret metadata: name: {{ include "supabase.secret.oauth2proxy" . }} labels: {{- include "supabase.labels" . | nindent 4 }} data: clientId: {{ .Values.secret.oauth2proxy.clientId | b64enc | quote }} clientSecret: {{ .Values.secret.oauth2proxy.clientSecret | b64enc | quote }} cookieSecret: {{ .Values.secret.oauth2proxy.cookieSecret | b64enc | quote }} {{- end }}