Skip to content

Commit 47eed55

Browse files
committed
Remove attachable volume limit from node's status capacity if they exists
1 parent 5ac315f commit 47eed55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func (nim *nodeInfoManager) InstallCSIDriver(driverName string, driverNodeID str
112112
}
113113

114114
nodeUpdateFuncs := []nodeUpdateFunc{
115+
removeMaxAttachLimit(driverName), // remove in 1.35 due to the version skew policy, we have to keep it for 3 releases
115116
updateNodeIDInNode(driverName, driverNodeID),
116117
updateTopologyLabels(topology),
117118
}
@@ -140,7 +141,7 @@ func (nim *nodeInfoManager) UninstallCSIDriver(driverName string) error {
140141
}
141142

142143
err = nim.updateNode(
143-
removeMaxAttachLimit(driverName),
144+
removeMaxAttachLimit(driverName), // remove it when this function is removed from nodeUpdateFuncs
144145
removeNodeIDFromNode(driverName),
145146
)
146147
if err != nil {

0 commit comments

Comments
 (0)