summaryrefslogtreecommitdiff
path: root/data/templates/container
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-01 15:43:11 +0200
committerChristian Breunig <christian@breunig.cc>2023-04-01 16:13:34 +0200
commitdf58e083979a40df8c1a1391b82b2e4d856225dd (patch)
treec2dbbe85008b9b1a946fea78ae0142f034a480e7 /data/templates/container
parent9ea856640af398309b79cd9f1ebe8c4f025e2c62 (diff)
downloadvyos-1x-df58e083979a40df8c1a1391b82b2e4d856225dd.tar.gz
vyos-1x-df58e083979a40df8c1a1391b82b2e4d856225dd.zip
container: T4959: add registry authentication option
Container registry CLI node changed from leafNode to tagNode with the same defaults. In addition we can now configure an authentication option per registry. (cherry picked from commit fe82d86d3e87cb8d92ebc9d0652c08e3dd79a12c)
Diffstat (limited to 'data/templates/container')
-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 %}