| {{/* |
| # Copyright 2020-present Open Networking Foundation |
| |
| # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| */}} |
| |
| {{- if .Values.image.credentials }} |
| --- |
| kind: Secret |
| apiVersion: v1 |
| metadata: |
| name: {{ .Release.Name }}.registry |
| labels: |
| release: {{ .Release.Name }} |
| type: kubernetes.io/dockerconfigjson |
| data: |
| .dockerconfigjson: {{ printf `{"auths":{%s:{"auth":"%s"}}}` (.Values.image.credentials.registry | quote) (printf "%s:%s" .Values.image.credentials.username .Values.image.credentials.password | b64enc) | b64enc | quote }} |
| {{- end }} |