Skip to content

Commit

Permalink
fix: add broker token secret format to notes output
Browse files Browse the repository at this point in the history
  • Loading branch information
soniqua committed Sep 5, 2024
1 parent 562c4c3 commit 7ceff33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/snyk-broker/templates/_notes.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
{{- $containerRegistryAgentTemplates := (list "scmToken" )}}
{{- $templatesPerType := (dict "github-com" $scmTemplates "github-enterprise" $scmTemplates "gitlab" $scmTemplates "bitbucket-server" $scmTemplates "bitbucket-server-bearer-auth" $scmTemplates "azure-repos" $scmTemplates "artifactory" $artifactoryTemplates "nexus" $nexusTemplates "jira" $scmTemplates "jira-bearer-auth" $scmTemplates "container-registry-agent" $containerRegistryAgentTemplates ) }}
{{- if not .Values.useExternalSecrets -}}
{{- if not .Values.brokerToken }}
{{ printf "-> %s:%s <your-broker-token>" (include "snyk-broker.brokerTokenSecretName" . ) (include "snyk-broker.brokerTokenSecretKey" . ) }}
{{- end }}
{{- range (get $templatesPerType .Values.scmType ) }}
{{- $secretObject := (first (fromYamlArray (include (printf "snyk-broker.%s" . ) $ ))) }}
{{- $envName := $secretObject.name }}
Expand Down

0 comments on commit 7ceff33

Please sign in to comment.