Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the order of nested for loop #54

Merged
merged 2 commits into from
Jun 5, 2023

Conversation

vcatlassian
Copy link
Contributor

@vcatlassian vcatlassian commented Jun 2, 2023

The order of the 2 nested for loop could potentially make numNodesInProgress++ getting executed for more than once - this won't cause issue when concurrency is 1. Changed the order so that it will loop all ready nodes first.

Also removed reapedChildren from pkg/controller/cyclenoderequest/transitioner/util.go which is not used.

Upgraded github action versions - old versions are deprecated and caused lint job failed.

@vcatlassian vcatlassian force-pushed the vchen2/fix-for-loop-in-getNodesToTerminate branch from e1b0ae8 to 8eedb0a Compare June 2, 2023 06:44
@vcatlassian vcatlassian force-pushed the vchen2/fix-for-loop-in-getNodesToTerminate branch from 8eedb0a to 2bb79a4 Compare June 2, 2023 06:50
Copy link
Member

@vincentportella vincentportella left a comment

Choose a reason for hiding this comment

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

lgtm

@vcatlassian vcatlassian merged commit b69d06b into master Jun 5, 2023
@vcatlassian vcatlassian mentioned this pull request Jun 9, 2023
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.

3 participants