From 00318277618364ff4f46bb859bac98342abf6a6b Mon Sep 17 00:00:00 2001 From: Duncan Schulze <13733349+duncaan@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:49:36 -0400 Subject: [PATCH] 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 1fc4aed8..b14ce157 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 45c332c7..ec9bdbc5 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