Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions charts/pulsar/templates/_certs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,8 @@ spec:
# Issuer references are always required.
issuerRef:
name: "{{ template "pulsar.certs.issuers.ca.name" .root }}"
# We can reference ClusterIssuers by changing the kind here.
# The default value is Issuer (i.e. a locally namespaced Issuer)
kind: Issuer
# This is optional since cert-manager will default to this value however
# if you are using an external issuer, change this to that issuer group.
group: cert-manager.io
kind: "{{ default "Issuer" .root.Values.certs.issuers.ca.kind }}"
group: "{{ default "cert-manager.io" .root.Values.certs.issuers.ca.group }}"
{{- end -}}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/pulsar/templates/tls-cert-internal-issuer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ spec:
group: cert-manager.io
---
{{- end }}
{{- if and (eq .Values.certs.internal_issuer.type "ca") (not (eq .Values.certs.issuers.ca.kind "Issuer")) -}}
{{- fail "Set certs.internal_issuer.enabled to false when using certs.issuers.ca.kind other than Issuer." -}}
{{- end }}
apiVersion: "{{ .Values.certs.internal_issuer.apiVersion }}"
kind: Issuer
metadata:
Expand Down
4 changes: 4 additions & 0 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ certs:
# The secret name of the CA certificate, it is mandatory to specify this value if TLS is enabled
# and selfsigning is not used
secretName:
# The k8s kind of the ca issuer: Issuer or ClusterIssuer
kind: Issuer
# Issuer group
group: cert-manager.io

######################################################################
# Below are settings for each component
Expand Down
Loading