Skip to content

Commit

Permalink
feat: remove secret name
Browse files Browse the repository at this point in the history
  • Loading branch information
saumilmac committed Sep 6, 2024
1 parent 9abdff8 commit d84e092
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions snyk-universal-broker/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,3 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Create a secret name.
Pass a dict of Context ($) and secretName:
include "snyk-broker.genericSecretName" (dict "Context" $ "secretName" "secret-name")
*/}}
{{- define "snyk-broker.genericSecretName" -}}
{{- if not .Context.Values.disableSuffixes -}}
{{ printf "%s-%s" ( include "snyk-broker.fullname" .Context ) .secretName }}
{{- else -}}
{{- printf "snyk-broker-%s" .secretName }}
{{- end -}}
{{- end -}}

{{- define "snyk-broker.tlsSecretName" -}}
{{- include "snyk-broker.genericSecretName" (dict "Context" . "secretName" "tls-secret" ) -}}
{{- end }}

{{- define "snyk-broker.caCertSecretName" -}}
{{- include "snyk-broker.genericSecretName" (dict "Context" . "secretName" "cacert-secret" ) -}}
{{- end }}

0 comments on commit d84e092

Please sign in to comment.