-
Notifications
You must be signed in to change notification settings - Fork 565
OCPCLOUD-3173: Enable gcp spot instances #2488
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
base: master
Are you sure you want to change the base?
Conversation
@de1987: This pull request references OCPCLOUD-3173 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set. In 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 openshift-eng/jira-lifecycle-plugin repository. |
Hello @de1987! Some important instructions when contributing to openshift/api: |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
dbb7be9
to
1afaa6e
Compare
I'm currently working on getting Claude code to help with API review, this is the current review it has given ❌ Documentation Issues Found The PR adds a new ProvisioningModel field to enable GCP spot instances, but there are several documentation requirements that need to be addressed: +177: Missing field documentation
Suggested change:
Explanation: The field lacks documentation explaining its purpose, valid values, optional behavior, and relationship to other fields. All kubebuilder validation markers must be documented in the field comment.
Suggested change:
Explanation: Missing type definition and improved constant documentation following the pattern used by other types in the file. 📋 Review Summary Issues found:
Required Actions:
The API changes fail the documentation requirements. All kubebuilder validation markers and optional field behaviors must be explicitly documented in field comments per OpenShift API standards. I agree, the documentation can be improved, and we must explain both what valid values are, what they mean, and what happens when the field is omitted, so the suggestions here are good IMO. It picked out that you are missing the Enum marker, so lets make sure that's added. You don't need length restrictions when you have an enum marker, so those can be removed. |
1afaa6e
to
fb0c0f5
Compare
fb0c0f5
to
f822170
Compare
/test verify |
f822170
to
3ff05bf
Compare
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.
Do you have a PR to machine-api-operator to show the implementation of the validation of this API?
3ff05bf
to
7b31e8e
Compare
I don't have it yet, I was hoping to merge this PR first. |
We should vendor the API as a WIP in Machine API operator and implement the validations before we merge the API really, this is what we've done in the past at least for new MAPI APIs |
we will tackle it and have the PRs open to validate the feature. |
@de1987: all tests passed! 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. |
ProvisioningModel
to enable gcp spot instances