File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,8 @@ spec:
107
107
# Issuer references are always required.
108
108
issuerRef:
109
109
name: "{ { template " pulsar.certs.issuers.ca.name" .root } }"
110
- # We can reference ClusterIssuers by changing the kind here.
111
- # The default value is Issuer (i.e. a locally namespaced Issuer)
112
- kind: Issuer
113
- # This is optional since cert-manager will default to this value however
114
- # if you are using an external issuer, change this to that issuer group.
115
- group: cert-manager.io
110
+ kind: "{ { default " Issuer" .root.Values.certs.issuers.ca.kind } }"
111
+ group: "{ { default " cert-manager.io" .root.Values.certs.issuers.ca.group } }"
116
112
{ {- end -} }
117
113
118
114
{ {/*
Original file line number Diff line number Diff line change 55
55
group : cert-manager.io
56
56
---
57
57
{{- end }}
58
+ {{- if and (eq .Values.certs.internal_issuer.type "ca") (not (eq .Values.certs.issuers.ca.kind "Issuer")) -}}
59
+ {{- fail "Set certs.internal_issuer.enabled to false when using certs.issuers.ca.kind other than Issuer." -}}
60
+ {{- end }}
58
61
apiVersion : " {{ .Values.certs.internal_issuer.apiVersion }}"
59
62
kind : Issuer
60
63
metadata :
Original file line number Diff line number Diff line change @@ -397,6 +397,10 @@ certs:
397
397
# The secret name of the CA certificate, it is mandatory to specify this value if TLS is enabled
398
398
# and selfsigning is not used
399
399
secretName :
400
+ # The k8s kind of the ca issuer: Issuer or ClusterIssuer
401
+ kind : Issuer
402
+ # Issuer group
403
+ group : cert-manager.io
400
404
401
405
# #####################################################################
402
406
# Below are settings for each component
You can’t perform that action at this time.
0 commit comments