Remove attachable volume limit from node's status capacity if they exists

This commit is contained in:
carlory 2024-08-27 00:24:26 +08:00
parent 5ac315faf4
commit 47eed55a66

View File

@ -112,6 +112,7 @@ func (nim *nodeInfoManager) InstallCSIDriver(driverName string, driverNodeID str
}
nodeUpdateFuncs := []nodeUpdateFunc{
removeMaxAttachLimit(driverName), // remove in 1.35 due to the version skew policy, we have to keep it for 3 releases
updateNodeIDInNode(driverName, driverNodeID),
updateTopologyLabels(topology),
}
@ -140,7 +141,7 @@ func (nim *nodeInfoManager) UninstallCSIDriver(driverName string) error {
}
err = nim.updateNode(
removeMaxAttachLimit(driverName),
removeMaxAttachLimit(driverName), // remove it when this function is removed from nodeUpdateFuncs
removeNodeIDFromNode(driverName),
)
if err != nil {