Skip to content
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-2.13] Render: fail if no oauth image is found #1671

Conversation

openshift-cherrypick-robot
Copy link
Collaborator

This is an automated cherry-pick of #1669

/assign jacobbaungard

For some unknown reason, during upgrades from ACM 2.11, the template
image is briefly used, instead of the image from the openshift
imagestream. The template image is not available in disconnected
environments, and as a result causes the pods be unable to come up.

This is a problem especially for alertmanager. Because of it being a
statefulset when it gets into the bad state, with the wrong image, it
doesn't automatically recover on the next reconcile. This requires
manual intervention to fix.

Instead with this PR, we make the reconcile fail if we do not find the
oauth image. This will make it retry later, when the imagestream is able
to be found.

Signed-off-by: Jacob Baungard Hansen <[email protected]>
Instead of passing through the `ImageV1Client` we instead use the
interface `ImageV1Interface`. This is so we're able to pass in a faked
ImageClient for tests. This is needed because since reconciles, as per
the previous commit, will actually fail if we cannot get the image from
the imagestream.

Signed-off-by: Jacob Baungard Hansen <[email protected]>
Copy link

openshift-ci bot commented Nov 18, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-cherrypick-robot
Once this PR has been reviewed and has the lgtm label, please ask for approval from jacobbaungard. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jacobbaungard jacobbaungard changed the base branch from release-2.13 to main November 18, 2024 10:34
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 70%)

See analysis details on SonarQube Cloud

Copy link

openshift-ci bot commented Nov 18, 2024

@openshift-cherrypick-robot: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/sonarcloud 890adb3 link false /test sonarcloud

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants