Skip to content
Snippets Groups Projects
Commit 2a9d663f authored by Lars Seipel's avatar Lars Seipel
Browse files

charts: include image pull secret template

parent b2636b70
Branches
No related tags found
1 merge request!1charts: disable TLS
...@@ -60,3 +60,16 @@ Create the name of the service account to use ...@@ -60,3 +60,16 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }} {{- default "default" .Values.serviceAccount.name }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- define "bbbatscale-support-notify.dockerConfig" -}}
auths:
{{- $auths := .auths }}
{{- range (keys $auths) }}
{{- $auth := get $auths . }}
{{ quote . }}:
username: {{ quote $auth.username }}
password: {{ quote $auth.password }}
auth: {{ printf "%s:%s" $auth.username $auth.password | b64enc }}
email: {{ get $auth "email" | quote }}
{{- end }}
{{- end -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "bbbatscale-support-notify.fullname" . }}-pullsecret
labels:
{{- include "bbbatscale-support-notify.labels" . | nindent 4 }}
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ include "bbbatscale-support-notify.dockerConfig" .Values.imagePullConfig | fromYaml | toJson | b64enc }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment