Skip to content

fix(render): keep the final status of a completed pod that is being deleted - #4428

Open
Branson404 wants to merge 1 commit into
derailed:masterfrom
Branson404:fix-terminating-completed-pods
Open

Branson404 wants to merge 1 commit into
derailed:masterfrom
Branson404:fix-terminating-completed-pods

Conversation

@Branson404

Copy link
Copy Markdown

A pod in phase Succeeded or Failed that still has a deletion timestamp (for example while the job-tracking finalizer is pending) is shown as Terminating. kubectl keeps the final status (Completed, Error) in that case and shows Terminating only for pods that have not reached a terminal phase (printPod in pkg/printers/internalversion/printers.go).

Pod.Phase and PodStatus now do the same. I added succeeded, failed and running pods with a deletion timestamp to TestCheckPhase and TestCheckPodStatus; four of the six cases failed before the change and the running controls pass either way.

Ran gofmt, go vet, golangci-lint v2.13.2 on internal/render, and go test for internal/render, view, view/cmd, model1 and dao. Not run: the full test suite, the macOS and Windows CI jobs, and a live cluster.

…eleted

A pod in phase Succeeded or Failed that still has a deletion timestamp,
for example while the job-tracking finalizer is pending, was reported as
Terminating. kubectl keeps the final status in that case and only shows
Terminating for pods that have not reached a terminal phase. Do the same
in both Pod.Phase and PodStatus.

This branch has not been deployed

No deployments
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.

1 participant