Documentation
¶
Index ¶
- Constants
- func SetupIPWebhookWithManager(mgr ctrl.Manager) error
- func SetupNetworkCounterWebhookWithManager(mgr ctrl.Manager) error
- func SetupNetworkWebhookWithManager(mgr ctrl.Manager) error
- func SetupSubnetWebhookWithManager(mgr ctrl.Manager) error
- type IPCustomDefaulter
- type IPCustomValidator
- func (v *IPCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *IPCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *IPCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type NetworkCounterCustomDefaulter
- type NetworkCounterCustomValidator
- func (v *NetworkCounterCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NetworkCounterCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NetworkCounterCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type NetworkCustomDefaulter
- type NetworkCustomValidator
- func (v *NetworkCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NetworkCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NetworkCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type StringSet
- type SubnetCustomDefaulter
- type SubnetCustomValidator
- func (v *SubnetCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SubnetCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SubnetCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
const ( FinishedChildSubnetToSubnetIndexKey = "finishedChildSubnetToSubnet" FinishedChildIPToSubnetIndexKey = "finishedChildIPToSubnet" )
Variables ¶
This section is empty.
Functions ¶
func SetupIPWebhookWithManager ¶
SetupIPWebhookWithManager sets up and registers the webhook with the manager.
Types ¶
type IPCustomDefaulter ¶
type IPCustomDefaulter struct { }
IPCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind CronJob 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 IPCustomValidator ¶
IPCustomValidator struct is responsible for validating the IP 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 (*IPCustomValidator) ValidateCreate ¶
func (v *IPCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*IPCustomValidator) ValidateDelete ¶
func (v *IPCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*IPCustomValidator) ValidateUpdate ¶
func (v *IPCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type NetworkCounterCustomDefaulter ¶
type NetworkCounterCustomDefaulter struct { }
NetworkCounterCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind NetworkCounter 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 NetworkCounterCustomValidator ¶
type NetworkCounterCustomValidator struct { }
NetworkCounterCustomValidator struct is responsible for validating the NetworkCounter 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 (*NetworkCounterCustomValidator) ValidateCreate ¶
func (v *NetworkCounterCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*NetworkCounterCustomValidator) ValidateDelete ¶
func (v *NetworkCounterCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*NetworkCounterCustomValidator) ValidateUpdate ¶
func (v *NetworkCounterCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type NetworkCustomDefaulter ¶
type NetworkCustomDefaulter struct { }
NetworkCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Network 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 NetworkCustomValidator ¶
type NetworkCustomValidator struct { }
NetworkCustomValidator struct is responsible for validating the IP 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 (*NetworkCustomValidator) ValidateCreate ¶
func (v *NetworkCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*NetworkCustomValidator) ValidateDelete ¶
func (v *NetworkCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*NetworkCustomValidator) ValidateUpdate ¶
func (v *NetworkCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type SubnetCustomDefaulter ¶
type SubnetCustomDefaulter struct { }
SubnetCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Subnet 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 SubnetCustomValidator ¶
SubnetCustomValidator struct is responsible for validating the Subnet 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 (*SubnetCustomValidator) ValidateCreate ¶
func (v *SubnetCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*SubnetCustomValidator) ValidateDelete ¶
func (v *SubnetCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*SubnetCustomValidator) ValidateUpdate ¶
func (v *SubnetCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type