File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,17 @@ func StartCloudNodeLifecycleControllerWrapper(initContext app.ControllerInitCont
29
29
30
30
//nolint:gocritic // need to follow upstream function signature
31
31
func startCloudNodeLifecycleController (ctx context.Context ,
32
- initContext app.ControllerInitContext ,
32
+ _ app.ControllerInitContext ,
33
33
controlexContext controllermanagerapp.ControllerContext ,
34
34
completedConfig * config.CompletedConfig ,
35
35
cloud cloudprovider.Interface ,
36
36
) (controller.Interface , bool , error ) {
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