New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release-4.5] Bug 1872519: Allow prune to move on with Removed registry #532
[release-4.5] Bug 1872519: Allow prune to move on with Removed registry #532
Conversation
Pruner attempts to derive internal image registry host from the last unmanaged image or from the last image stream created. In some cases OpenShift may not contain any of those (for instance in a fresh install with Removed registry), this makes pruner to fail even with the flag --prune-registry set to false. This commit allows the pruner job to move on with the --prune-registry flag set to false even when we can't derive the internal registry host.
When attempting to prune images but there is no images on the system we need to succeed, except if we require the prune to also prune the registry. On this case, as there is no image from where we can determine the image registry host, we should fail.
@openshift-cherrypick-robot: Bugzilla bug 1867792 has been cloned as Bugzilla bug 1872519. Retitling PR to link against new bug. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@openshift-cherrypick-robot: This pull request references Bugzilla bug 1872519, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
/bugzilla refresh |
@dmage: This pull request references Bugzilla bug 1872519, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 6 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
/assign @soltysh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dmage, openshift-cherrypick-robot, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
@openshift-cherrypick-robot: All pull requests linked via external trackers have merged: Bugzilla bug 1872519 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is an automated cherry-pick of #520
/assign dmage