-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add Custom Scheduler Name to Build and BuildRun objects #1770
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/kind feature |
213215f
to
02dfeeb
Compare
1997d43
to
47478bc
Compare
168706d
to
8dca9b7
Compare
bf67139
to
95cf628
Compare
95cf628
to
3569430
Compare
3569430
to
d272428
Compare
d272428
to
7377fd4
Compare
734e205
to
7c64e81
Compare
Ok, this is ready for review. I relied on unit tests instead of creating a custom scheduler for testing, as was mentioned in https://github.com/shipwright-io/community/blob/main/ships/0039-build-scheduler-opts.md#test-plan. I also included the suggestions in the comments from #1711 in this PR. |
7c64e81
to
3a8ba74
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.
Overall nice, please adjust the Go type.
Signed-off-by: Dylan Orzel <[email protected]>
3a8ba74
to
8a4b647
Compare
Signed-off-by: Dylan Orzel <[email protected]>
33d10f5
to
fae087f
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.
Looks good. Just two Expect
s that should be the other way around, I think.
|
||
tr, err := tb.GetTaskRunFromBuildRun(buildRunObject.Name) | ||
Expect(err).To(BeNil()) | ||
Expect(*buildObject.Spec.SchedulerName).To(Equal(tr.Spec.PodTemplate.SchedulerName)) |
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.
I think we should turn that around.
Expect(*buildObject.Spec.SchedulerName).To(Equal(tr.Spec.PodTemplate.SchedulerName)) | |
Expect(tr.Spec.PodTemplate.SchedulerName).To(Equal(*buildObject.Spec.SchedulerName)) |
|
||
tr, err := tb.GetTaskRunFromBuildRun(buildRunObject.Name) | ||
Expect(err).To(BeNil()) | ||
Expect(*br.Spec.SchedulerName).To(Equal(tr.Spec.PodTemplate.SchedulerName)) |
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.
Expect(*br.Spec.SchedulerName).To(Equal(tr.Spec.PodTemplate.SchedulerName)) | |
Expect(tr.Spec.PodTemplate.SchedulerName).To(Equal(*br.Spec.SchedulerName)) |
Signed-off-by: Dylan Orzel <[email protected]>
fae087f
to
6d2e8bf
Compare
Changes
Fixes #1637
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes