Skip to content

Remove deprecated webhook.Defaulter/Validator interface assertions#403

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
stuggi:remove-webhook-interface-assertions
Jul 17, 2026
Merged

Remove deprecated webhook.Defaulter/Validator interface assertions#403
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
stuggi:remove-webhook-interface-assertions

Conversation

@stuggi

@stuggi stuggi commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

These compile-time assertions reference webhook.Defaulter and webhook.Validator interfaces that are removed in controller-runtime v0.21 (OCP 4.20). The assertions are dead code — webhook registration already uses CustomDefaulter/CustomValidator in internal/webhook/.

Removing them makes the API module forward-compatible with CR v0.21 so that consumers (like openstack-operator) can bump controller-runtime without needing replace directives for this operator.

Jira: OSPRH-32989

These compile-time assertions reference webhook.Defaulter and
webhook.Validator interfaces that are removed in controller-runtime
v0.21 (OCP 4.20). The assertions are dead code — webhook registration
already uses CustomDefaulter/CustomValidator in internal/webhook/.

Removing them makes the API module forward-compatible with CR v0.21
so that consumers (like openstack-operator) can bump controller-runtime
without needing replace directives for this operator.

Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@openshift-ci
openshift-ci Bot requested review from abays and dprince July 16, 2026 18:23

@SeanMooney SeanMooney left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/lgtm same as the nova change

@abays abays left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@stuggi

stuggi commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

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://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/07ced9b5487c4aeda59726d9b3d7ca15

✔️ openstack-meta-content-provider-master SUCCESS in 50m 59s
watcher-operator-validation-master NODE_FAILURE Node(set) request 099-0000145520 failed in 0s
✔️ openstack-meta-content-provider-epoxy SUCCESS in 2h 34m 34s
✔️ watcher-operator-validation-epoxy SUCCESS in 2h 02m 22s
✔️ watcher-operator-validation-epoxy-ocp4-18 SUCCESS in 2h 11m 45s
✔️ noop SUCCESS in 0s
watcher-operator-kuttl NODE_FAILURE Node(set) request 099-0000145521 failed in 0s

@stuggi

stuggi commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@abays abays left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays

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

@openshift-merge-bot
openshift-merge-bot Bot merged commit caf5ae9 into openstack-k8s-operators:main Jul 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants