Merge pull request #134144 from swagatbora90/fix-kubeletnull-crash

change klog to log volume name instead of entire spec in GetDeviceMountPath
This commit is contained in:
Kubernetes Prow Robot 2025-10-10 09:21:00 -07:00 committed by GitHub
commit 5b3bbd89e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,7 +252,7 @@ func (c *csiAttacher) VolumesAreAttached(specs []*volume.Spec, nodeName types.No
}
func (c *csiAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) {
klog.V(4).Info(log("attacher.GetDeviceMountPath(%v)", spec))
klog.V(4).Info(log("attacher.GetDeviceMountPath for volume(%s)", spec.Name()))
deviceMountPath, err := makeDeviceMountPath(c.plugin, spec)
if err != nil {
return "", errors.New(log("attacher.GetDeviceMountPath failed to make device mount path: %v", err))