rancher-charts/charts/longhorn/1.1.001/templates/registry-secret.yml

11 lines
346 B
YAML
Raw Normal View History

2021-10-26 16:27:25 +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 }}