-
Notifications
You must be signed in to change notification settings - Fork 256
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
convert CRD webhook to apiextensions.k8s.io/v1 #964
Conversation
Signed-off-by: Jake Plimack <jplimack@tesla.com>
Hi @kplimack. Thanks for your PR. I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
/retest |
@kashifest / @fmuyassarov I'm unclear why the tests are failing, can you help me out? |
I think you need to run |
Yes precisely, you need to run |
Signed-off-by: Jake Plimack <jplimack@tesla.com>
[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 |
Signed-off-by: Jake Plimack <jplimack@tesla.com>
@jplimack you can also run those unit tests and generate tests locally if you would like to verify them
|
@fmuyassarov my unit tests pass when using |
I'm actually seeing failure even when running `hack/unit.sh' after checking out to your branch. |
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.
Does anybody know if there is a later version of kubebuilder we can update to so that we don't continue to create new problems like this?
@@ -278,7 +278,7 @@ type RAIDConfig struct { | |||
// The list of logical disks for hardware RAID, if rootDeviceHints isn't used, first volume is root volume. | |||
// You can set the value of this field to `[]` to clear all the hardware RAID configurations. | |||
// +optional | |||
HardwareRAIDVolumes []HardwareRAIDVolume `json:"hardwareRAIDVolumes"` | |||
HardwareRAIDVolumes []HardwareRAIDVolume `json:"hardwareRAIDVolumes,omitempty"` |
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.
This is currently the subject of discussion in #962. Let's separate it out from this PR.
@@ -290,7 +290,7 @@ type RAIDConfig struct { | |||
// Software RAID will always be deleted. | |||
// +kubebuilder:validation:MaxItems=2 | |||
// +optional | |||
SoftwareRAIDVolumes []SoftwareRAIDVolume `json:"softwareRAIDVolumes"` | |||
SoftwareRAIDVolumes []SoftwareRAIDVolume `json:"softwareRAIDVolumes,omitempty"` |
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.
ditto
Not until v3 by the looks of it. I don't know how feasible that update is right now. |
@kplimack: PR needs rebase. 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. |
Yep, v3 is what we need probably. Kubebuilder book has migration instructions from v2 to v3. By quickly looking at the doc, it seems that migration should be straightforward. But I'm not sure if we want it now. |
/hold |
@kplimack: The following tests failed, say
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/test-infra repository. I understand the commands that are listed here. |
/hold cancel |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
Stale issues close after 30d of inactivity. Reopen the issue with /close |
@metal3-io-bot: Closed this PR. 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 kubernetes/test-infra repository. |
The webhook for CRD conversion of the metal3 resources was still formatted for
apiextensions.k8s.io/v1beta1
, while we were expecting it inapiextensions.k8s.io/v1
. When enabling the webhooks for BMO, this error arose:Signed-off-by: Jake Plimack jplimack@tesla.com