This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new 0031827 Support using self generated certificates (#523)
0031827 is described below
commit 00318277618364ff4f46bb859bac98342abf6a6b
Author: Duncan Schulze <[email protected]>
AuthorDate: Fri Aug 23 10:49:36 2024 -0400
Support using self generated certificates (#523)
* Support using self generated certificates
* chore: fix linting
---
charts/pulsar/templates/tls-certs-internal.yaml | 2 ++
charts/pulsar/values.yaml | 1 +
2 files changed, 3 insertions(+)
diff --git a/charts/pulsar/templates/tls-certs-internal.yaml
b/charts/pulsar/templates/tls-certs-internal.yaml
index 1fc4aed..b14ce15 100644
--- a/charts/pulsar/templates/tls-certs-internal.yaml
+++ b/charts/pulsar/templates/tls-certs-internal.yaml
@@ -21,6 +21,7 @@
{{- if .Values.certs.internal_issuer.enabled }}
{{- if .Values.tls.proxy.enabled }}
+{{- if .Values.tls.proxy.createCert }}
apiVersion: "{{ .Values.certs.internal_issuer.apiVersion }}"
kind: Certificate
metadata:
@@ -63,6 +64,7 @@ spec:
group: cert-manager.io
---
{{- end }}
+{{- end }}
{{- if or .Values.tls.broker.enabled (or .Values.tls.bookie.enabled
.Values.tls.zookeeper.enabled) }}
apiVersion: "{{ .Values.certs.internal_issuer.apiVersion }}"
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index 45c332c..ec9bdbc 100755
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -226,6 +226,7 @@ tls:
proxy:
enabled: false
cert_name: tls-proxy
+ createCert: true # set to false if you want to use an existing certificate
# settings for generating certs for broker
broker:
enabled: false