Hyunsun Moon | 8da1788 | 2020-10-14 21:28:44 -0500 | [diff] [blame^] | 1 | {{/* |
| 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 | --- |
| 9 | kind: Secret |
| 10 | apiVersion: v1 |
| 11 | metadata: |
| 12 | name: {{ .Release.Name }}.registry |
| 13 | labels: |
| 14 | release: {{ .Release.Name }} |
| 15 | type: kubernetes.io/dockerconfigjson |
| 16 | data: |
| 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 }} |