From bb6f70ef18dcebdc2fa41e619e02b7bbb4b4c999 Mon Sep 17 00:00:00 2001 From: Xav Paice Date: Thu, 20 Nov 2025 15:02:51 +1300 Subject: [PATCH] Refactor Helm template for replicated pull secret helm template fails when the .Values.global.replicated dict is empty --- docs/vendor/helm-image-registry.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/vendor/helm-image-registry.mdx b/docs/vendor/helm-image-registry.mdx index 04e7751b90..e7bd2248ff 100644 --- a/docs/vendor/helm-image-registry.mdx +++ b/docs/vendor/helm-image-registry.mdx @@ -35,7 +35,9 @@ To configure your application to use the proxy registry with Helm CLI installati ```yaml # templates/replicated-pull-secret.yaml - {{ if .Values.global.replicated.dockerconfigjson }} + {{- $global := default dict .Values.global -}} + {{- $replicated := default dict (index $global "replicated") -}} + {{- if hasKey $replicated "dockerconfigjson" }} apiVersion: v1 kind: Secret metadata: