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

Controller runtime update #124

Merged
merged 6 commits into from
Feb 14, 2024

Conversation

bshephar
Copy link
Contributor

@bshephar bshephar commented Feb 6, 2024

This changes updates the controller-runtime and fixes the initialisation of objects to comply with the new controller-runtime standards. Namely:

We fix the function signatures of the webhook to include admissions.Warnings:
kubernetes-sigs/controller-runtime@8770b4d

We fix the initialisation of the manager to declare the webhook following the new schema:
kubernetes-sigs/controller-runtime@91cdd8c

We fix the Watches function to comply with the new signature definition:
kubernetes-sigs/controller-runtime@dc62ed5

Add context to EventHandlers:
kubernetes-sigs/controller-runtime@2464a9d

@openshift-ci openshift-ci bot requested review from lewisdenny and viroel February 6, 2024 05:59
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/0200bde7fbb74a61bffe6a63cb780b01

openstack-baremetal-operator-content-provider FAILURE in 5m 58s
⚠️ openstack-baremetal-operator-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-baremetal-operator-content-provider

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/01136dbecd7d4920b41576749884edb7

openstack-baremetal-operator-content-provider FAILURE in 5m 57s
⚠️ openstack-baremetal-operator-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-baremetal-operator-content-provider

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/fc19443fadb249248efe28b009ec09b2

openstack-baremetal-operator-content-provider FAILURE in 6m 00s
⚠️ openstack-baremetal-operator-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-baremetal-operator-content-provider

api/go.mod Outdated
k8s.io/api v0.26.13
k8s.io/apimachinery v0.26.13
sigs.k8s.io/controller-runtime v0.14.7
k8s.io/api v0.29.1
Copy link
Contributor

Choose a reason for hiding this comment

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

As commented on slack, we should not bump to a version beyond what the OCP version we're testing with supports.

Signed-off-by: Brendan Shephard <[email protected]>
This change updates the webhook functions to comply with the new
standard for controller-runtime.

Signed-off-by: Brendan Shephard <[email protected]>
This change updates the manager intialisation to comply with the new
controller-runtime schema.

Signed-off-by: Brendan Shephard <[email protected]>
This change fixes the Watches declarations to comply with the new
controller-runtime standards.

Signed-off-by: Brendan Shephard <[email protected]>
Signed-off-by: Brendan Shephard <[email protected]>
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/4a2254a1f2b6406e92950961875c277d

openstack-baremetal-operator-content-provider FAILURE in 6m 11s
⚠️ openstack-baremetal-operator-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-baremetal-operator-content-provider

Signed-off-by: Brendan Shephard <[email protected]>
Copy link
Contributor

@gibizer gibizer left a comment

Choose a reason for hiding this comment

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

looks goo

Copy link
Contributor

openshift-ci bot commented Feb 14, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bshephar, gibizer
Once this PR has been reviewed and has the lgtm label, please assign hjensas 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

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/5223d2905df041edb32e86fd90fc7222

openstack-baremetal-operator-content-provider FAILURE in 6m 57s
⚠️ openstack-baremetal-operator-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-baremetal-operator-content-provider

Copy link
Contributor

openshift-ci bot commented Feb 14, 2024

@bshephar: The following test 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/openstack-baremetal-operator-build-deploy 00b391c link false /test openstack-baremetal-operator-build-deploy

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.

@abays abays merged commit 80b4f87 into openstack-k8s-operators:main Feb 14, 2024
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants