Skip to content

Commit 72b51b9

Browse files
authored
Merge pull request #3664 from replicatedhq/xavpaice-patch-7
Refactor Helm template for replicated pull secret
2 parents 742714c + bb6f70e commit 72b51b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/vendor/helm-image-registry.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ To configure your application to use the proxy registry with Helm CLI installati
3535
```yaml
3636
# templates/replicated-pull-secret.yaml
3737

38-
{{ if .Values.global.replicated.dockerconfigjson }}
38+
{{- $global := default dict .Values.global -}}
39+
{{- $replicated := default dict (index $global "replicated") -}}
40+
{{- if hasKey $replicated "dockerconfigjson" }}
3941
apiVersion: v1
4042
kind: Secret
4143
metadata:

0 commit comments

Comments
 (0)