blob: 7121fdcf74202ce2b7fd752b17a04ecad5bd10bd [file] [log] [blame]
Hung-Wei Chiu7d8e7942021-10-05 15:26:36 -07001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7{{- if .Values.image.credential }}
8---
9kind: Secret
10apiVersion: v1
11metadata:
12 name: "{{ .Values.image.credential.secretName }}"
13 labels:
14 release: {{ .Release.Name }}
15type: kubernetes.io/dockerconfigjson
16data:
17 .dockerconfigjson: {{ printf `{"auths":{%s:{"auth":"%s"}}}` (.Values.image.credential.registry | quote) (printf "%s:%s" .Values.image.credential.username .Values.image.credential.password | b64enc) | b64enc | quote }}
18{{- end }}