summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-05 17:52:00 +0200
committerGitHub <noreply@github.com>2023-04-05 17:52:00 +0200
commit0b0f991a86461ed725762010cf263fb2f0eaa16a (patch)
treec2dbbe85008b9b1a946fea78ae0142f034a480e7 /data
parente890a70d134fc63507ec396f9b7d4290df1cc0cb (diff)
parentdf58e083979a40df8c1a1391b82b2e4d856225dd (diff)
downloadvyos-1x-0b0f991a86461ed725762010cf263fb2f0eaa16a.tar.gz
vyos-1x-0b0f991a86461ed725762010cf263fb2f0eaa16a.zip
Merge pull request #1928 from c-po/t4959-backport
T4959: Add container registry authentication config for containers (backport)
Diffstat (limited to 'data')
-rw-r--r--data/templates/container/registries.conf.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/container/registries.conf.j2 b/data/templates/container/registries.conf.j2
index c583e0ad5..0e3ad6ba6 100644
--- a/data/templates/container/registries.conf.j2
+++ b/data/templates/container/registries.conf.j2
@@ -23,5 +23,9 @@
# unqualified-search-registries = ["example.com"]
{% if registry is defined and registry is not none %}
-unqualified-search-registries = {{ registry }}
+{% set registry_list = [] %}
+{% for r, r_options in registry.items() if r_options.disable is not defined %}
+{% set _ = registry_list.append(r) %}
+{% endfor %}
+unqualified-search-registries = {{ registry_list }}
{% endif %}