Documentation
¶
Index ¶
- func SetupInferenceGraphWebhookWithManager(mgr ctrl.Manager) error
- type InferenceGraphCustomDefaulter
- type InferenceGraphCustomValidator
- func (v *InferenceGraphCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *InferenceGraphCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *InferenceGraphCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupInferenceGraphWebhookWithManager ¶
SetupInferenceGraphWebhookWithManager registers the webhook for InferenceGraph in the manager.
Types ¶
type InferenceGraphCustomDefaulter ¶
type InferenceGraphCustomDefaulter struct {
// contains filtered or unexported fields
}
InferenceGraphCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind InferenceGraph when those are created or updated.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.
type InferenceGraphCustomValidator ¶
type InferenceGraphCustomValidator struct{}
InferenceGraphCustomValidator struct is responsible for validating the InferenceGraph resource when it is created, updated, or deleted.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.
func (*InferenceGraphCustomValidator) ValidateCreate ¶
func (v *InferenceGraphCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type InferenceGraph.
func (*InferenceGraphCustomValidator) ValidateDelete ¶
func (v *InferenceGraphCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type InferenceGraph.
func (*InferenceGraphCustomValidator) ValidateUpdate ¶
func (v *InferenceGraphCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type InferenceGraph.