Skip to content
Snippets Groups Projects
Commit c775a1346219 authored by Xavier Garnier's avatar Xavier Garnier :bicyclist:
Browse files

fix: add missing file

parent aeec8b6a69ac
No related branches found
No related tags found
No related merge requests found
{{- if .Values.registryCred }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-regcred
labels:
app.kubernetes.io/name: {{ .Values.appName }}
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
"helm.sh/resource-policy": keep
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ printf "{\"auths\": {\"%s\": {\"auth\": \"%s\"}}}" .Values.registryCred.registry (printf "%s:%s" .Values.registryCred.username .Values.registryCred.password | b64enc) | b64enc | quote }}
{{- end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment