Skip to content

🐛 Fix conversion of v1alpha6 PortOpts#2207

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
shiftstack:issue2204
Oct 28, 2024
Merged

🐛 Fix conversion of v1alpha6 PortOpts#2207
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
shiftstack:issue2204

Conversation

@mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Oct 28, 2024

v1alpha6 PortOpts conversion was missing many fields, but this was hidden in the unit tests because the v1alpha6 restore function for the machine spec unconditionally restored all Ports.

This change turns the unconditional restore of all ports in the machine spec into individual conversion of each port, then fixes all the resulting test failures by adding individual conversions and restores as required.

Fixes: #2204

/hold

v1alpha6 PortOpts conversion was missing many fields, but this was
hidden in the unit tests because the v1alpha6 restore function for the
machine spec unconditionally restored all Ports.

This change turns the unconditional restore of all ports in the machine
spec into individual conversion of each port, then fixes all the
resulting test failures by adding individual conversions and restores as
required.
@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 28, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 28, 2024
@netlify
Copy link

netlify bot commented Oct 28, 2024

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit f8b3307
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/671f833297c121000866f8af
😎 Deploy Preview https://deploy-preview-2207--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdbooth
Copy link
Contributor Author

mdbooth commented Oct 28, 2024

/cherry-pick release-0.11
/cherry-pick release-0.10

@k8s-infra-cherrypick-robot

@mdbooth: once the present PR merges, I will cherry-pick it on top of release-0.11 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-0.11
/cherry-pick release-0.10

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-sigs/prow repository.

@EmilienM
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 28, 2024
@EmilienM
Copy link
Contributor

/approve
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 28, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EmilienM

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 28, 2024
@k8s-ci-robot k8s-ci-robot merged commit 1a38f1b into kubernetes-sigs:main Oct 28, 2024
@k8s-infra-cherrypick-robot

@mdbooth: new pull request created: #2208

Details

In response to this:

/cherry-pick release-0.11
/cherry-pick release-0.10

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-sigs/prow repository.

@k8s-infra-cherrypick-robot

@mdbooth: new pull request created: #2209

Details

In response to this:

/cherry-pick release-0.11
/cherry-pick release-0.10

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-sigs/prow repository.

@mdbooth
Copy link
Contributor Author

mdbooth commented Oct 29, 2024

/cherry-pick release-0.10

@k8s-infra-cherrypick-robot

@mdbooth: new pull request created: #2213

Details

In response to this:

/cherry-pick release-0.10

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Upgrading v0.9.0 -> v0.10.4, conversion of v1alpha7 to v1beta1 drops .Spec fields

4 participants