mirror of https://git.rancher.io/charts
28 lines
997 B
YAML
28 lines
997 B
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
type: kubernetes.io/dockerconfigjson
|
||
|
metadata:
|
||
|
annotations:
|
||
|
epinio.io/registry-namespace: {{ .Values.global.registryNamespace }}
|
||
|
kubed.appscode.com/sync: kubed-sync=registry-creds
|
||
|
name: registry-creds
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
stringData:
|
||
|
.dockerconfigjson: |-
|
||
|
{
|
||
|
"auths": {
|
||
|
"{{ template "epinio.registry-url" . }}": {
|
||
|
"auth":"{{ printf "%s:%s" .Values.global.registryUsername .Values.global.registryPassword | b64enc }}",
|
||
|
"username":"{{ .Values.global.registryUsername }}",
|
||
|
"password":"{{ .Values.global.registryPassword }}"
|
||
|
} {{- if .Values.containerregistry.enabled }} ,
|
||
|
"127.0.0.1:30500": {
|
||
|
"auth":"{{ printf "%s:%s" .Values.global.registryUsername .Values.global.registryPassword | b64enc }}",
|
||
|
"username":"{{ .Values.global.registryUsername }}",
|
||
|
"password":"{{ .Values.global.registryPassword }}"
|
||
|
}
|
||
|
{{- end -}}
|
||
|
}
|
||
|
}
|