{{- $name := include "cloudhost-app.name" . -}} {{- $ns := include "cloudhost-app.namespace" . -}} {{- $registryUrl := .Values.registry.url | default "localhost:30500" -}} apiVersion: v1 kind: Secret metadata: name: registry-pull-secret namespace: {{ $ns }} labels: {{- include "cloudhost-app.labels" . | nindent 4 }} type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: {{ printf `{"auths":{"%s":{"auth":""}}}` $registryUrl | b64enc | quote }}