mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Remove attachable volume limit from node's status capacity if they exists
This commit is contained in:
parent
5ac315faf4
commit
47eed55a66
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user