File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ func startCloudNodeLifecycleController(ctx context.Context,
37
37
// Start the cloudNodeLifecycleController
38
38
cloudNodeLifecycleController , err := NewCloudNodeLifecycleController (
39
39
completedConfig .SharedInformers .Core ().V1 ().Nodes (),
40
- // cloud node lifecycle controller uses existing cluster role from node-controller
41
- completedConfig .ClientBuilder .ClientOrDie (initContext .ClientName ),
40
+ // use crusoe-ccm-sa ServiceAccount because custom node lifecycle controller needs
41
+ // permissions to list and delete VolumeAttachments
42
+ completedConfig .ClientBuilder .ClientOrDie ("crusoe-ccm-sa" ),
42
43
cloud ,
43
44
completedConfig .ComponentConfig .KubeCloudShared .NodeMonitorPeriod .Duration ,
44
45
)
You can’t perform that action at this time.
0 commit comments