mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	fix nil deref
This commit is contained in:
		@@ -162,6 +162,9 @@ func (dswp *desiredStateOfWorldPopulator) findAndRemoveDeletedPods() {
 | 
			
		||||
			}
 | 
			
		||||
			// Skip non-memory backed volumes belonging to terminated pods
 | 
			
		||||
			volume := volumeToMount.VolumeSpec.Volume
 | 
			
		||||
			if volume == nil {
 | 
			
		||||
				continue
 | 
			
		||||
			}
 | 
			
		||||
			if (volume.EmptyDir == nil || volume.EmptyDir.Medium != v1.StorageMediumMemory) &&
 | 
			
		||||
				volume.ConfigMap == nil && volume.Secret == nil {
 | 
			
		||||
				continue
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user