-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
📖 Update cronjob_controller.go: simplify setting mostRecentTime logic #3700
Conversation
Welcome @hp685! |
Hi @hp685. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
if mostRecentTime == nil { | ||
mostRecentTime = scheduledTimeForJob | ||
} else if mostRecentTime.Before(*scheduledTimeForJob) { | ||
if mostRecentTime == nil || mostRecentTime.Before(*scheduldTimeForJob) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
But the change must be done in:
mostRecentTime = scheduledTimeForJob |
Then, you will run make generate which will call the docs generate and it will get updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the emoji in this case is :book:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @camilamacedo86! Updated.
/ok-to-test |
Hi @hp685 It is missing just a nit to allow we get your contribution 🥇 merged We should have only one commit per PR. also, please ensure that your PR is rebased with master branch |
The change consolidates conditions under which mostRecentTime can be set to scheduledTimeForJob for better readability
Done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
?lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, hp685 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
simplify setting mostRecentTime logic
The change consolidates conditions under which mostRecentTime can be set to scheduledTimeForJob for better readability