From 7bc36602f6c407cffdc799ca1b2fc7c00bc4f93b Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 26 Sep 2022 13:00:17 +0200 Subject: auto-update: validate container image Auto updates using the "registry" policy require container to be created with a fully-qualified image reference. Short names are not supported due the ambiguity of their source registry. Initially, container creation errored out for non FQN images but it seems that Podman has regressed. Fixes: #15879 Signed-off-by: Valentin Rothberg --- libpod/define/autoupdate.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libpod/define/autoupdate.go (limited to 'libpod/define') diff --git a/libpod/define/autoupdate.go b/libpod/define/autoupdate.go new file mode 100644 index 000000000..7c278c3c5 --- /dev/null +++ b/libpod/define/autoupdate.go @@ -0,0 +1,9 @@ +package define + +// AutoUpdateLabel denotes the container/pod label key to specify auto-update +// policies in container labels. +const AutoUpdateLabel = "io.containers.autoupdate" + +// AutoUpdateAuthfileLabel denotes the container label key to specify authfile +// in container labels. +const AutoUpdateAuthfileLabel = "io.containers.autoupdate.authfile" -- cgit v1.2.3-54-g00ecf