mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	[kube-proxy/ipvs] Do not try to delete RS already in termination list
This commit is contained in:
		@@ -1643,6 +1643,10 @@ func (proxier *Proxier) cleanLegacyService(activeServices map[string]bool, curre
 | 
			
		||||
			// Applying graceful termination to all real servers
 | 
			
		||||
			for _, rs := range rsList {
 | 
			
		||||
				uniqueRS := GetUniqueRSName(svc, rs)
 | 
			
		||||
				// If RS is already in the graceful termination list, no need to add it again
 | 
			
		||||
				if proxier.gracefuldeleteManager.InTerminationList(uniqueRS) {
 | 
			
		||||
					continue
 | 
			
		||||
				}
 | 
			
		||||
				klog.V(5).Infof("Using graceful delete to delete: %v", uniqueRS)
 | 
			
		||||
				if err := proxier.gracefuldeleteManager.GracefulDeleteRS(svc, rs); err != nil {
 | 
			
		||||
					klog.Errorf("Failed to delete destination: %v, error: %v", uniqueRS, err)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user