feat: add bootstrap_acme_enable_production_certs config var

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-07-15 15:25:27 -04:00
1 parent 983ba00cc6
commit 42e4de3eac
5 files changed
+30 -64

No files matched your search

@@ -1,3 +1,4 @@
#jinja2: trim_blocks: True, lstrip_blocks: True
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
@@ -60,7 +61,11 @@ spec:
namespaceSelector:
any: true
extraArgs:
{% if bootstrap_acme_enable_production_certs | default(false) %}
default-ssl-certificate: "networking/${SECRET_DOMAIN/./-}-production-tls"
{% else %}
default-ssl-certificate: "networking/${SECRET_DOMAIN/./-}-staging-tls"
{% endif %}
resources:
requests:
cpu: 10m
@@ -1,6 +1,9 @@
#jinja2: trim_blocks: True, lstrip_blocks: True
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./staging.yaml
# - ./production.yaml
{% if bootstrap_acme_enable_production_certs | default(false) %}
- ./production.yaml
{% endif %}