镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Types don't implement controller-runtime's new defaulter and validator interfaces #475

Closed

Description

@mamachanko

controller-runtime has recently removed its deprecated webhook.Defaulter and webhook.Validator interfaces in favour of webhook.CustomValidator and webhook.CustomDefaulter.

When using the APIs of github.com/servicebinding/runtime in a project that is using a recent controller-runtime, then it does not compile.

../../../go/pkg/mod/github.com/servicebinding/runtime@v1.0.0/apis/v1/clusterworkloadresourcemapping_webhook.go:36:15: undefined: webhook.Defaulter
../../../go/pkg/mod/github.com/servicebinding/runtime@v1.0.0/apis/v1/clusterworkloadresourcemapping_webhook.go:78:15: undefined: webhook.Validator
../../../go/pkg/mod/github.com/servicebinding/runtime@v1.0.0/apis/v1/servicebinding_webhook.go:37:15: undefined: webhook.Defaulter
../../../go/pkg/mod/github.com/servicebinding/runtime@v1.0.0/apis/v1/servicebinding_webhook.go:48:15: undefined: webhook.Validator

Activity

  1. scothis commented on Apr 1, 2025

    @scothis
    Member

    It should be possible to delete references to the interfaces that no longer exist, while preserving the methods. The runtime behavior should still work as is. Switching the method to the new interface is also possible, but more work.

    Are you interested in implementing this @mamachanko?

  2. mamachanko commented on Apr 8, 2025

    @mamachanko
    ContributorAuthor

    It should be possible to delete references to the interfaces that no longer exist, while preserving the methods. The runtime behavior should still work as is. Switching the method to the new interface is also possible, but more work.

    Are you interested in implementing this @mamachanko?

    I hope to get around to it asap, but I'm occupied rn.

  3. scothis commented on Sep 18, 2025

    @scothis
    Member

    Resolved in #488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions