pudelkoM | 3f0efb1 | 2021-01-12 13:55:48 -0800 | [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.image.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: |
Hung-Wei Chiu | 9de579b | 2021-02-03 12:39:22 -0800 | [diff] [blame] | 17 | .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 }} |
pudelkoM | 3f0efb1 | 2021-01-12 13:55:48 -0800 | [diff] [blame] | 18 | {{- end }} |