Skip to content

Commit

Permalink
removed restart
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhAgniRedhat committed Oct 14, 2024
1 parent 14ecc0e commit d68d71a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/driver/aws-ebs/tags_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package aws_ebs
import (
"context"
"fmt"
"os"
"reflect"
"time"

Expand Down Expand Up @@ -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()
}
}

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit d68d71a

Please sign in to comment.