diff --git a/charts/kubedb-webhook-server/templates/_helpers.tpl b/charts/kubedb-webhook-server/templates/_helpers.tpl index aea0a748d..c0d668b0e 100644 --- a/charts/kubedb-webhook-server/templates/_helpers.tpl +++ b/charts/kubedb-webhook-server/templates/_helpers.tpl @@ -103,7 +103,7 @@ Returns the ServiceMonitor labels {{/* Prepare certs */}} -{{- define "prepare-certs" -}} +{{- define "kubedb-webhook-server.prepare-certs" -}} {{- if not ._caCrt }} {{- $caCrt := "" }} {{- $serverCrt := "" }} diff --git a/charts/kubedb-webhook-server/templates/apiregistration.yaml b/charts/kubedb-webhook-server/templates/apiregistration.yaml index f64c0cba4..5f46a1e78 100644 --- a/charts/kubedb-webhook-server/templates/apiregistration.yaml +++ b/charts/kubedb-webhook-server/templates/apiregistration.yaml @@ -1,4 +1,4 @@ -{{ template "prepare-certs" $ }} +{{ template "kubedb-webhook-server.prepare-certs" $ }} apiVersion: v1 kind: Secret diff --git a/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml b/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml index b0fd92c27..a068301c6 100644 --- a/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml +++ b/charts/kubedb-webhook-server/templates/provisioner/mutating-webhook.yaml @@ -1,4 +1,4 @@ -{{ template "prepare-certs" $ }} +{{ template "kubedb-webhook-server.prepare-certs" $ }} {{ $featureGates := .Values.featureGates }} {{- if .Values.global }} diff --git a/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml b/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml index 975c68ae1..a443b1e5d 100644 --- a/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml +++ b/charts/kubedb-webhook-server/templates/provisioner/validating-webhook.yaml @@ -1,4 +1,4 @@ -{{ template "prepare-certs" $ }} +{{ template "kubedb-webhook-server.prepare-certs" $ }} {{ $featureGates := .Values.featureGates }} {{- if .Values.global }}