mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Fix e2e test error due to ContainersToUpdate map not created
This commit is contained in:
		@@ -985,6 +985,10 @@ func (m *kubeGenericRuntimeManager) computePodActions(ctx context.Context, pod *
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if IsInPlacePodVerticalScalingAllowed(pod) {
 | 
				
			||||||
 | 
							changes.ContainersToUpdate = make(map[v1.ResourceName][]containerToUpdateInfo)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Check initialization progress.
 | 
						// Check initialization progress.
 | 
				
			||||||
	if !handleRestartableInitContainers {
 | 
						if !handleRestartableInitContainers {
 | 
				
			||||||
		initLastStatus, next, done := findNextInitContainerToRun(pod, podStatus)
 | 
							initLastStatus, next, done := findNextInitContainerToRun(pod, podStatus)
 | 
				
			||||||
@@ -1020,10 +1024,6 @@ func (m *kubeGenericRuntimeManager) computePodActions(ctx context.Context, pod *
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if IsInPlacePodVerticalScalingAllowed(pod) {
 | 
					 | 
				
			||||||
		changes.ContainersToUpdate = make(map[v1.ResourceName][]containerToUpdateInfo)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	// Number of running containers to keep.
 | 
						// Number of running containers to keep.
 | 
				
			||||||
	keepCount := 0
 | 
						keepCount := 0
 | 
				
			||||||
	// check the status of containers.
 | 
						// check the status of containers.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user