Bug_fix: validate non-nil AzureMachine.Spec.Diagnostic when upgrading to v1beta1#2961
Conversation
|
/test ls |
|
@nawazkh: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
DetailsIn 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. |
|
/test pull-cluster-api-provider-azure-apiversion-upgrade |
|
/retest |
1 similar comment
|
/retest |
d0419b0 to
4a85051
Compare
|
/retitle Bug_fix: validate non-nil AzureMachine.Spec.Diagnostic when upgrading to v1beta1 |
|
/test pull-cluster-api-provider-azure-apiversion-upgrade |
|
Thank you for fix @nawazkh, great investigation work 🕵️👏 |
mboersma
left a comment
There was a problem hiding this comment.
Can we add a test case for oldMachine: nil and newMachine has Spec.Diagnostic to TestAzureMachine_ValidateUpdate?
Added via commit 56d0cf0. Will be squashing the commits in a bit. |
- when upgrading from v1alpha4 -> v1beta1, AzureMachine CRD gets updated upon cluster upgrade. This upgrade updates AzureMachine.Spec.Diagnostics to "Managed", matching the existing behavior as implemented in kubernetes-sigs#901 - This PR enables upgrading nil AzureMachine.Spec.Diagnostic to "Managed" and unblocks v1alpha4 -> v1beta1 upgrades. - adds test cases to test validateUpdate() in case of nil AzureMachine.Spec.Diagnostics
56d0cf0 to
d92ea9a
Compare
|
/test pull-cluster-api-provider-azure-apiversion-upgrade |
mboersma
left a comment
There was a problem hiding this comment.
/lgtm
Thanks for the unit test additions! 💚
|
/lgtm Thank you @mboersma for reminding us to add tests 🙌 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #2952
Special notes for your reviewer:
This upgrade updates AzureMachine.Spec.Diagnostics to "Managed", matching the existing behavior as implemented in ✨ Enable VM boot diagnostics #901.
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: