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

Commit

Permalink
add fix for failing helm upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuns authored and Mario Manno committed Jun 25, 2021
1 parent 1257be8 commit b3ee44d
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 b3ee44d

Please sign in to comment.