From 943fbcc807688b113e0218a0b6f9cb9ec4c951f3 Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Wed, 11 Sep 2024 03:21:31 +0000 Subject: [PATCH] fix: acmedns secret placeholder cannot b64dec --- deploy/cloud/Kubefile | 2 +- deploy/cloud/manifests/acme-cert.yaml.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/cloud/Kubefile b/deploy/cloud/Kubefile index a4a2d337a1c..1d00f7f970c 100644 --- a/deploy/cloud/Kubefile +++ b/deploy/cloud/Kubefile @@ -9,6 +9,6 @@ ENV cloudPort="" ENV mongodbUri="" ENV mongodbVersion="mongodb-5.0" ENV acmednsHost="auth.acme-dns.io" -ENV acmednsSecret="" +ENV acmednsSecret="" CMD ["bash scripts/init.sh"] diff --git a/deploy/cloud/manifests/acme-cert.yaml.tmpl b/deploy/cloud/manifests/acme-cert.yaml.tmpl index aecd0cad797..19474b381f9 100644 --- a/deploy/cloud/manifests/acme-cert.yaml.tmpl +++ b/deploy/cloud/manifests/acme-cert.yaml.tmpl @@ -2,7 +2,7 @@ apiVersion: v1 stringData: acmedns.json: | { - "{{ .cloudDomain }}": {{ .acmednsSecret | b64dec }} + "{{ .cloudDomain }}": {{ empty .acmednsSecret | ternary "" (.acmednsSecret | b64dec) }} } kind: Secret metadata: