@@ -6719,6 +6719,8 @@ func TestE2E_ManualUntaintAnnotationCleanup(t *testing.T) {
67196719 }, eventuallyTimeout , eventuallyPollInterval , "Manual untaint annotation should be removed, FQ annotations added with taint applied" )
67206720}
67216721
6722+ // TestE2E_SkipNodeLabels_UnhealthyEvent_SkipsQuarantine verifies that an unhealthy
6723+ // event is silently dropped for a node carrying a configured skip label.
67226724func TestE2E_SkipNodeLabels_UnhealthyEvent_SkipsQuarantine (t * testing.T ) {
67236725 ctx , cancel := context .WithTimeout (e2eTestContext , 20 * time .Second )
67246726 defer cancel ()
@@ -6785,6 +6787,8 @@ func TestE2E_SkipNodeLabels_UnhealthyEvent_SkipsQuarantine(t *testing.T) {
67856787 }, neverTimeout , neverPollInterval , "Node with skip label should not be quarantined" )
67866788}
67876789
6790+ // TestE2E_SkipNodeLabels_HealthyEvent_DoesNotUncordon verifies that a healthy event
6791+ // does not uncordon a quarantined node when the node carries a configured skip label.
67886792func TestE2E_SkipNodeLabels_HealthyEvent_DoesNotUncordon (t * testing.T ) {
67896793 ctx , cancel := context .WithTimeout (e2eTestContext , 30 * time .Second )
67906794 defer cancel ()
@@ -6884,6 +6888,8 @@ func TestE2E_SkipNodeLabels_HealthyEvent_DoesNotUncordon(t *testing.T) {
68846888 }, neverTimeout , neverPollInterval , "Node should remain cordoned when skip label is present" )
68856889}
68866890
6891+ // TestE2E_SkipNodeLabels_EmptyConfig_QuarantinesNode verifies that events are
6892+ // processed normally when the skipNodeLabels configuration is empty.
68876893func TestE2E_SkipNodeLabels_EmptyConfig_QuarantinesNode (t * testing.T ) {
68886894 ctx , cancel := context .WithTimeout (e2eTestContext , 20 * time .Second )
68896895 defer cancel ()
@@ -6942,6 +6948,8 @@ func TestE2E_SkipNodeLabels_EmptyConfig_QuarantinesNode(t *testing.T) {
69426948 }, eventuallyTimeout , eventuallyPollInterval , "Node should be cordoned when skipNodeLabels is empty" )
69436949}
69446950
6951+ // TestE2E_SkipNodeLabels_NoMatchingValue_QuarantinesNode verifies that events are
6952+ // processed normally when the node's label value does not match the skip config.
69456953func TestE2E_SkipNodeLabels_NoMatchingValue_QuarantinesNode (t * testing.T ) {
69466954 ctx , cancel := context .WithTimeout (e2eTestContext , 20 * time .Second )
69476955 defer cancel ()
@@ -7003,6 +7011,8 @@ func TestE2E_SkipNodeLabels_NoMatchingValue_QuarantinesNode(t *testing.T) {
70037011 }, eventuallyTimeout , eventuallyPollInterval , "Node should be cordoned when label value doesn't match skip config" )
70047012}
70057013
7014+ // TestE2E_SkipNodeLabels_CacheMissFailsOpen verifies that isNodeSkipped returns
7015+ // false (fail-open) when the node is not present in the informer cache.
70067016func TestE2E_SkipNodeLabels_CacheMissFailsOpen (t * testing.T ) {
70077017 ctx , cancel := context .WithTimeout (e2eTestContext , 20 * time .Second )
70087018 defer cancel ()
0 commit comments