mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Rolling back PR 100027
This PR was filed as a temporary workaround to reduce flakiness. Now that the root cause has been fixed by #100103 we can restore the full test.
This commit is contained in:
		@@ -377,13 +377,13 @@ func TestEndpointSliceMirroringUpdates(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
					if !apiequality.Semantic.DeepEqual(epAddresses, sliceAddresses) {
 | 
			
		||||
						t.Logf("Expected EndpointSlice to have the same IP addresses, expected %v got %v", epAddresses, sliceAddresses)
 | 
			
		||||
						continue
 | 
			
		||||
						return false, nil
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					// check labels were mirrored
 | 
			
		||||
					if !isSubset(customEndpoints.Labels, endpointSlice.Labels) {
 | 
			
		||||
						t.Logf("Expected EndpointSlice to mirror labels, expected %v to be in received %v", customEndpoints.Labels, endpointSlice.Labels)
 | 
			
		||||
						continue
 | 
			
		||||
						return false, nil
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					// check annotations but endpoints.kubernetes.io/last-change-trigger-time were mirrored
 | 
			
		||||
@@ -396,13 +396,10 @@ func TestEndpointSliceMirroringUpdates(t *testing.T) {
 | 
			
		||||
					}
 | 
			
		||||
					if !apiequality.Semantic.DeepEqual(annotations, endpointSlice.Annotations) {
 | 
			
		||||
						t.Logf("Expected EndpointSlice to mirror annotations, expected %v received %v", customEndpoints.Annotations, endpointSlice.Annotations)
 | 
			
		||||
						continue
 | 
			
		||||
					}
 | 
			
		||||
					// This is a temporary workaround for https://github.com/kubernetes/kubernetes/issues/100033.
 | 
			
		||||
					// TODO(robscott): When that issue is fixed, update this test to expect all EndpointSlices to meet this criteria.
 | 
			
		||||
					return true, nil
 | 
			
		||||
				}
 | 
			
		||||
						return false, nil
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				return true, nil
 | 
			
		||||
			})
 | 
			
		||||
			if err != nil {
 | 
			
		||||
				t.Fatalf("Timed out waiting for conditions: %v", err)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user