Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d1b44857
Commit
d1b44857
authored
Nov 21, 2018
by
saad-ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing feature gate to CSI driver uninstall
parent
2b44ec5e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
nodeinfomanager.go
pkg/volume/csi/nodeinfomanager/nodeinfomanager.go
+3
-2
No files found.
pkg/volume/csi/nodeinfomanager/nodeinfomanager.go
View file @
d1b44857
...
@@ -133,13 +133,14 @@ func (nim *nodeInfoManager) InstallCSIDriver(driverName string, driverNodeID str
...
@@ -133,13 +133,14 @@ func (nim *nodeInfoManager) InstallCSIDriver(driverName string, driverNodeID str
// If multiple calls to UninstallCSIDriver() are made in parallel, some calls might receive Node or
// If multiple calls to UninstallCSIDriver() are made in parallel, some calls might receive Node or
// CSINodeInfo update conflicts, which causes the function to retry the corresponding update.
// CSINodeInfo update conflicts, which causes the function to retry the corresponding update.
func
(
nim
*
nodeInfoManager
)
UninstallCSIDriver
(
driverName
string
)
error
{
func
(
nim
*
nodeInfoManager
)
UninstallCSIDriver
(
driverName
string
)
error
{
// TODO: shouldn't this be feature gated?
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
CSINodeInfo
)
{
err
:=
nim
.
uninstallDriverFromCSINodeInfo
(
driverName
)
err
:=
nim
.
uninstallDriverFromCSINodeInfo
(
driverName
)
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"error uninstalling CSI driver from CSINodeInfo object %v"
,
err
)
return
fmt
.
Errorf
(
"error uninstalling CSI driver from CSINodeInfo object %v"
,
err
)
}
}
}
err
=
nim
.
updateNode
(
err
:
=
nim
.
updateNode
(
removeMaxAttachLimit
(
driverName
),
removeMaxAttachLimit
(
driverName
),
removeNodeIDFromNode
(
driverName
),
removeNodeIDFromNode
(
driverName
),
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment