-
Notifications
You must be signed in to change notification settings - Fork 179
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
Make manager tasks' interval and start date optional and non-defaulted #1868
Make manager tasks' interval and start date optional and non-defaulted #1868
Conversation
@rzetelskik: GitHub didn't allow me to request PR reviews from the following users: rzetelskik. Note that only scylladb members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
5467977
to
87ca7ea
Compare
87ca7ea
to
1e74791
Compare
6e0c1c3
to
561cf58
Compare
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, please squash last two non-generated commits, as "Move manager task validation to validating webhook" also contains changes to existing tests that "React to schema and validation changes in existing tests " should have based on the title.
/cc tnozicka |
561cf58
to
1eaae5d
Compare
done, thanks |
1eaae5d
to
8be250e
Compare
8be250e
to
6c91453
Compare
Changing the scope of this PR due to #1867 (comment) |
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.
one nit, rest lgtm
/approve
@@ -136,7 +137,7 @@ var _ = g.Describe("Scylla Manager integration", func() { | |||
repairTask := tasks.TaskListItemSlice[0] | |||
o.Expect(repairTask.Name).To(o.Equal(sc.Status.Repairs[0].Name)) | |||
o.Expect(repairTask.ID).To(o.Equal(sc.Status.Repairs[0].ID)) | |||
o.Expect(repairTask.Schedule.Interval).To(o.Equal(sc.Status.Repairs[0].Interval)) | |||
o.Expect(repairTask.Schedule.Interval).To(o.Equal(*sc.Status.Repairs[0].Interval)) |
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.
nit: expect non-nil to this can't panic (and the other case)
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.
done
6c91453
to
144060d
Compare
…t to schema and validation changes
144060d
to
a3fed6a
Compare
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: rzetelskik, tnozicka, zimnx 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 |
Controller logs:
Known issue: #1752 #1694 (comment) |
image was already gone /test images |
Description of your changes:
StartDate and Interval fields are made optional and non-defaulted to make the validation more reasonable, while not changing the default behaviour.
This PR also moves manager's scheduler task spec conversion to a shared func.
Which issue is resolved by this Pull Request:
Prerequisite for #1851.
/kind feature
/priority important-longterm
/cc