| Giorgi Lekveishvili | ee15ee2 | 2024-03-28 12:35:10 +0400 | [diff] [blame^] | 1 | {{ if and .Values.images.registry.ImagePullSecret.name .Values.images.registry.ImagePullSecret.create -}} |
| 2 | apiVersion: v1 | ||||
| 3 | kind: Secret | ||||
| 4 | metadata: | ||||
| 5 | name: {{ .Values.images.registry.ImagePullSecret.name }} | ||||
| 6 | labels: | ||||
| 7 | {{- if .Values.additionalLabels }} | ||||
| 8 | {{ toYaml .Values.additionalLabels | indent 4 }} | ||||
| 9 | {{- end }} | ||||
| 10 | type: kubernetes.io/dockerconfigjson | ||||
| 11 | data: | ||||
| 12 | .dockerconfigjson: {{ template "imagePullSecret" . }} | ||||
| 13 | {{- end }} | ||||