7f96dad7 by Adam Heath

Allow the ingress class to be changed for letsencrypt.

1 parent 14ef1b3d
......@@ -24,11 +24,11 @@ spec:
privateKeySecretRef:
# Secret resource that will be used to store the account's private key.
name: acme-account-key
# Add a single challenge solver, HTTP01 using nginx
# Add a single challenge solver, HTTP01 using istio
solvers:
- http01:
ingress:
class: nginx
class: istio
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
......@@ -48,8 +48,8 @@ spec:
privateKeySecretRef:
# Secret resource that will be used to store the account's private key.
name: acme-account-key
# Add a single challenge solver, HTTP01 using nginx
# Add a single challenge solver, HTTP01 using istio
solvers:
- http01:
ingress:
class: nginx
class: istio
......
......@@ -7,6 +7,10 @@ clusterIssuer:
enabled: true
email: name@example.com
tls_key: replace-me
solvers:
- http01:
ingress:
class: istio
root-ca:
crt: null
key: null
......
......@@ -66,6 +66,9 @@ releases:
spec:
acme:
email: {{ .Values.clusterIssuer.letsencrypt.email }}
{{- if .Values.clusterIssuer.letsencrypt.solvers }}
solvers: {{ .Values.clusterIssuer.letsencrypt.solvers | toYaml | nindent 14 }}
{{- end }}
{{- else }}
$patch: delete
{{- end }}
......@@ -78,6 +81,9 @@ releases:
spec:
acme:
email: {{ .Values.clusterIssuer.letsencrypt.email }}
{{- if .Values.clusterIssuer.letsencrypt.solvers }}
solvers: {{ .Values.clusterIssuer.letsencrypt.solvers | toYaml | nindent 14 }}
{{- end }}
{{- else }}
$patch: delete
{{- end }}
......