summaryrefslogtreecommitdiff
path: root/interface-definitions/container.xml.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-03-11 16:22:12 +0000
committerGitHub <noreply@github.com>2025-03-11 16:22:12 +0000
commit2b0b323f6ebea2bdf6cb699508cc1b5c074ab2b8 (patch)
tree800ce43e1460c3b9a4554d36d5bcbf3fb0cb9036 /interface-definitions/container.xml.in
parentb70e3686981e08e69938d6879575ca3f0f9adfbe (diff)
parenta8e0f015ea91859163ac9befad8a6e8ac68dec9a (diff)
downloadvyos-1x-2b0b323f6ebea2bdf6cb699508cc1b5c074ab2b8.tar.gz
vyos-1x-2b0b323f6ebea2bdf6cb699508cc1b5c074ab2b8.zip
Merge pull request #4321 from sskaje/T7092
T7092: Add Container Registry Mirror
Diffstat (limited to 'interface-definitions/container.xml.in')
-rw-r--r--interface-definitions/container.xml.in48
1 files changed, 48 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index 5c320e8c6..3a5cfbaa6 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -571,6 +571,54 @@
<children>
#include <include/interface/authentication.xml.i>
#include <include/generic-disable-node.xml.i>
+ <leafNode name="insecure">
+ <properties>
+ <help>Allow registry access over unencrypted HTTP or TLS connections with untrusted certificates</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ <node name="mirror">
+ <properties>
+ <help>Registry mirror, use host-name|address[:port][/path]</help>
+ </properties>
+ <children>
+ <leafNode name="address">
+ <properties>
+ <help>IP address of container registry mirror</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>IPv4 address of container registry mirror</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv6</format>
+ <description>IPv6 address of container registry mirror</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ip-address"/>
+ <validator name="ipv6-link-local"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="host-name">
+ <properties>
+ <help>Hostname of container registry mirror</help>
+ <valueHelp>
+ <format>hostname</format>
+ <description>FQDN of container registry mirror</description>
+ </valueHelp>
+ <constraint>
+ <validator name="fqdn"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ #include <include/port-number.xml.i>
+ <leafNode name="path">
+ <properties>
+ <help>Path of container registry mirror, optional, must be start with '/' if not empty</help>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
</children>
</tagNode>
</children>