mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Fix incorrect "Invalid attach limit" error when maxAttachLimit is 0
This commit is contained in:
parent
082da2f04e
commit
b35ea96d9a
@ -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