mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +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{
|
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),
|
updateNodeIDInNode(driverName, driverNodeID),
|
||||||
updateTopologyLabels(topology),
|
updateTopologyLabels(topology),
|
||||||
}
|
}
|
||||||
@ -140,7 +141,7 @@ func (nim *nodeInfoManager) UninstallCSIDriver(driverName string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = nim.updateNode(
|
err = nim.updateNode(
|
||||||
removeMaxAttachLimit(driverName),
|
removeMaxAttachLimit(driverName), // remove it when this function is removed from nodeUpdateFuncs
|
||||||
removeNodeIDFromNode(driverName),
|
removeNodeIDFromNode(driverName),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user