-
Notifications
You must be signed in to change notification settings - Fork 44
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 vm.spec.cdrom API and initial reconcile logic #594
Conversation
6c46cb5
to
bf02bdf
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.
Great work @dilyar85! Please see the requested changes.
bf02bdf
to
42b5490
Compare
42b5490
to
ddb02da
Compare
ddb02da
to
d8d7258
Compare
d6bf977
to
924ee88
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!
924ee88
to
488888e
Compare
Submitted #611 to address the |
c42de1c
to
3b0e2d7
Compare
config/crd/external-crds/imageregistry.vmware.com_clustercontentlibraryitems.yaml
Show resolved
Hide resolved
config/crd/external-crds/imageregistry.vmware.com_contentlibraryitems.yaml
Show resolved
Hide resolved
fbc095c
to
8547995
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.
Thank you @dilyar85, this is really good, but I did have a few thoughts.
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. Thanks for the update.
c53d88f
to
c9a1acb
Compare
This patch introduces a new `vm.spec.cdrom` field and the reconciliation logic based on the VM power state change: - If VM is about to power on, it adds/removes/updates/ CD-ROM devices with the expected backing (from ISO-type Virtual Machine Image) and connection state. - If VM is already powered on, it only updates the existing CD-ROM device connection state if changed.
c9a1acb
to
d31be15
Compare
To wrap up the above conversations about the "connection state" in the CD-ROM spec, the team has concluded to name that API field |
Minimum allowed line rate is |
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.
Thank you @dilyar85 !!
What does this PR do, and why is it needed?
This PR introduces a new
vm.spec.cdrom
field and the initial reconciliation logic based on the VM power state change:Which issue(s) is/are addressed by this PR?
Fixes N/A.
Are there any special notes for your reviewer:
This PR only focuses on the API and reconciliation logic regarding CD-ROM device changes.
Follow-up PRs will be submitted to address necessary VM webhook and documentation updates.
Please add a release note if necessary:
Testing Done
cdrom_test.go
file to test the newcdrom.go
file with 100% coverage:session_vm_update_test.go
when ISO FSS is enabledπ Documentation preview π: https://vm-operator--594.org.readthedocs.build/en/594/