-
Notifications
You must be signed in to change notification settings - Fork 10
Added Reservation API, poollet and broker implementation
#1172
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
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # client-go/applyconfigurations/utils.go # client-go/informers/externalversions/compute/v1alpha1/reservation.go # client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_reservation.go # client-go/ironcore/versioned/typed/compute/v1alpha1/reservation.go
# Conflicts: # internal/apis/compute/v1alpha1/zz_generated.conversion.go # iri/apis/machine/v1alpha1/api.pb.go
c4a57fe to
5deff4b
Compare
# Conflicts: # iri/apis/machine/v1alpha1/api.pb.go
47a99e4 to
5ce43e7
Compare
# Conflicts: # broker/machinebroker/server/server_suite_test.go # iri/apis/machine/v1alpha1/api.pb.go # poollet/machinepoollet/api/v1alpha1/common_types.go
98bae53 to
7fe0e69
Compare
7fe0e69 to
1eda5b4
Compare
| _, iriReservation := GetSingleMapEntry(srv.Reservations) | ||
|
|
||
| By("inspecting the iri reservation") | ||
| Expect(iriReservation.Metadata.Labels).To(HaveKeyWithValue(fmt.Sprintf("%s%s", machinepoolletv1alpha1.MachineDownwardAPIPrefix, fooDownwardAPILabel), fooAnnotationValue)) |
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(iriReservation.Metadata.Labels).To(HaveKeyWithValue(fmt.Sprintf("%s%s", machinepoolletv1alpha1.MachineDownwardAPIPrefix, fooDownwardAPILabel), fooAnnotationValue)) | |
| Expect(iriReservation.Metadata.Labels).To(HaveKeyWithValue(poolletutils.DownwardAPILabel(machinepoolletv1alpha1.MachineDownwardAPIPrefix, fooDownwardAPILabel), fooAnnotationValue)) |
The above function can be reused here to construct the label.
| iriReservation.Status.State = iri.ReservationState_RESERVATION_STATE_ACCEPTED | ||
| srv.SetReservations([]*testingmachine.FakeReservation{iriReservation}) | ||
|
|
||
| //By("ensuring the ironcore reservation status is pending accepted") |
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.
Can we remove this commented code?
|
Can we also put a sample yaml in the |
kasabe28
left a 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.
We can add docs and gen files also
|
|
||
| const ( | ||
| // ReservationStatePending means the Reservation is being reconciled. | ||
| ReservationStatePending ReservationState = "Pending" |
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.
Bound state is missing as per proposal
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.
all filenames should follow same pattern either starting with machinereservation or reservation considering future enhancements for volume reservation.
| } | ||
|
|
||
| type ReservationPoolStatus struct { | ||
| Name string `json:"ref,omitempty"` |
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.
| Name string `json:"ref,omitempty"` | |
| Name string `json:"name,omitempty"` |
Proposed Changes
brokerpoolletapiImplements #1128