From 05bd5c3f11975813ec88dde9dfe3085323259182 Mon Sep 17 00:00:00 2001 From: Waleed Malik Date: Mon, 30 Nov 2020 12:45:25 +0500 Subject: [PATCH] Update webhook cert value in helm chart --- charts/jira-service-desk-operator/templates/_helpers.tpl | 4 ++-- charts/jira-service-desk-operator/values.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/jira-service-desk-operator/templates/_helpers.tpl b/charts/jira-service-desk-operator/templates/_helpers.tpl index abcbf55..dfc76a7 100644 --- a/charts/jira-service-desk-operator/templates/_helpers.tpl +++ b/charts/jira-service-desk-operator/templates/_helpers.tpl @@ -65,8 +65,8 @@ Create the name of the service account to use Create the name of the tls secret to use */}} {{- define "jira-service-desk-operator.tlsSecretName" -}} -{{- if .Values.tlsSecretName }} -{{- .Values.tlsSecretName }} +{{- if .Values.webhook.certs.secret }} +{{- .Values.webhook.certs.secret }} {{- else }} {{- printf "%s-webhook-server-cert" (include "jira-service-desk-operator.fullname" .) }} {{- end }} diff --git a/charts/jira-service-desk-operator/values.yaml b/charts/jira-service-desk-operator/values.yaml index 81acb2b..3f77acc 100644 --- a/charts/jira-service-desk-operator/values.yaml +++ b/charts/jira-service-desk-operator/values.yaml @@ -12,11 +12,11 @@ fullnameOverride: "" watchNamespaces: [] configSecretName: "jira-service-desk-config" -tlsSecretName: "" - # Webhook Configuration webhook: enabled: true + certs: + secret: "" service: type: ClusterIP