Skip to content

fix: Only check pod phase in isPodReady#1127

Merged
eikek merged 5 commits into
mainfrom
eikek/fix-job-session-state
May 29, 2026
Merged

fix: Only check pod phase in isPodReady#1127
eikek merged 5 commits into
mainfrom
eikek/fix-job-session-state

Conversation

@eikek

@eikek eikek commented May 29, 2026

Copy link
Copy Markdown
Member

This fixes determining readiness of pod containers. If a sidecar container is added to the initContainers of a pod, the status check must check a Running state and not a Terminated state.

The podIsReady function is rewritten to make use of the container status conditions. If a condition exists with Type=Ready and Status=True, it is considered ready. This removes the investigation of container status.

/deploy

eikek added 5 commits May 29, 2026 09:57
This is a quick test. The current impl doesn't work, when there are
init containers that are sidecars. They stay in state=running and
currently this will always make `isPodReady` return false.
@RenkuBot

Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-am-1127.dev.renku.ch

@eikek eikek marked this pull request as ready for review May 29, 2026 12:36
@eikek eikek requested review from a team and olevski as code owners May 29, 2026 12:36
@eikek eikek merged commit 1d239a2 into main May 29, 2026
34 of 35 checks passed
@eikek eikek deleted the eikek/fix-job-session-state branch May 29, 2026 13:00
@RenkuBot

Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants