From efb2e7a7b14c84f8c7eca94eab7cddd197618d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Groothuis?= Date: Tue, 28 Oct 2025 11:11:43 +0100 Subject: [PATCH] chore(gitea): Updated values for SMTP support --- manifests/artemis/gitea/kustomization.yaml | 3 ++ manifests/artemis/gitea/secret.yaml | 41 ++++++++++++++++++++++ manifests/artemis/gitea/values.yaml | 6 ++-- 3 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 manifests/artemis/gitea/secret.yaml diff --git a/manifests/artemis/gitea/kustomization.yaml b/manifests/artemis/gitea/kustomization.yaml index f5b6976..88c3e97 100644 --- a/manifests/artemis/gitea/kustomization.yaml +++ b/manifests/artemis/gitea/kustomization.yaml @@ -4,6 +4,9 @@ kind: Kustomization metadata: name: gitea +resources: + - secret.yaml + helmCharts: - name: gitea repo: https://dl.gitea.com/charts/ diff --git a/manifests/artemis/gitea/secret.yaml b/manifests/artemis/gitea/secret.yaml new file mode 100644 index 0000000..7a5c85f --- /dev/null +++ b/manifests/artemis/gitea/secret.yaml @@ -0,0 +1,41 @@ +--- +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: gitea-smtp-secret +spec: + refreshInterval: 1h + secretStoreRef: + name: platform + kind: ClusterSecretStore + target: + name: gitea-smtp-secret + data: + - secretKey: mailer.PASSWD + remoteRef: + key: gitea/smtp + property: SMTP_PASSWD + - secretKey: mailer.USER + remoteRef: + key: gitea/smtp + property: SMTP_USER + - secretKey: mailer.SMTP_ADDR + remoteRef: + key: gitea/smtp + property: SMTP_ADDR + - secretKey: mailer.SMTP_PORT + remoteRef: + key: gitea/smtp + property: SMTP_PORT + - secretKey: mailer.FROM + remoteRef: + key: gitea/smtp + property: SMTP_FROM + - secretKey: mailer.ENABLED + remoteRef: + key: gitea/smtp + property: SMTP_ENABLED + - secretKey: mailer.PROTOCOL + remoteRef: + key: gitea/smtp + property: SMTP_PROTOCOL diff --git a/manifests/artemis/gitea/values.yaml b/manifests/artemis/gitea/values.yaml index a432742..d04c1c5 100644 --- a/manifests/artemis/gitea/values.yaml +++ b/manifests/artemis/gitea/values.yaml @@ -444,9 +444,9 @@ gitea: # PASSWORD_COMPLEXITY: spec ## @param gitea.additionalConfigSources Additional configuration from secret or configmap - additionalConfigSources: [] - # - secret: - # secretName: gitea-app-ini-oauth + additionalConfigSources: + - secret: + secretName: gitea-smtp-secret # - configMap: # name: gitea-app-ini-plaintext