summaryrefslogtreecommitdiff
path: root/pkg/registries
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-09-28 15:05:05 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-09-30 16:30:41 +0200
commite930340e7345d54afc2e8f315e8b4932c80890e5 (patch)
treeb47bd4b43f3ae20d08e15e8f9632c17e1c4a405c /pkg/registries
parent4d57313449a7f7c86697ad830816f5c1e73c05ca (diff)
downloadpodman-e930340e7345d54afc2e8f315e8b4932c80890e5.tar.gz
podman-e930340e7345d54afc2e8f315e8b4932c80890e5.tar.bz2
podman-e930340e7345d54afc2e8f315e8b4932c80890e5.zip
pkg/registries: add a retiring note
The registries package should be retired. It was introduced as an easier to use wrapper around c/image `sysregistries` which has been replaced by `sysregistriesv2` a long while ago. Users should either use the `sysregistriesv2` package directly or, even better, we cache the config in libpod's image runtime to prevent redundant (and ~expensive) parsing of the registries.conf files. For now, just add a note in hope we'll not forgert about it when we find time in the future. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/registries')
-rw-r--r--pkg/registries/registries.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/registries/registries.go b/pkg/registries/registries.go
index 5dff25c7d..949c5d835 100644
--- a/pkg/registries/registries.go
+++ b/pkg/registries/registries.go
@@ -1,5 +1,10 @@
package registries
+// TODO: this package should not exist anymore. Users should either use
+// c/image's `sysregistriesv2` package directly OR, even better, we cache a
+// config in libpod's image runtime so we don't need to parse the
+// registries.conf files redundantly.
+
import (
"os"
"path/filepath"