Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 3606ded

Browse files
committed
Merge branch 'master' into v7.x
2 parents e3c5b3a + b3ee44d commit 3606ded

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

deploy/helm/quarks/templates/service-account-hooks.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,17 @@ metadata:
1313
"helm.sh/hook": {{$hook}}
1414
"helm.sh/hook-weight": "-2"
1515
"helm.sh/hook-delete-policy": before-hook-creation
16+
{{- if $.Values.global.image.credentials }}
17+
imagePullSecrets:
18+
- name: {{$hook}}-pull-secret
19+
---
20+
apiVersion: v1
21+
kind: Secret
22+
type: kubernetes.io/dockerconfigjson
23+
metadata:
24+
name: {{$hook}}-pull-secret
25+
namespace: {{ $.Release.Namespace | quote }}
26+
data:
27+
.dockerconfigjson: {{ printf "{%q:{%q:{%q:%q,%q:%q,%q:%q}}}" "auths" $.Values.global.image.credentials.servername "username" $.Values.global.image.credentials.username "password" $.Values.global.image.credentials.password "auth" (printf "%s:%s" $.Values.global.image.credentials.username $.Values.global.image.credentials.password | b64enc) | b64enc }}
28+
{{- end }}
1629
{{- end }}

0 commit comments

Comments
 (0)