diff --git a/sources/dogfood-cert-manager/templates/letsencrypt-prod-gcp.yaml b/sources/dogfood-cert-manager/templates/letsencrypt-prod-gcp.yaml index 57d2cde..1a64ecc 100644 --- a/sources/dogfood-cert-manager/templates/letsencrypt-prod-gcp.yaml +++ b/sources/dogfood-cert-manager/templates/letsencrypt-prod-gcp.yaml @@ -15,4 +15,9 @@ spec: solvers: - dns01: cloudDNS: - project: dogfood-cx \ No newline at end of file + project: dogfood-cx + {{ if .Values.letsencrypt.serviceAccountSecretRef.name }} + serviceAccountSecretRef: │ + key: {{ .Values.letsencrypt.serviceAccountSecretRef.name }} │ + name: {{ .Values.letsencrypt.serviceAccountSecretRef.key }} + {{ end }} \ No newline at end of file diff --git a/sources/dogfood-cert-manager/values.yaml b/sources/dogfood-cert-manager/values.yaml index aa53449..3064afe 100644 --- a/sources/dogfood-cert-manager/values.yaml +++ b/sources/dogfood-cert-manager/values.yaml @@ -2,3 +2,7 @@ jetstack-cert-manager: namespace: cert-manager installCRDs: true featureGates: "ExperimentalCertificateSigningRequestControllers=true,ExperimentalGatewayAPISupport=true" +letsencrypt: + serviceAccountSecretRef: │ + key: "" │ + name: ""