Skip to content
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

Nutanix mapi: add gpus and dataDisks support #1266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yanhua121
Copy link
Contributor

@yanhua121 yanhua121 commented Jul 2, 2024

Update with the api changes for supporting Nutanix gpus and dataDisks:
openshift/api#1935

Add Machine webhooks to validate the newly added Nutanix providerSpec fields.

@yanhua121 yanhua121 marked this pull request as draft July 2, 2024 14:36
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 2, 2024
@openshift-ci openshift-ci bot requested review from damdo and JoelSpeed July 2, 2024 14:38
Copy link
Contributor

openshift-ci bot commented Jul 2, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign radekmanak for approval. For more information see the Kubernetes Code Review Process.

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

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

@yanhua121 yanhua121 marked this pull request as ready for review July 8, 2024 18:17
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 8, 2024
@openshift-ci openshift-ci bot requested a review from nrb July 8, 2024 18:19
Copy link
Contributor

openshift-ci bot commented Jul 10, 2024

@yanhua121: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-metal-ipi-virtualmedia 7939ae4 link false /test e2e-metal-ipi-virtualmedia
ci/prow/e2e-vsphere-ovn-upgrade 7939ae4 link false /test e2e-vsphere-ovn-upgrade
ci/prow/e2e-metal-ipi-ovn-dualstack 7939ae4 link false /test e2e-metal-ipi-ovn-dualstack

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@yanhua121
Copy link
Contributor Author

/retest-required

if disk.DeviceProperties != nil {
switch disk.DeviceProperties.DeviceType {
case machinev1.NutanixDiskDeviceTypeDisk:
if disk.DeviceProperties.AdapterType != machinev1.NutanixDiskAdapterTypeSCSI &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd probably be able to make this easier to read if you used a switch statement here and had the default case as the error case

machinev1.NutanixDiskAdapterTypePCI, machinev1.NutanixDiskAdapterTypeSATA, machinev1.NutanixDiskAdapterTypeSPAPR)))
}
case machinev1.NutanixDiskDeviceTypeCDROM:
if disk.DeviceProperties.AdapterType != machinev1.NutanixDiskAdapterTypeIDE &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, maybe use a switch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants