Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NetworkReady (0.46 sec)

  1. pkg/kubelet/kuberuntime/instrumented_services_test.go

    			{Type: runtimeapi.NetworkReady, Status: true},
    		},
    	}
    	irs := newInstrumentedRuntimeService(fakeRuntime)
    	actural, err := irs.Status(ctx, false)
    	assert.NoError(t, err)
    	expected := &runtimeapi.RuntimeStatus{
    		Conditions: []*runtimeapi.RuntimeCondition{
    			{Type: runtimeapi.RuntimeReady, Status: false},
    			{Type: runtimeapi.NetworkReady, Status: true},
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. pkg/kubelet/container/runtime.go

    const (
    	// RuntimeReady means the runtime is up and ready to accept basic containers.
    	RuntimeReady RuntimeConditionType = "RuntimeReady"
    	// NetworkReady means the runtime network is up and ready to accept containers which require network.
    	NetworkReady RuntimeConditionType = "NetworkReady"
    )
    
    // RuntimeStatus contains the status of the runtime.
    type RuntimeStatus struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/runtime/runtime.go

    	if err != nil {
    		return errors.Wrap(err, "container runtime is not running")
    	}
    
    	for _, condition := range res.GetStatus().GetConditions() {
    		if condition.GetType() == runtimeapi.RuntimeReady && // NetworkReady will not be tested on purpose
    			!condition.GetStatus() {
    			return errors.Errorf(
    				"container runtime condition %q is not true. reason: %s, message: %s",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/runtime/runtime_test.go

    			prepare: func(mock *fakeImpl) {
    				mock.StatusReturns(&v1.StatusResponse{Status: &v1.RuntimeStatus{
    					Conditions: []*v1.RuntimeCondition{
    						{
    							Type:   v1.NetworkReady,
    							Status: false,
    						},
    					},
    				},
    				}, nil)
    			},
    			shouldError: false,
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			containerRuntime := NewContainerRuntime("")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    		klogErrorS = klog.V(4).ErrorS
    	}
    	networkReady := s.GetRuntimeCondition(kubecontainer.NetworkReady)
    	if networkReady == nil || !networkReady.Status {
    		klogErrorS(nil, "Container runtime network not ready", "networkReady", networkReady)
    		kl.runtimeState.setNetworkState(fmt.Errorf("container runtime network not ready: %v", networkReady))
    	} else {
    		// Set nil if the container runtime network is ready.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_node_status_test.go

    		Conditions: []kubecontainer.RuntimeCondition{
    			{Type: kubecontainer.RuntimeReady, Status: true},
    			{Type: kubecontainer.NetworkReady, Status: true},
    		},
    	}
    	kubelet.updateRuntimeUp()
    	checkNodeStatus(v1.ConditionTrue, "KubeletReady")
    
    	// Should report node not ready if NetworkReady is false.
    	fakeRuntime.RuntimeStatus = &kubecontainer.RuntimeStatus{
    		Conditions: []kubecontainer.RuntimeCondition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_test.go

    		ImageList: imageList,
    		// Set ready conditions by default.
    		RuntimeStatus: &kubecontainer.RuntimeStatus{
    			Conditions: []kubecontainer.RuntimeCondition{
    				{Type: "RuntimeReady", Status: true},
    				{Type: "NetworkReady", Status: true},
    			},
    		},
    		VersionInfo: "1.5.0",
    		RuntimeType: "test",
    		T:           t,
    	}
    
    	fakeRecorder := &record.FakeRecorder{}
    	fakeKubeClient := &fake.Clientset{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
Back to top