Skip to content

Commit

Permalink
Avoid naming conflict for prepare-certs template
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Aug 6, 2024
1 parent e37ad8f commit 6950f2b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/kubedb-webhook-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Returns the ServiceMonitor labels
{{/*
Prepare certs
*/}}
{{- define "prepare-certs" -}}
{{- define "kubedb-webhook-server.prepare-certs" -}}
{{- if not ._caCrt }}
{{- $caCrt := "" }}
{{- $serverCrt := "" }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ template "prepare-certs" $ }}
{{ template "kubedb-webhook-server.prepare-certs" $ }}

apiVersion: v1
kind: Secret
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ template "prepare-certs" $ }}
{{ template "kubedb-webhook-server.prepare-certs" $ }}

{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ template "prepare-certs" $ }}
{{ template "kubedb-webhook-server.prepare-certs" $ }}

{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
Expand Down

0 comments on commit 6950f2b

Please sign in to comment.