• Kubernetes Submit Queue's avatar
    Merge pull request #62642 from ceshihao/kubectl_get_pod_status · 9031f9a8
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 62642, 62855, 62487, 62858, 62873). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Make pod status to Running if some are Running and some are Completed
    
    **What this PR does / why we need it**:
    Make pod status to Running if some are Running and some are Completed
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #62588
    
    **Special notes for your reviewer**:
    Only Set Pod status to Completed when no other reason, no Running container and only Completed containers.
    
    Set status to Running if some are Running and some are Completed
    
    **Release note**:
    
    ```release-note
    Set pod status to "Running" if there is at least one container still reporting as "Running" status and others are "Completed".
    ```
    9031f9a8
Name
Last commit
Last update
..
internalversion Loading commit data...
storage Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
customcolumn.go Loading commit data...
customcolumn_flags.go Loading commit data...
customcolumn_flags_test.go Loading commit data...
customcolumn_test.go Loading commit data...
flags.go Loading commit data...
humanreadable.go Loading commit data...
humanreadable_flags.go Loading commit data...
humanreadable_flags_test.go Loading commit data...
humanreadable_test.go Loading commit data...
interface.go Loading commit data...
json.go Loading commit data...
json_yaml_flags.go Loading commit data...
json_yaml_flags_test.go Loading commit data...
jsonpath.go Loading commit data...
jsonpath_flags.go Loading commit data...
jsonpath_flags_test.go Loading commit data...
kube_template_flags.go Loading commit data...
name.go Loading commit data...
name_flags.go Loading commit data...
name_flags_test.go Loading commit data...
printers.go Loading commit data...
tabwriter.go Loading commit data...
template.go Loading commit data...
template_flags.go Loading commit data...
template_flags_test.go Loading commit data...
template_test.go Loading commit data...
versioned.go Loading commit data...