blob: f5504ad55e3a6bebfe5173ee950f75934c6aa4aa [file] [log] [blame]
pudelkoM3f0efb12021-01-12 13:55:48 -08001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7{{- if .Values.image.credentials }}
8---
9kind: Secret
10apiVersion: v1
11metadata:
12 name: {{ .Release.Name }}.registry
13 labels:
14 release: {{ .Release.Name }}
15type: kubernetes.io/dockerconfigjson
16data:
Hung-Wei Chiu9de579b2021-02-03 12:39:22 -080017 .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 }}
pudelkoM3f0efb12021-01-12 13:55:48 -080018{{- end }}