v1alpha1

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FinishedChildSubnetToSubnetIndexKey = "finishedChildSubnetToSubnet"
	FinishedChildIPToSubnetIndexKey     = "finishedChildIPToSubnet"
)

Variables

This section is empty.

Functions

func SetupIPWebhookWithManager

func SetupIPWebhookWithManager(mgr ctrl.Manager) error

SetupIPWebhookWithManager sets up and registers the webhook with the manager.

func SetupNetworkCounterWebhookWithManager

func SetupNetworkCounterWebhookWithManager(mgr ctrl.Manager) error

func SetupNetworkWebhookWithManager

func SetupNetworkWebhookWithManager(mgr ctrl.Manager) error

func SetupSubnetWebhookWithManager

func SetupSubnetWebhookWithManager(mgr ctrl.Manager) error

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.

func (*IPCustomDefaulter) Default

func (d *IPCustomDefaulter) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind IP

type IPCustomValidator

type IPCustomValidator struct {
	client.Client
}

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.

func (*NetworkCounterCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind NetworkCounter

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

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*NetworkCounterCustomValidator) ValidateDelete

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.

func (*NetworkCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Network

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

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*NetworkCustomValidator) ValidateDelete

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 StringSet

type StringSet map[string]struct{}

func (StringSet) Put

func (s StringSet) Put(item string) error

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.

func (*SubnetCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Subnet

type SubnetCustomValidator

type SubnetCustomValidator struct {
	client.Client
}

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

Jump to

Keyboard shortcuts

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