mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #100465 from chrishenzie/nil-ptr-deref-in-logs
Fix nil ptr dereference in log line
This commit is contained in:
		@@ -404,11 +404,11 @@ func (rc *reconciler) syncStates() {
 | 
				
			|||||||
			if volumeInDSW {
 | 
								if volumeInDSW {
 | 
				
			||||||
				// Some pod needs the volume, don't clean it up and hope that
 | 
									// Some pod needs the volume, don't clean it up and hope that
 | 
				
			||||||
				// reconcile() calls SetUp and reconstructs the volume in ASW.
 | 
									// reconcile() calls SetUp and reconstructs the volume in ASW.
 | 
				
			||||||
				klog.V(4).InfoS("Volume exists in desired state, skip cleaning up mounts", "pod", klog.KObj(reconstructedVolume.pod), "volumeSpecName", volume.volumeSpecName)
 | 
									klog.V(4).InfoS("Volume exists in desired state, skip cleaning up mounts", "podName", volume.podName, "volumeSpecName", volume.volumeSpecName)
 | 
				
			||||||
				continue
 | 
									continue
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			// No pod needs the volume.
 | 
								// No pod needs the volume.
 | 
				
			||||||
			klog.InfoS("Could not construct volume information, cleaning up mounts", "pod", klog.KObj(reconstructedVolume.pod), "volumeSpecName", volume.volumeSpecName, "error", err)
 | 
								klog.InfoS("Could not construct volume information, cleaning up mounts", "podName", volume.podName, "volumeSpecName", volume.volumeSpecName, "error", err)
 | 
				
			||||||
			rc.cleanupMounts(volume)
 | 
								rc.cleanupMounts(volume)
 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user