diff --git a/.github/helm/affine/charts/graphql/templates/mailer.yaml b/.github/helm/affine/charts/graphql/templates/mailer.yaml new file mode 100644 index 0000000000..2ce5174441 --- /dev/null +++ b/.github/helm/affine/charts/graphql/templates/mailer.yaml @@ -0,0 +1,13 @@ +{{- if .Values.app.mailer.secretName -}} +apiVersion: v1 +kind: Secret +metadata: + name: "{{ .Values.app.mailer.secretName }}" +type: Opaque +data: + host: "{{ .Values.app.mailer.host | b64enc }}" + port: "{{ .Values.app.mailer.port | b64enc }}" + user: "{{ .Values.app.mailer.user | b64enc }}" + password: "{{ .Values.app.mailer.password | b64enc }}" + sender: "{{ .Values.app.mailer.sender | b64enc }}" +{{- end }} diff --git a/.github/helm/affine/charts/graphql/templates/oauth.yaml b/.github/helm/affine/charts/graphql/templates/oauth.yaml index 300bcc60ea..08d8ccd0cc 100644 --- a/.github/helm/affine/charts/graphql/templates/oauth.yaml +++ b/.github/helm/affine/charts/graphql/templates/oauth.yaml @@ -1,15 +1,3 @@ -apiVersion: v1 -kind: Secret -metadata: - name: "{{ .Values.app.oauth.email.secretName }}" -type: Opaque -data: - sender: "{{ .Values.app.oauth.email.sender | b64enc }}" - login: "{{ .Values.app.oauth.email.login | b64enc }}" - password: "{{ .Values.app.oauth.email.password | b64enc }}" - server: "{{ .Values.app.oauth.email.server | b64enc }}" - port: "{{ .Values.app.oauth.email.port | b64enc }}" ---- {{- if .Values.app.oauth.google.enabled -}} apiVersion: v1 kind: Secret