const testNodeMonitorGracePeriod …
const testNodeStartupGracePeriod …
const testNodeMonitorPeriod …
const testRateLimiterQPS …
const testLargeClusterThreshold …
const testUnhealthyThreshold …
func alwaysReady() bool { … }
func fakeGetPodsAssignedToNode(c *fake.Clientset) func(string) ([]*v1.Pod, error) { … }
type nodeLifecycleController …
func createNodeLease(nodeName string, renewTime metav1.MicroTime) *coordv1.Lease { … }
func (nc *nodeLifecycleController) syncLeaseStore(lease *coordv1.Lease) error { … }
func (nc *nodeLifecycleController) syncNodeStore(fakeNodeHandler *testutil.FakeNodeHandler) error { … }
func newNodeLifecycleControllerFromClient(
ctx context.Context,
kubeClient clientset.Interface,
evictionLimiterQPS float32,
secondaryEvictionLimiterQPS float32,
largeClusterThreshold int32,
unhealthyZoneThreshold float32,
nodeMonitorGracePeriod time.Duration,
nodeStartupGracePeriod time.Duration,
nodeMonitorPeriod time.Duration,
) (*nodeLifecycleController, error) { … }
func TestMonitorNodeHealth(t *testing.T) { … }
func TestPodStatusChange(t *testing.T) { … }
func TestMonitorNodeHealthUpdateStatus(t *testing.T) { … }
func TestMonitorNodeHealthUpdateNodeAndPodStatusWithLease(t *testing.T) { … }
func TestMonitorNodeHealthMarkPodsNotReady(t *testing.T) { … }
func TestMonitorNodeHealthMarkPodsNotReadyWithWorkerSize(t *testing.T) { … }
func TestMonitorNodeHealthMarkPodsNotReadyRetry(t *testing.T) { … }
func TestApplyNoExecuteTaints(t *testing.T) { … }
func TestApplyNoExecuteTaintsToNodesEnqueueTwice(t *testing.T) { … }
func TestSwapUnreachableNotReadyTaints(t *testing.T) { … }
func TestTaintsNodeByCondition(t *testing.T) { … }
func TestNodeEventGeneration(t *testing.T) { … }
func TestReconcileNodeLabels(t *testing.T) { … }
func TestTryUpdateNodeHealth(t *testing.T) { … }
func Test_isNodeExcludedFromDisruptionChecks(t *testing.T) { … }