Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ContainersReady (0.38 sec)

  1. pkg/kubelet/status/generate.go

    	containersReady := GenerateContainersReadyCondition(spec, containerStatuses, podPhase)
    	// If the status of ContainersReady is not True, return the same status, reason and message as ContainersReady.
    	if containersReady.Status != v1.ConditionTrue {
    		return v1.PodCondition{
    			Type:    v1.PodReady,
    			Status:  containersReady.Status,
    			Reason:  containersReady.Reason,
    			Message: containersReady.Message,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. pkg/kubelet/status/generate_test.go

    			podPhase:          v1.PodRunning,
    			expectReady:       getPodCondition(v1.ContainersReady, v1.ConditionFalse, UnknownContainerStatuses, ""),
    		},
    		{
    			spec:              &v1.PodSpec{},
    			containerStatuses: []v1.ContainerStatus{},
    			podPhase:          v1.PodRunning,
    			expectReady:       getPodCondition(v1.ContainersReady, v1.ConditionTrue, "", ""),
    		},
    		{
    			spec: &v1.PodSpec{
    				Containers: []v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  3. pkg/kubelet/types/pod_status.go

    )
    
    // PodConditionsByKubelet is the list of pod conditions owned by kubelet
    var PodConditionsByKubelet = []v1.PodConditionType{
    	v1.PodScheduled,
    	v1.PodReady,
    	v1.PodInitialized,
    	v1.ContainersReady,
    }
    
    // PodConditionByKubelet returns if the pod condition type is owned by kubelet
    func PodConditionByKubelet(conditionType v1.PodConditionType) bool {
    	for _, c := range PodConditionsByKubelet {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. pkg/kubelet/types/pod_status_test.go

    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PodDisruptionConditions, true)
    
    	trueCases := []v1.PodConditionType{
    		v1.PodScheduled,
    		v1.PodReady,
    		v1.PodInitialized,
    		v1.ContainersReady,
    		v1.PodReadyToStartContainers,
    	}
    
    	for _, tc := range trueCases {
    		if !PodConditionByKubelet(tc) {
    			t.Errorf("Expect %q to be condition owned by kubelet.", tc)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. pkg/api/v1/pod/util_test.go

    	}
    }
    
    func TestGetContainersReadyCondition(t *testing.T) {
    	time := metav1.Now()
    
    	containersReadyCondition := v1.PodCondition{
    		Type:               v1.ContainersReady,
    		Status:             v1.ConditionTrue,
    		Reason:             "successfully",
    		Message:            "sync pod successfully",
    		LastProbeTime:      time,
    		LastTransitionTime: metav1.NewTime(time.Add(1000)),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  6. pkg/controller/endpointslice/endpointslice_controller_test.go

    								Type:   v1.PodInitialized,
    								Status: v1.ConditionTrue,
    							},
    							{
    								Type:   v1.PodReady,
    								Status: v1.ConditionTrue,
    							},
    							{
    								Type:   v1.ContainersReady,
    								Status: v1.ConditionTrue,
    							},
    						},
    					},
    				},
    				{
    					ObjectMeta: metav1.ObjectMeta{
    						Namespace:         "default",
    						Name:              "pod1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  7. pkg/kubelet/status/status_manager.go

    	updateConditionFunc(v1.PodReady, GeneratePodReadyCondition(&pod.Spec, status.Conditions, allContainerStatuses, status.Phase))
    	updateConditionFunc(v1.ContainersReady, GenerateContainersReadyCondition(&pod.Spec, allContainerStatuses, status.Phase))
    	m.updateStatusInternal(pod, status, false, false)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods_test.go

    				QOSClass: v1.PodQOSBestEffort,
    				Conditions: []v1.PodCondition{
    					{Type: v1.PodInitialized, Status: v1.ConditionTrue},
    					{Type: v1.PodReady, Status: v1.ConditionFalse, Reason: "PodFailed"},
    					{Type: v1.ContainersReady, Status: v1.ConditionFalse, Reason: "PodFailed"},
    					{Type: v1.PodScheduled, Status: v1.ConditionTrue},
    				},
    				ContainerStatuses: []v1.ContainerStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  9. pkg/kubelet/status/status_manager_test.go

    						Status: v1.ConditionFalse,
    						Reason: "PodFailed",
    					},
    					{
    						Type:   v1.PodScheduled,
    						Status: v1.ConditionTrue,
    					},
    					{
    						Type:   v1.ContainersReady,
    						Status: v1.ConditionFalse,
    						Reason: "PodFailed",
    					},
    				},
    				Message: "Message",
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  10. pkg/apis/core/types.go

    	// PodInitialized means that all init containers in the pod have started successfully.
    	PodInitialized PodConditionType = "Initialized"
    	// ContainersReady indicates whether all containers in the pod are ready.
    	ContainersReady PodConditionType = "ContainersReady"
    	// DisruptionTarget indicates the pod is about to be terminated due to a
    	// disruption (such as preemption, eviction API or garbage-collection).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
Back to top