diff --git a/pkg/driver/aws-ebs/tags_controller.go b/pkg/driver/aws-ebs/tags_controller.go index a974a6849..6c2436be2 100644 --- a/pkg/driver/aws-ebs/tags_controller.go +++ b/pkg/driver/aws-ebs/tags_controller.go @@ -3,7 +3,6 @@ package aws_ebs import ( "context" "fmt" - "os" "reflect" "time" @@ -155,9 +154,8 @@ func (c *EBSVolumeTagController) handleUpdate(oldObj, newObj interface{}) { klog.Infof("Infrastructure resource updated: %s", newInfra.Name) if !reflect.DeepEqual(oldInfra.Status.PlatformStatus.AWS.ResourceTags, newInfra.Status.PlatformStatus.AWS.ResourceTags) { - klog.Infof("AWS ResourceTags changed: triggering processing and restart") + klog.Infof("AWS ResourceTags changed: triggering processing") c.processInfrastructure(newInfra) - //c.restartOperator() } } @@ -241,12 +239,6 @@ func (c *EBSVolumeTagController) updateEBSTags(volumeID string, resourceTags []c return err } -// restartOperator triggers a restart of the operator by exiting the process -func (c *EBSVolumeTagController) restartOperator() { - klog.Infof("Restarting the operator due to changes in ResourceTags...") - os.Exit(1) -} - // Run starts the controller and processes events from the informer func (c *EBSVolumeTagController) Run(ctx context.Context) { defer c.queue.ShutDown()