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

Use webhook.CustomValidator instead of deprecated webhook.Validator. #2803

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbobrovskyi
Copy link

@mbobrovskyi mbobrovskyi commented Jan 22, 2025

Why are these changes needed?

Currently we are using webhook.Validator which was deprecated and removed on controller-runtime 1.20. As suggested on controller-runtime https://github.com/kubernetes-sigs/controller-runtime/blob/release-0.17/pkg/webhook/alias.go#L31 we should use webhook.CustomValidator.

Related issue number

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@mbobrovskyi mbobrovskyi force-pushed the cleanup/use-custom-webhook-validator branch from d70b3e4 to d3ff906 Compare January 23, 2025 03:45
@mbobrovskyi
Copy link
Author

cc @andrewsykim @kevin85421

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

Successfully merging this pull request may close these issues.

1 participant