Skip to content

Commit

Permalink
Allow for parent chart to override registry secret to allow for using…
Browse files Browse the repository at this point in the history
… external secret tools. (#190)

Co-authored-by: dorid <[email protected]>
  • Loading branch information
misterdorito and pegadave authored Sep 22, 2020
1 parent f57af65 commit 72b0cff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 10 additions & 0 deletions charts/pega/templates/_pega-registry-secret.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- define "pegaRegistryCredentialsSecretTemplate" }}
kind: Secret
apiVersion: v1
metadata:
name: {{ template "pegaRegistrySecret" }}
namespace: {{ .Release.Namespace }}
data:
.dockerconfigjson: {{ template "imagePullSecret" . }}
type: kubernetes.io/dockerconfigjson
{{- end }}
9 changes: 1 addition & 8 deletions charts/pega/templates/pega-registry-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
kind: Secret
apiVersion: v1
metadata:
name: {{ template "pegaRegistrySecret" }}
namespace: {{ .Release.Namespace }}
data:
.dockerconfigjson: {{ template "imagePullSecret" . }}
type: kubernetes.io/dockerconfigjson
{{- include "pegaRegistryCredentialsSecretTemplate" . }}

0 comments on commit 72b0cff

Please sign in to comment.