Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for certphase (0.19 sec)

  1. pkg/kubelet/kubelet_pods_test.go

    					},
    				},
    			},
    			false,
    			v1.PodRunning,
    			"backoff crashloop container with restart always",
    		},
    	}
    	for _, test := range tests {
    		status := getPhase(test.pod, test.pod.Status.ContainerStatuses, test.podIsTerminal)
    		assert.Equal(t, test.status, status, "[test %s]", test.test)
    	}
    }
    
    func TestPodPhaseWithRestartAlwaysInitContainers(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    		return err
    	}
    
    	return kl.containerRuntime.GetContainerLogs(ctx, pod, containerID, logOptions, stdout, stderr)
    }
    
    // getPhase returns the phase of a pod given its container info.
    func getPhase(pod *v1.Pod, info []v1.ContainerStatus, podIsTerminal bool) v1.PodPhase {
    	spec := pod.Spec
    	pendingInitialization := 0
    	failedInitialization := 0
    
    	// regular init containers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top