webhook

package
v0.0.0-...-9d6de07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKsvcValidator

func NewKsvcValidator(client client.Client) *ksvcValidator

func NewNimAccountValidator

func NewNimAccountValidator(client client.Client) admission.CustomValidator

Types

type IsvcValidator

type IsvcValidator struct {
	Client  client.Client
	Decoder *admission.Decoder
}

func NewIsvcValidator

func NewIsvcValidator(client client.Client, decoder *admission.Decoder) *IsvcValidator

NewIsvcValidator For tests purposes

func (*IsvcValidator) Handle

Handle implements admission.Validator so a webhook will be registered for the type serving.kserve.io.inferenceServices This webhook will filter out the protected namespaces preventing the user to create the InferenceService in those namespaces which are: The Istio control plane namespace, Application namespace and Serving namespace func (is *isvcValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error) {

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL