From d0e374b570b6877a07f388cd632a7c1f84c54f55 Mon Sep 17 00:00:00 2001 From: dushu Date: Wed, 18 Sep 2024 16:29:46 -0400 Subject: [PATCH] chore: update the skaffold deployment to include mail service --- deployments/helm/mailhog/values.yaml | 7 +++++++ deployments/kubectl/configMap.yaml | 3 +++ skaffold.yaml | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100644 deployments/helm/mailhog/values.yaml diff --git a/deployments/helm/mailhog/values.yaml b/deployments/helm/mailhog/values.yaml new file mode 100644 index 000000000..3a1a2d850 --- /dev/null +++ b/deployments/helm/mailhog/values.yaml @@ -0,0 +1,7 @@ +containerPort: + http: + name: http + port: 8025 + smtp: + name: tcp-smtp + port: 1025 diff --git a/deployments/kubectl/configMap.yaml b/deployments/kubectl/configMap.yaml index ba8429a62..53ddb7751 100644 --- a/deployments/kubectl/configMap.yaml +++ b/deployments/kubectl/configMap.yaml @@ -32,6 +32,9 @@ data: OAUTH2_CODEGRANT_SCOPES: "openid,offline_access,email,profile" OAUTH2_AUTH_COOKIES_ENCRYPTION_KEY: "WrfOcYmVBwyduEbKYTUhO4X7XVaOQ1wF" ACCESS_TOKEN_VERIFICATION_STRATEGY: "jwks" + MAIL_HOST: "mailhog.default.svc.cluster.local" + MAIL_PORT: "1025" + MAIL_FROM_ADDRESS: "identity-team@canonical.com" --- apiVersion: v1 kind: ConfigMap diff --git a/skaffold.yaml b/skaffold.yaml index 0536803fd..4003e7e62 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -59,6 +59,10 @@ deploy: repo: https://openfga.github.io/helm-charts valuesFiles: ["deployments/helm/openfga/values.yaml"] wait: false + - name: mailhog + remoteChart: mailhog + repo: https://codecentric.github.io/helm-charts + valuesFiles: ["deployments/helm/mailhog/values.yaml"] portForward: - resourceType: service @@ -96,3 +100,8 @@ portForward: namespace: default port: 8080 localPort: 14457 +- resourceType: service + resourceName: mailhog + namespace: default + port: 8025 + localPort: 18025