rancher-charts/charts/longhorn/1.2.300+up1.2.3/templates/registry-secret.yml

11 lines
346 B
YAML
Raw Normal View History

2022-02-10 07:18:09 +00:00
{{- if .Values.privateRegistry.registrySecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.privateRegistry.registrySecret }}
namespace: {{ include "release_namespace" . }}
labels: {{- include "longhorn.labels" . | nindent 4 }}
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ template "secret" . }}
{{- end }}