-
Notifications
You must be signed in to change notification settings - Fork 48
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 VirtualMachine conversion tests #304
✨ Add VirtualMachine conversion tests #304
Conversation
25a7feb
to
f8b30d4
Compare
f8b30d4
to
efc49c8
Compare
Why do we want to eval the status? Should we not configure a filter that ignores updates to the status sub-resource? |
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!
efc49c8
to
c5bf8e0
Compare
If the Spec changes, then yes. I don't think we're using the filter to skip the Status updated induced reconcile ATM. |
c5bf8e0
to
615996c
Compare
Sorry, I mean we never "evaluate" the status, or rather, we shouldn't. We construct it by evaluating and reconciling the spec. I think we just thought different things when we used the word "reevaluate." |
e7bedff
to
f793c5e
Compare
Start with a nearly fully populated v1a2 VM and ensure that the VM resulting from conversion is the same. We can keep adding these explicit conversion tests to ensure that fields are converted as we expect instead of always depending on the fuzzer. Add typical v1a1 TKG VM and ensure spoke-hub-spoke conversion works. Fix a few conversion issues around the Network and Advanced fields. Always restore the full VM Status from the annotations. Our controller should be the only one updating the Status, and an update from the conversion will cause our controllers to reconcile and reevaluate the Status.
f793c5e
to
8b0ed54
Compare
Minimum allowed line rate is |
Start with a nearly fully populated v1a2 VM and ensure that the VM resulting from conversion is the same. We can keep adding these explicit conversion tests to ensure that fields are converted as we expect instead of always depending on the fuzzer.
Fix a few conversion issues around the Network and Advanced fields.
Always restore the full VM status from the annotations. Our controller should be the only one updating the Status, and an update from the conversion will cause our controllers to reconcile and reevaluate the Status.