v1alpha2

package
v0.9.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
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

func SetupLinodeClusterTemplateWebhookWithManager(mgr ctrl.Manager) error

SetupLinodeClusterTemplateWebhookWithManager registers the webhook for LinodeClusterTemplate in the manager.

func SetupLinodeClusterWebhookWithManager

func SetupLinodeClusterWebhookWithManager(mgr ctrl.Manager) error

SetupLinodeClusterWebhookWithManager registers the webhook for LinodeCluster in the manager.

func SetupLinodeFirewallWebhookWithManager

func SetupLinodeFirewallWebhookWithManager(mgr ctrl.Manager) error

SetupLinodeFirewallWebhookWithManager registers the webhook for LinodeFirewall in the manager.

func SetupLinodeMachineTemplateWebhookWithManager

func SetupLinodeMachineTemplateWebhookWithManager(mgr ctrl.Manager) error

SetupLinodeMachineTemplateWebhookWithManager registers the webhook for LinodeMachineTemplate in the manager.

func SetupLinodeMachineWebhookWithManager

func SetupLinodeMachineWebhookWithManager(mgr ctrl.Manager) error

SetupLinodeMachineWebhookWithManager registers the webhook for LinodeMachine in the manager.

func SetupLinodeObjectStorageBucketWebhookWithManager

func SetupLinodeObjectStorageBucketWebhookWithManager(mgr ctrl.Manager) error

SetupLinodeObjectStorageBucketWebhookWithManager registers the webhook for LinodeObjectStorageBucket in the manager.

func SetupLinodeObjectStorageKeyWebhookWithManager

func SetupLinodeObjectStorageKeyWebhookWithManager(mgr ctrl.Manager) error

SetupLinodeObjectStorageKeyWebhookWithManager registers the webhook for LinodeObjectStorageKey in the manager.

func SetupLinodePlacementGroupWebhookWithManager

func SetupLinodePlacementGroupWebhookWithManager(mgr ctrl.Manager) error

SetupLinodePlacementGroupWebhookWithManager registers the webhook for LinodePlacementGroup in the manager.

func SetupLinodeVPCWebhookWithManager

func SetupLinodeVPCWebhookWithManager(mgr ctrl.Manager) error

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

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

func (*LinodeFirewallCustomValidator) ValidateDelete

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

type LinodeObjectStorageBucketCustomValidator struct {
	Client client.Client
}

LinodeObjectStorageBucketCustomValidator struct is responsible for validating the LinodeObjectStorageBucket resource

func (*LinodeObjectStorageBucketCustomValidator) ValidateCreate

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

func (*LinodeObjectStorageBucketCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type LinodeObjectStorageBucket.

func (*LinodeObjectStorageBucketCustomValidator) ValidateUpdate

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

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

func (*LinodeObjectStorageKeyCustomValidator) ValidateDelete

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

func (*LinodeObjectStorageKeyDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the type LinodeObjectStorageKey.

type LinodePlacementGroupCustomValidator

type LinodePlacementGroupCustomValidator struct {
	Client client.Client
}

LinodePlacementGroupCustomValidator struct is responsible for validating the LinodePlacementGroup resource

func (*LinodePlacementGroupCustomValidator) ValidateCreate

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

func (*LinodePlacementGroupCustomValidator) ValidateDelete

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.

Jump to

Keyboard shortcuts

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