Skip to content

rvs: Introduce pod pending reason#243

Open
Jakob-Naucke wants to merge 1 commit intotrusted-execution-clusters:mainfrom
Jakob-Naucke:backoff-approved-image
Open

rvs: Introduce pod pending reason#243
Jakob-Naucke wants to merge 1 commit intotrusted-execution-clusters:mainfrom
Jakob-Naucke:backoff-approved-image

Conversation

@Jakob-Naucke
Copy link
Copy Markdown
Contributor

to avoid misleading "computation is ongoing" reason when e.g. image pull fails. Watching for image and pod events within one reconciliation has some gotchas, so requeue if computing or pending.

Fixes: #241

Comment thread tests/trusted_execution_cluster.rs
@Jakob-Naucke Jakob-Naucke force-pushed the backoff-approved-image branch from 32874bf to 1f5a7d1 Compare April 17, 2026 09:19
Comment thread tests/trusted_execution_cluster.rs
Comment thread operator/src/reference_values.rs Outdated
Comment on lines +337 to +342
Ok(pod_list.iter().any(|pod| {
pod.status
.as_ref()
.and_then(|s| s.phase.as_ref())
.is_some_and(|phase| phase == "Pending")
}))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could have a mixture of pod in error state and pending? Should we simply take the latest created

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, PTAL

to avoid misleading "computation is ongoing" reason when e.g. image
pull fails. Watching for image and pod events within one
reconciliation has some gotchas, so requeue if computing or pending.

Fixes: trusted-execution-clusters#241
Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
@Jakob-Naucke Jakob-Naucke force-pushed the backoff-approved-image branch from 1f5a7d1 to 57f6d65 Compare April 17, 2026 21:14
@openshift-ci openshift-ci Bot removed the lgtm label Apr 17, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 17, 2026

@Jakob-Naucke: 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/operator-lifecycle-verify 57f6d65 link true /test operator-lifecycle-verify

Full PR test history. Your PR dashboard.

Details

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.

@openshift-ci openshift-ci Bot added the lgtm label Apr 20, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 20, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: alicefr, Jakob-Naucke

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

Details 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

@alicefr
Copy link
Copy Markdown
Contributor

alicefr commented Apr 22, 2026

@Jakob-Naucke do you want to merge this or we wait for the CI?

@Jakob-Naucke
Copy link
Copy Markdown
Contributor Author

prefer waiting for CI

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ApprovedImage with non-existent images shows misleading "Computing" status

2 participants