Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKsvcValidator ¶
func NewNimAccountValidator ¶
func NewNimAccountValidator(client client.Client) admission.CustomValidator
Types ¶
type IsvcValidator ¶
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) {
Click to show internal directories.
Click to hide internal directories.