mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 01:39:02 +00:00
podUnknown is marked as Obsolete
This commit is contained in:
@@ -91,7 +91,8 @@ func (cc *ConformanceContainer) IsReady() (bool, error) {
|
||||
func (cc *ConformanceContainer) GetPhase() (v1.PodPhase, error) {
|
||||
pod, err := cc.PodClient.Get(context.TODO(), cc.podName, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
return v1.PodUnknown, err
|
||||
// it doesn't matter what phase to return as error would not be nil
|
||||
return v1.PodSucceeded, err
|
||||
}
|
||||
return pod.Status.Phase, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user