Skip to content

Conversation

@yanhua121
Copy link
Contributor

Add some optional new fields to NutanixMachineProviderConfig, for Windows support, etc.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 20, 2023

Hello @yanhua121! Some important instructions when contributing to openshift/api:
API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

For merging purposes, this repository follows the no-Feature-Freeze process which means that in addition to the standard lgtm and approved labels this repository requires either:

bugzilla/valid-bug - applied if your PR references a valid bugzilla bug

OR

qe-approved, docs-approved, and px-approved - these labels can be applied by anyone in the openshift org via the /label <labelname> command.

Who should apply these qe/docs/px labels?

  • For a no-Feature-Freeze team who is merging a feature before code freeze, they need to get those labels applied to their api repo PR by the appropriate teams (i.e. qe, docs, px)
  • For a Feature Freeze (traditional) team who is merging a feature before FF, they can self-apply the labels (via /label commands), they are basically irrelevant for those teams
  • For a Feature Freeze team who is merging a feature after FF, the PR should be rejected barring an exception

@openshift-ci openshift-ci bot requested review from JoelSpeed and eparis January 20, 2023 01:20
@yanhua121 yanhua121 force-pushed the nutanix-machine-spec branch from a93873f to 4416e0c Compare January 20, 2023 17:26
@yanhua121 yanhua121 force-pushed the nutanix-machine-spec branch from 4416e0c to f054742 Compare January 23, 2023 22:24
@JoelSpeed
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 24, 2023
@elmiko
Copy link
Contributor

elmiko commented Feb 1, 2023

the bootType field can be tested with this openshift/machine-api-provider-nutanix#37

@elmiko
Copy link
Contributor

elmiko commented Feb 6, 2023

the project and categories fields can be tested with this openshift/machine-api-provider-nutanix#38

@yanhua121
Copy link
Contributor Author

The Machine webhook validation for these new fields can be tested with openshift/machine-api-operator#1117.

@huali9
Copy link

huali9 commented Feb 10, 2023

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Feb 10, 2023
Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

Quick question, do we need the omitempty on these fields? If we remove it, the fields will show in a serialized version with empty values, which then hints to users "oh, that's an option I can use", so it improves the discoverability, which is generally something we advise for configuration APIs such as these

@yanhua121
Copy link
Contributor Author

Quick question, do we need the omitempty on these fields? If we remove it, the fields will show in a serialized version with empty values, which then hints to users "oh, that's an option I can use", so it improves the discoverability, which is generally something we advise for configuration APIs such as these

@JoelSpeed The only concern I have is if we remove the 'omitempty' on these optional fields, the Machine/MachineSet yaml used in a 4.13 cluster then cannot use to a OCP cluster with earlier version 4.11/4.12. In some scenario, customer may have clusters with different OCP versions. They may want to deploy the Machine/MachineSet yamls to all the cluster.

@JoelSpeed
Copy link
Contributor

Unknown fields are just dropped on older versions so it would be ok to have the new fields with empty values and be applied to the older versions.

I don't think changing omitempty changes that scenario really. We can add it back if we find issues but I think for now it should be removed for discoverability

@yanhua121
Copy link
Contributor Author

Unknown fields are just dropped on older versions so it would be ok to have the new fields with empty values and be applied to the older versions.

I don't think changing omitempty changes that scenario really. We can add it back if we find issues but I think for now it should be removed for discoverability

@JoelSpeed Okay, then I will go ahead to remove 'omitempty' for these optional fields.

@yanhua121 yanhua121 force-pushed the nutanix-machine-spec branch from e3fa411 to bf73e5c Compare February 10, 2023 17:31
@JoelSpeed
Copy link
Contributor

/lgtm
/px-approved
/docs-approved

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 10, 2023
@yanhua121
Copy link
Contributor Author

/retest-required

@yanhua121 yanhua121 force-pushed the nutanix-machine-spec branch from bf73e5c to c7a709d Compare February 10, 2023 18:37
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 10, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2023

@yanhua121: all tests passed!

Full PR test history. Your PR dashboard.

Details

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

Copy link
Contributor

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

/lgtm

@elmiko
Copy link
Contributor

elmiko commented Feb 10, 2023

/px-approved
/docs-approved

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 10, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elmiko, JoelSpeed, yanhua121

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

@elmiko
Copy link
Contributor

elmiko commented Feb 10, 2023

/label px-approved
/label docs-approved

@openshift-ci openshift-ci bot added px-approved Signifies that Product Support has signed off on this PR docs-approved Signifies that Docs has signed off on this PR labels Feb 10, 2023
@openshift-merge-robot openshift-merge-robot merged commit 68f4ffc into openshift:master Feb 10, 2023
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. docs-approved Signifies that Docs has signed off on this PR lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants