Repository navigation
fix(render): keep the final status of a completed pod that is being deleted - #4428
Open
Branson404 wants to merge 1 commit into
Open
Branson404 wants to merge 1 commit into
Branson404 wants to merge 1 commit into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 showsTerminatingonly for pods that have not reached a terminal phase (printPodinpkg/printers/internalversion/printers.go).Pod.PhaseandPodStatusnow do the same. I added succeeded, failed and running pods with a deletion timestamp toTestCheckPhaseandTestCheckPodStatus; four of the six cases failed before the change and the running controls pass either way.Ran
gofmt,go vet,golangci-lintv2.13.2 oninternal/render, andgo testforinternal/render,view,view/cmd,model1anddao. Not run: the full test suite, the macOS and Windows CI jobs, and a live cluster.