Files
omnex/deploy/chart-gestion/registry-credentials/templates/secret.yaml
T
Xor290 dfc62c305d
ci-api / test (push) Successful in 25m49s
chore: build
2026-08-18 20:07:52 +02:00

10 lines
392 B
YAML

{{- if and .Values.username .Values.password }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.secretName }}
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ printf `{"auths":{"%s":{"username":"%s","password":"%s","auth":"%s"}}}` .Values.registry .Values.username .Values.password (printf "%s:%s" .Values.username .Values.password | b64enc) | b64enc }}
{{- end }}