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

Commit

Permalink
Merge branch 'master' into v7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno committed Jun 25, 2021
2 parents e3c5b3a + b3ee44d commit 3606ded
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deploy/helm/quarks/templates/service-account-hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,17 @@ metadata:
"helm.sh/hook": {{$hook}}
"helm.sh/hook-weight": "-2"
"helm.sh/hook-delete-policy": before-hook-creation
{{- if $.Values.global.image.credentials }}
imagePullSecrets:
- name: {{$hook}}-pull-secret
---
apiVersion: v1
kind: Secret
type: kubernetes.io/dockerconfigjson
metadata:
name: {{$hook}}-pull-secret
namespace: {{ $.Release.Namespace | quote }}
data:
.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 }}
{{- end }}
{{- end }}

0 comments on commit 3606ded

Please sign in to comment.