Skip to content

Remove deprecated webhook.Defaulter/Validator interface assertions#467

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#467
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

@openshift-ci
openshift-ci Bot requested review from Valkyrie00 and lpiwowar July 16, 2026 18:19
@stuggi
stuggi requested a review from abays July 16, 2026 18:33
@stuggi
stuggi force-pushed the remove-webhook-interface-assertions branch from d9c0ed8 to 85a7680 Compare July 16, 2026 18:35

@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/2b3e424c879a422f9e3815cb43eeaed5

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 52m 16s
✔️ test-operator-kuttl SUCCESS in 47m 24s
podified-multinode-edpm-deployment-crc-test-operator FAILURE in 2h 36m 19s

@stuggi

stuggi commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

recheck

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>
@stuggi
stuggi force-pushed the remove-webhook-interface-assertions branch from 85a7680 to 3d28cf8 Compare July 17, 2026 06:51
@openshift-ci openshift-ci Bot removed the lgtm label Jul 17, 2026
@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

@abays abays added the lgtm label Jul 17, 2026

@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

@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, stuggi

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

@stuggi

stuggi commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

podified-multinode-edpm-deployment-crc-test-operator is failing because of openstack-k8s-operators/install_yamls#1158 where we no longer have static pwd. therefore the admin password passed to the CR is not correct, like in :

2026-07-17 09:31:35.461810 | controller | TASK [test_operator : Print CR before applying msg={{ test_operator_cr }}] *****
2026-07-17 09:31:35.461816 | controller | Friday 17 July 2026  09:31:35 +0000 (0:00:00.030)       1:11:25.800 ***********
2026-07-17 09:31:35.461821 | controller | Friday 17 July 2026  09:31:35 +0000 (0:00:00.030)       1:11:25.799 ***********
2026-07-17 09:31:35.494641 | controller | ok: [localhost] =>
2026-07-17 09:31:35.494674 | controller |     msg:
2026-07-17 09:31:35.494680 | controller |       apiVersion: test.openstack.org/v1beta1
2026-07-17 09:31:35.494686 | controller |       kind: HorizonTest
2026-07-17 09:31:35.494692 | controller |       metadata:
2026-07-17 09:31:35.494697 | controller |         name: horizontest-tests-horizontest
2026-07-17 09:31:35.494702 | controller |         namespace: openstack
2026-07-17 09:31:35.494707 | controller |       spec:
2026-07-17 09:31:35.494711 | controller |         SELinuxLevel: s0:c478,c978
2026-07-17 09:31:35.494717 | controller |         adminPassword: '12345678'
2026-07-17 09:31:35.494721 | controller |         adminUsername: admin
2026-07-17 09:31:35.494726 | controller |         authUrl: https://keystone-public-openstack.apps-crc.testing
2026-07-17 09:31:35.494732 | controller |         containerImage: quay.io/podified-antelope-centos9/openstack-horizontest:current-podified
2026-07-17 09:31:35.494737 | controller |         dashboardUrl: https://horizon-openstack.apps-crc.testing/
2026-07-17 09:31:35.494742 | controller |         debug: false
2026-07-17 09:31:35.494747 | controller |         extraFlag: not pagination and test_users.py
2026-07-17 09:31:35.494752 | controller |         extraMounts:
2026-07-17 09:31:35.494757 | controller |         - extraVol:
2026-07-17 09:31:35.494762 | controller |           - extraVolType: Ceph
2026-07-17 09:31:35.494766 | controller |             mounts:
2026-07-17 09:31:35.494771 | controller |             - mountPath: /etc/ceph
2026-07-17 09:31:35.494776 | controller |               name: ceph
2026-07-17 09:31:35.494781 | controller |               readOnly: true
2026-07-17 09:31:35.494786 | controller |             propagation:
2026-07-17 09:31:35.494790 | controller |             - HorizonTest
2026-07-17 09:31:35.494795 | controller |             volumes:
2026-07-17 09:31:35.494800 | controller |             - name: ceph
2026-07-17 09:31:35.494805 | controller |               secret:
2026-07-17 09:31:35.494810 | controller |                 secretName: openstack-config-secret
2026-07-17 09:31:35.494815 | controller |           name: v1
2026-07-17 09:31:35.494819 | controller |           region: r1
2026-07-17 09:31:35.494824 | controller |         flavorName: m1.tiny
2026-07-17 09:31:35.494829 | controller |         horizonRepoBranch: master
2026-07-17 09:31:35.494834 | controller |         horizonTestDir: /var/lib/horizontest
2026-07-17 09:31:35.494845 | controller |         imageUrl: http://download.cirros-cloud.net/0.6.2/cirros-0.6.2-x86_64-disk.img
2026-07-17 09:31:35.494850 | controller |         logsDirectoryName: horizon
2026-07-17 09:31:35.494855 | controller |         password: horizontest
2026-07-17 09:31:35.494859 | controller |         privileged: true
2026-07-17 09:31:35.494864 | controller |         projectName: horizontest
2026-07-17 09:31:35.494869 | controller |         projectNameXpath: //*[@class="context-project"]//ancestor::ul
2026-07-17 09:31:35.494874 | controller |         projectTextXpath: .//*[@class="context-project"]
2026-07-17 09:31:35.494879 | controller |         repoUrl: https://review.opendev.org/openstack/horizon
2026-07-17 09:31:35.494884 | controller |         storageClass: local-storage
2026-07-17 09:31:35.494888 | controller |         user: horizontest
2026-07-17 09:31:35.494894 | controller |

@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/119d06e53b5b4667b09b7be1f1ebd650

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 04m 25s
✔️ test-operator-kuttl SUCCESS in 45m 37s
podified-multinode-edpm-deployment-crc-test-operator FAILURE in 2h 39m 47s

@stuggi

stuggi commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

this is not related to this change and test-operator-kuttl passed. will override the test to unblock the k8s bump work. Will follow up with a PR to ci-framework for the hard coded admin password there

@stuggi

stuggi commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

/override rdoproject.org/github-check

@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown

@stuggi: Overrode contexts on behalf of stuggi: rdoproject.org/github-check

Details

In response to this:

/override rdoproject.org/github-check

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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit a50e8b9 into openstack-k8s-operators:main Jul 17, 2026
8 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.

2 participants