mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Merge pull request #112344 from zlabjp/fix-invalid-attach-limit
Fix incorrect "Invalid attach limit" error when maxAttachLimit is 0
This commit is contained in:
commit
a7117b716b
@ -557,7 +557,7 @@ func (nim *nodeInfoManager) installDriverToCSINode(
|
||||
}
|
||||
m := int32(maxAttachLimit)
|
||||
driverSpec.Allocatable = &storagev1.VolumeNodeResources{Count: &m}
|
||||
} else {
|
||||
} else if maxAttachLimit != 0 {
|
||||
klog.Errorf("Invalid attach limit value %d cannot be added to CSINode object for %q", maxAttachLimit, driverName)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user