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

⚠ admission.Decoder is now an interface #2736

Merged
merged 1 commit into from Mar 27, 2024

Commits on Mar 27, 2024

  1. admission.Decoder is now an interface

    The current implementation allows to create a decoder without
    a scheme/codecs by just referencing the struct `&admission.Decoder{}`
    given that codecs is private. The field was filled in before with the
    inject package which has been removed. This change retains the Decoder
    definition and makes it an interface, `admission.NewDecoder(scheme)` is
    now the only way to instantiate our default decoder.
    
    Signed-off-by: Vince Prignano <vincepri@redhat.com>
    vincepri committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    04c37a9 View commit details
    Browse the repository at this point in the history