Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nodeStatusHasChanged (0.22 sec)

  1. pkg/kubelet/kubelet_node_status.go

    			return nil
    		}
    	}
    	return fmt.Errorf("node IP: %q not found in the host's network interfaces", nodeIP.String())
    }
    
    // nodeStatusHasChanged compares the original node and current node's status and
    // returns true if any change happens. The heartbeat timestamp is ignored.
    func nodeStatusHasChanged(originalStatus *v1.NodeStatus, status *v1.NodeStatus) bool {
    	if originalStatus == nil && status == nil {
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    		},
    	}
    	for _, tc := range testcases {
    		t.Run(tc.name, func(t *testing.T) {
    			originalStatusCopy := tc.originalStatus.DeepCopy()
    			statusCopy := tc.status.DeepCopy()
    			changed := nodeStatusHasChanged(tc.originalStatus, tc.status)
    			assert.Equal(t, tc.expectChange, changed, "Expect node status change to be %t, but got %t.", tc.expectChange, changed)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
Back to top