blob: 150204994d5a85880de323b25f368f7c565c3745 [file] [log] [blame]
Hyunsun Moon8da17882020-10-14 21:28:44 -05001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7{{- if .Values.images.credentials }}
8---
9kind: Secret
10apiVersion: v1
11metadata:
12 name: {{ .Release.Name }}.registry
13 labels:
14 release: {{ .Release.Name }}
15type: kubernetes.io/dockerconfigjson
16data:
17 .dockerconfigjson: {{ printf `{"auths":{%s:{"auth":"%s"}}}` (.Values.images.credentials.registry | quote) (printf "%s:%s" .Values.images.credentials.username .Values.images.credentials.password | b64enc) | b64enc | quote }}
18{{- end }}