Skip to content

Conversation

@OmkarDeshpande7
Copy link
Collaborator

What this PR does / why we need it

This PR increases requeue time for "pod not found" issue.
Makes update call only if there is actual change.
this will reduce the reconcile frequecy.

Which issue(s) this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)

fixes #1273

Special notes for your reviewer

Testing done

TBD

Copy link
Contributor

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 To request another review, post a new comment with "/windsurf-review".

Comment on lines +171 to +172
oldCutoverLabel := pod.Labels["startCutover"]
newCutoverLabel := utils.SetCutoverLabel(migration.Spec.InitiateCutover, oldCutoverLabel)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable naming here could be improved for clarity. The function name SetCutoverLabel suggests it's modifying something, but it's actually returning a value. Consider renaming the function to something like GetCutoverLabelValue or renaming the variables to make the intent clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration controller logs are getting flooded if we delete succeeded migrations and leave out one pending VM migration

2 participants