Skip to content

Conversation

stephenfin
Copy link

Moves webhooks from api to pkg/webhooks making only mechanical code changes except for the removal of the defaulting webhooks, because they weren't used. This results in there now being no mutating webhook configured.

NOTE(stephenfin): There were a lot of conflicts here. These were mostly mitigated by faking the addition of v1alpha8, which moved the webhooks to the 'api/v1alpha8' package (commit 750b84d), followed by the subsequent rename of this package to v1beta1 (commit e9fb53c), for the webhook files and tests. This still resulted in some merge conflicts due the v1alpha8 changes such as 564b6bd and 4368c4f (which we obviously don't want to include here) but it made the backport much simpler.

(cherry picked from commit 750b84d)

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 14, 2025
mandre and others added 4 commits August 6, 2025 12:13
The CI script should not show errors for expected failures, such as when
checking if a resource exists. This commit redirects the standard error
to standard output, which is in turn redirected to `/dev/null`.
It should start with lowercase, and should not include the redundant `It`.
The previous one was deleted by mistake, use a newer one that is
available.
@mandre mandre force-pushed the webhooks-0.9 branch 2 times, most recently from ffd5751 to b41a83a Compare August 6, 2025 13:36
Moves webhooks from api to pkg/webhooks making only mechanical code
changes except for the removal of the defaulting webhooks, because they
weren't used. This results in there now being no mutating webhook
configured.

NOTE(stephenfin): There were a lot of conflicts here. These were mostly
mitigated by faking the addition of v1alpha8, which moved the webhooks
to the 'api/v1alpha8' package (commit 750b84d), followed by the
subsequent rename of this package to v1beta1 (commit e9fb53c), for
the webhook files and tests. This still resulted in some merge conflicts
due the v1alpha8 changes such as 564b6bd and 4368c4f (which we
obviously don't want to include here) but it made the backport much
simpler.

NOTE(stephenfin): We also include commit
30ba121 which was a follow-up that
fixed the CRD generation broken in this commit.

Signed-off-by: Stephen Finucane <[email protected]>
(cherry picked from commit 750b84d)
The conversion webhook fails to register without this.

Conflicts:
    api/v1alpha7/conversion.go

NOTE(stephenfin): Conflicts are due to absence of v1beta1 API on this
branch. We also need to `s/v1beta1/v1alpha7/` on the other files to
handle this.

(cherry picked from commit cb09d5f)
Copy link
Member

@mandre mandre left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/hold

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2025
Copy link

openshift-ci bot commented Aug 21, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mandre

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

@mandre
Copy link
Member

mandre commented Aug 21, 2025

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 21, 2025
@mandre
Copy link
Member

mandre commented Aug 21, 2025

This should be good to go. The upstream patch at kubernetes-sigs#2612 passes CI on the release-0.9 branch, however the branch is unmaintained now and we can't reasonably expect the maintainers to merge the patch upstream.

@mandre mandre merged commit 61c49ec into openshift:release-0.9 Aug 21, 2025
1 check was pending
@mandre mandre deleted the webhooks-0.9 branch August 26, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants