Skip to content

Remove the deprecated webhook interface usage of the controller runtime #2186

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

Open
yanmxa opened this issue Apr 17, 2025 · 0 comments
Open

Comments

@yanmxa
Copy link
Member

yanmxa commented Apr 17, 2025

The controller runtime removed the deprecated webhook interface in v0.20.x, but this repository still appears to contain these interfaces. It is recommended to update the controller runtime package and removing these interfaces to avoid the following error:

Error: 78.98 /go/pkg/mod/github.com/stolostron/multiclusterhub-operator@v0.0.0-20250415191038-1e368a726d8b/api/v1/multiclusterhub_webhook.go:102:15: undefined: webhook.Defaulter
Error: 78.98 /go/pkg/mod/github.com/stolostron/multiclusterhub-operator@v0.0.0-20250415191038-1e368a726d8b/api/v1/multiclusterhub_webhook.go:111:15: undefined: webhook.Validator

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant