SuccessChanges

Summary

  1. image-pruner: Determine protocol just once (commit: ce7072f) (details)
  2. image-pruner: Reenable registry-url validation (commit: 7fd22bb) (details)
Commit ce7072f6ec81489e50a081c1a7317922efa7b641 by Michal Minar
image-pruner: Determine protocol just once
Determine the registry protocol once. Do not change to other protocol
during the run. This will produce nicer output without unrelated
protocol fallback errors.
Do not default to insecure connection when the --registry-url is empty.
Move registry client initialization just before the start of the pruner
- so we can precisely determine whether to allow for insecure fall-back
based on collected images and image streams.
Move ping() outside of pruner. Instead, determine the registry URL
before the pruner starts and assume it won't change during the run.
Signed-off-by: Michal Minář <miminar@redhat.com>
(commit: ce7072f)
The file was modifiedpkg/oc/admin/prune/images_test.go (diff)
The file was modifiedpkg/image/prune/prune.go (diff)
The file was modifiedpkg/oc/admin/prune/images.go (diff)
The file was modifiedpkg/image/prune/prune_test.go (diff)
The file was addedpkg/image/prune/helper.go
The file was addedpkg/image/prune/helper_test.go
The file was addedpkg/image/prune/doc.go
Commit 7fd22bb9436d6628f671ecdde8297c8c2365955d by Michal Minar
image-pruner: Reenable registry-url validation
Signed-off-by: Michal Minář <miminar@redhat.com>
(commit: 7fd22bb)
The file was modifiedpkg/image/apis/image/helper.go (diff)
The file was modifiedpkg/oc/admin/prune/images.go (diff)
The file was modifiedpkg/image/apis/image/helper_test.go (diff)