apiVersion: v1 kind: Secret metadata: name: {{ include "tasko.fullname" . }}-secrets labels: {{- include "tasko.labels" . | nindent 4 }} type: Opaque stringData: {{- if .Values.postgres }} database-url: "postgresql://{{ .Values.postgres.user }}:{{ .Values.postgres.password }}@{{ include "tasko.fullname" . }}-db-headless:{{ .Values.postgres.port }}/{{ .Values.postgres.database }}" {{- else if .Values.postgresql }} database-url: "postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ include "tasko.fullname" . }}-postgresql:5432/{{ .Values.postgresql.auth.database }}" {{- end }} # OAuth Secrets google-client-id: {{ .Values.backend.oauth.google.clientId | quote }} google-client-secret: {{ .Values.backend.oauth.google.clientSecret | quote }} # Session Secret for signing cookies session-secret: {{ .Values.backend.sessionSecret | quote }}