Documentation
¶
Index ¶
- Variables
- func SetupLinodeClusterTemplateWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodeClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodeFirewallWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodeMachineTemplateWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodeMachineWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodeObjectStorageBucketWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodeObjectStorageKeyWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodePlacementGroupWebhookWithManager(mgr ctrl.Manager) error
- func SetupLinodeVPCWebhookWithManager(mgr ctrl.Manager) error
- type LinodeFirewallCustomValidator
- func (v *LinodeFirewallCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodeFirewallCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodeFirewallCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type LinodeObjectStorageBucketCustomValidator
- func (v *LinodeObjectStorageBucketCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodeObjectStorageBucketCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodeObjectStorageBucketCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type LinodeObjectStorageKeyCustomValidator
- func (v *LinodeObjectStorageKeyCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodeObjectStorageKeyCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodeObjectStorageKeyCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type LinodeObjectStorageKeyDefaulter
- type LinodePlacementGroupCustomValidator
- func (v *LinodePlacementGroupCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodePlacementGroupCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LinodePlacementGroupCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
var ( // The list of valid device slots that data device disks may attach to. // NOTE: sda is reserved for the OS device disk. LinodeMachineDevicePaths = []string{"sdb", "sdc", "sdd", "sde", "sdf", "sdg", "sdh"} // The maximum number of device disks allowed per [Configuration Profile per Linode's Instance]. // // [Configuration Profile per Linode's Instance]: https://www.linode.com/docs/api/linode-instances/#configuration-profile-view LinodeMachineMaxDisk = 8 // The maximum number of data device disks allowed in a Linode's Instance's configuration profile. // NOTE: The first device disk is reserved for the OS disk LinodeMachineMaxDataDisk = LinodeMachineMaxDisk - 1 )
var ( // The IPv4 ranges that are excluded from VPC Subnets: [Valid IPv4 Ranges for a Subnet] // // [Valid IPv4 Ranges for a Subnet]: https://www.linode.com/docs/products/networking/vpc/guides/subnets/#valid-ipv4-ranges LinodeVPCSubnetReserved = mustParseIPSet("192.168.128.0/17") )
Functions ¶
func SetupLinodeClusterTemplateWebhookWithManager ¶
SetupLinodeClusterTemplateWebhookWithManager registers the webhook for LinodeClusterTemplate in the manager.
func SetupLinodeClusterWebhookWithManager ¶
SetupLinodeClusterWebhookWithManager registers the webhook for LinodeCluster in the manager.
func SetupLinodeFirewallWebhookWithManager ¶
SetupLinodeFirewallWebhookWithManager registers the webhook for LinodeFirewall in the manager.
func SetupLinodeMachineTemplateWebhookWithManager ¶
SetupLinodeMachineTemplateWebhookWithManager registers the webhook for LinodeMachineTemplate in the manager.
func SetupLinodeMachineWebhookWithManager ¶
SetupLinodeMachineWebhookWithManager registers the webhook for LinodeMachine in the manager.
func SetupLinodeObjectStorageBucketWebhookWithManager ¶
SetupLinodeObjectStorageBucketWebhookWithManager registers the webhook for LinodeObjectStorageBucket in the manager.
func SetupLinodeObjectStorageKeyWebhookWithManager ¶
SetupLinodeObjectStorageKeyWebhookWithManager registers the webhook for LinodeObjectStorageKey in the manager.
func SetupLinodePlacementGroupWebhookWithManager ¶
SetupLinodePlacementGroupWebhookWithManager registers the webhook for LinodePlacementGroup in the manager.
func SetupLinodeVPCWebhookWithManager ¶
SetupLinodeVPCWebhookWithManager will setup the manager to manage the webhooks
Types ¶
type LinodeFirewallCustomValidator ¶
type LinodeFirewallCustomValidator struct { }
LinodeFirewallCustomValidator struct is responsible for validating the LinodeFirewall 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 (*LinodeFirewallCustomValidator) ValidateCreate ¶
func (v *LinodeFirewallCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type LinodeFirewall.
func (*LinodeFirewallCustomValidator) ValidateDelete ¶
func (v *LinodeFirewallCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type LinodeFirewall.
func (*LinodeFirewallCustomValidator) ValidateUpdate ¶
func (v *LinodeFirewallCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type LinodeFirewall.
type LinodeObjectStorageBucketCustomValidator ¶
LinodeObjectStorageBucketCustomValidator struct is responsible for validating the LinodeObjectStorageBucket resource
func (*LinodeObjectStorageBucketCustomValidator) ValidateCreate ¶
func (v *LinodeObjectStorageBucketCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type LinodeObjectStorageBucket.
func (*LinodeObjectStorageBucketCustomValidator) ValidateDelete ¶
func (v *LinodeObjectStorageBucketCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type LinodeObjectStorageBucket.
func (*LinodeObjectStorageBucketCustomValidator) ValidateUpdate ¶
func (v *LinodeObjectStorageBucketCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type LinodeObjectStorageBucket.
type LinodeObjectStorageKeyCustomValidator ¶
type LinodeObjectStorageKeyCustomValidator struct{}
LinodeObjectStorageKeyCustomValidator struct is responsible for validating the LinodeObjectStorageKey resource
func (*LinodeObjectStorageKeyCustomValidator) ValidateCreate ¶
func (v *LinodeObjectStorageKeyCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type LinodeObjectStorageKey.
func (*LinodeObjectStorageKeyCustomValidator) ValidateDelete ¶
func (v *LinodeObjectStorageKeyCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type LinodeObjectStorageKey.
func (*LinodeObjectStorageKeyCustomValidator) ValidateUpdate ¶
func (v *LinodeObjectStorageKeyCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type LinodeObjectStorageKey.
type LinodeObjectStorageKeyDefaulter ¶
type LinodeObjectStorageKeyDefaulter struct{}
LinodeObjectStorageKeyDefaulter struct is responsible for defaulting the LinodeObjectStorageKey resource
type LinodePlacementGroupCustomValidator ¶
LinodePlacementGroupCustomValidator struct is responsible for validating the LinodePlacementGroup resource
func (*LinodePlacementGroupCustomValidator) ValidateCreate ¶
func (v *LinodePlacementGroupCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type LinodePlacementGroup.
func (*LinodePlacementGroupCustomValidator) ValidateDelete ¶
func (v *LinodePlacementGroupCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type LinodePlacementGroup.
func (*LinodePlacementGroupCustomValidator) ValidateUpdate ¶
func (v *LinodePlacementGroupCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type LinodePlacementGroup.