Skip to content

Commit

Permalink
fix: acmedns secret placeholder cannot b64dec
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Sep 11, 2024
1 parent d9000ab commit 943fbcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/cloud/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ENV cloudPort=""
ENV mongodbUri=""
ENV mongodbVersion="mongodb-5.0"
ENV acmednsHost="auth.acme-dns.io"
ENV acmednsSecret="<acmedns-secret-placeholder>"
ENV acmednsSecret=""

CMD ["bash scripts/init.sh"]
2 changes: 1 addition & 1 deletion deploy/cloud/manifests/acme-cert.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
stringData:
acmedns.json: |
{
"{{ .cloudDomain }}": {{ .acmednsSecret | b64dec }}
"{{ .cloudDomain }}": {{ empty .acmednsSecret | ternary "<acmedns-secret-placeholder>" (.acmednsSecret | b64dec) }}
}
kind: Secret
metadata:
Expand Down

0 comments on commit 943fbcc

Please sign in to comment.