v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Overview

+groupName=instance.linode.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: instance.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Instance

type Instance struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              InstanceSpec   `json:"spec,omitempty"`
	Status            InstanceStatus `json:"status,omitempty"`
}

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instance.

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Instance) DeepCopyObject

func (in *Instance) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Instance) SetupWebhookWithManager

func (r *Instance) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Instance) ValidateCreate

func (r *Instance) ValidateCreate() error

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

func (*Instance) ValidateDelete

func (r *Instance) ValidateDelete() error

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

func (*Instance) ValidateUpdate

func (r *Instance) ValidateUpdate(old runtime.Object) error

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

type InstanceList

type InstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Instance CRD objects
	Items []Instance `json:"items,omitempty"`
}

InstanceList is a list of Instances

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceList.

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InstanceList) DeepCopyObject

func (in *InstanceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InstanceSpec

type InstanceSpec struct {
	State *InstanceSpecResource `json:"state,omitempty" tf:"-"`

	Resource InstanceSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*InstanceSpec) DeepCopy

func (in *InstanceSpec) DeepCopy() *InstanceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpec.

func (*InstanceSpec) DeepCopyInto

func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecAlerts

type InstanceSpecAlerts struct {
	// The percentage of CPU usage required to trigger an alert. If the average CPU usage over two hours exceeds this value, we'll send you an alert. If this is set to 0, the alert is disabled.
	// +optional
	Cpu *int64 `json:"cpu,omitempty" tf:"cpu"`
	// The amount of disk IO operation per second required to trigger an alert. If the average disk IO over two hours exceeds this value, we'll send you an alert. If set to 0, this alert is disabled.
	// +optional
	Io *int64 `json:"io,omitempty" tf:"io"`
	// The amount of incoming traffic, in Mbit/s, required to trigger an alert. If the average incoming traffic over two hours exceeds this value, we'll send you an alert. If this is set to 0 (zero), the alert is disabled.
	// +optional
	NetworkIn *int64 `json:"networkIn,omitempty" tf:"network_in"`
	// The amount of outbound traffic, in Mbit/s, required to trigger an alert. If the average outbound traffic over two hours exceeds this value, we'll send you an alert. If this is set to 0 (zero), the alert is disabled.
	// +optional
	NetworkOut *int64 `json:"networkOut,omitempty" tf:"network_out"`
	// The percentage of network transfer that may be used before an alert is triggered. When this value is exceeded, we'll alert you. If this is set to 0 (zero), the alert is disabled.
	// +optional
	TransferQuota *int64 `json:"transferQuota,omitempty" tf:"transfer_quota"`
}

func (*InstanceSpecAlerts) DeepCopy

func (in *InstanceSpecAlerts) DeepCopy() *InstanceSpecAlerts

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecAlerts.

func (*InstanceSpecAlerts) DeepCopyInto

func (in *InstanceSpecAlerts) DeepCopyInto(out *InstanceSpecAlerts)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecAlertsCodec

type InstanceSpecAlertsCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecAlertsCodec) Decode

func (InstanceSpecAlertsCodec) Encode

func (InstanceSpecAlertsCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (InstanceSpecAlertsCodec) IsEmpty

type InstanceSpecBackups

type InstanceSpecBackups struct {
	// If this Linode has the Backup service enabled.
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// +optional
	Schedule []InstanceSpecBackupsSchedule `json:"schedule,omitempty" tf:"schedule"`
}

func (*InstanceSpecBackups) DeepCopy

func (in *InstanceSpecBackups) DeepCopy() *InstanceSpecBackups

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecBackups.

func (*InstanceSpecBackups) DeepCopyInto

func (in *InstanceSpecBackups) DeepCopyInto(out *InstanceSpecBackups)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecBackupsSchedule

type InstanceSpecBackupsSchedule struct {
	// The day ('Sunday'-'Saturday') of the week that your Linode's weekly Backup is taken. If not set manually, a day will be chosen for you. Backups are taken every day, but backups taken on this day are preferred when selecting backups to retain for a longer period.  If not set manually, then when backups are initially enabled, this may come back as 'Scheduling' until the day is automatically selected.
	// +optional
	Day *string `json:"day,omitempty" tf:"day"`
	// The window ('W0'-'W22') in which your backups will be taken, in UTC. A backups window is a two-hour span of time in which the backup may occur. For example, 'W10' indicates that your backups should be taken between 10:00 and 12:00. If you do not choose a backup window, one will be selected for you automatically.  If not set manually, when backups are initially enabled this may come back as Scheduling until the window is automatically selected.
	// +optional
	Window *string `json:"window,omitempty" tf:"window"`
}

func (*InstanceSpecBackupsSchedule) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecBackupsSchedule.

func (*InstanceSpecBackupsSchedule) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfig

type InstanceSpecConfig struct {
	// Optional field for arbitrary User comments on this Config.
	// +optional
	Comments *string `json:"comments,omitempty" tf:"comments"`
	// Device sda-sdh can be either a Disk or Volume identified by disk_label or volume_id. Only one type per slot allowed.
	// +optional
	Devices *InstanceSpecConfigDevices `json:"devices,omitempty" tf:"devices"`
	// Helpers enabled when booting to this Linode Config.
	// +optional
	Helpers *InstanceSpecConfigHelpers `json:"helpers,omitempty" tf:"helpers"`
	// An array of Network Interfaces for this Linode’s Configuration Profile.
	// +optional
	Interface []InstanceSpecConfigInterface `json:"interface,omitempty" tf:"interface"`
	// A Kernel ID to boot a Linode with. Default is based on image choice. (examples: linode/latest-64bit, linode/grub2, linode/direct-disk)
	// +optional
	Kernel *string `json:"kernel,omitempty" tf:"kernel"`
	// The Config's label for display purposes.  Also used by `boot_config_label`.
	Label *string `json:"label" tf:"label"`
	// Defaults to the total RAM of the Linode
	// +optional
	MemoryLimit *int64 `json:"memoryLimit,omitempty" tf:"memory_limit"`
	// The root device to boot. The corresponding disk must be attached.
	// +optional
	RootDevice *string `json:"rootDevice,omitempty" tf:"root_device"`
	// Defines the state of your Linode after booting. Defaults to default.
	// +optional
	RunLevel *string `json:"runLevel,omitempty" tf:"run_level"`
	// Controls the virtualization mode. Defaults to paravirt.
	// +optional
	VirtMode *string `json:"virtMode,omitempty" tf:"virt_mode"`
}

func (*InstanceSpecConfig) DeepCopy

func (in *InstanceSpecConfig) DeepCopy() *InstanceSpecConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfig.

func (*InstanceSpecConfig) DeepCopyInto

func (in *InstanceSpecConfig) DeepCopyInto(out *InstanceSpecConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevices

type InstanceSpecConfigDevices struct {
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sda *InstanceSpecConfigDevicesSda `json:"sda,omitempty" tf:"sda"`
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sdb *InstanceSpecConfigDevicesSdb `json:"sdb,omitempty" tf:"sdb"`
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sdc *InstanceSpecConfigDevicesSdc `json:"sdc,omitempty" tf:"sdc"`
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sdd *InstanceSpecConfigDevicesSdd `json:"sdd,omitempty" tf:"sdd"`
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sde *InstanceSpecConfigDevicesSde `json:"sde,omitempty" tf:"sde"`
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sdf *InstanceSpecConfigDevicesSdf `json:"sdf,omitempty" tf:"sdf"`
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sdg *InstanceSpecConfigDevicesSdg `json:"sdg,omitempty" tf:"sdg"`
	// Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
	// +optional
	Sdh *InstanceSpecConfigDevicesSdh `json:"sdh,omitempty" tf:"sdh"`
}

func (*InstanceSpecConfigDevices) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevices.

func (*InstanceSpecConfigDevices) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesCodec

type InstanceSpecConfigDevicesCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesCodec) Decode

func (InstanceSpecConfigDevicesCodec) Encode

func (InstanceSpecConfigDevicesCodec) IsEmpty

type InstanceSpecConfigDevicesSda

type InstanceSpecConfigDevicesSda struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSda) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSda.

func (*InstanceSpecConfigDevicesSda) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSdaCodec

type InstanceSpecConfigDevicesSdaCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSdaCodec) Decode

func (InstanceSpecConfigDevicesSdaCodec) Encode

func (InstanceSpecConfigDevicesSdaCodec) IsEmpty

type InstanceSpecConfigDevicesSdb

type InstanceSpecConfigDevicesSdb struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSdb) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSdb.

func (*InstanceSpecConfigDevicesSdb) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSdbCodec

type InstanceSpecConfigDevicesSdbCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSdbCodec) Decode

func (InstanceSpecConfigDevicesSdbCodec) Encode

func (InstanceSpecConfigDevicesSdbCodec) IsEmpty

type InstanceSpecConfigDevicesSdc

type InstanceSpecConfigDevicesSdc struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSdc) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSdc.

func (*InstanceSpecConfigDevicesSdc) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSdcCodec

type InstanceSpecConfigDevicesSdcCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSdcCodec) Decode

func (InstanceSpecConfigDevicesSdcCodec) Encode

func (InstanceSpecConfigDevicesSdcCodec) IsEmpty

type InstanceSpecConfigDevicesSdd

type InstanceSpecConfigDevicesSdd struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSdd) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSdd.

func (*InstanceSpecConfigDevicesSdd) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSddCodec

type InstanceSpecConfigDevicesSddCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSddCodec) Decode

func (InstanceSpecConfigDevicesSddCodec) Encode

func (InstanceSpecConfigDevicesSddCodec) IsEmpty

type InstanceSpecConfigDevicesSde

type InstanceSpecConfigDevicesSde struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSde) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSde.

func (*InstanceSpecConfigDevicesSde) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSdeCodec

type InstanceSpecConfigDevicesSdeCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSdeCodec) Decode

func (InstanceSpecConfigDevicesSdeCodec) Encode

func (InstanceSpecConfigDevicesSdeCodec) IsEmpty

type InstanceSpecConfigDevicesSdf

type InstanceSpecConfigDevicesSdf struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSdf) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSdf.

func (*InstanceSpecConfigDevicesSdf) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSdfCodec

type InstanceSpecConfigDevicesSdfCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSdfCodec) Decode

func (InstanceSpecConfigDevicesSdfCodec) Encode

func (InstanceSpecConfigDevicesSdfCodec) IsEmpty

type InstanceSpecConfigDevicesSdg

type InstanceSpecConfigDevicesSdg struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSdg) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSdg.

func (*InstanceSpecConfigDevicesSdg) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSdgCodec

type InstanceSpecConfigDevicesSdgCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSdgCodec) Decode

func (InstanceSpecConfigDevicesSdgCodec) Encode

func (InstanceSpecConfigDevicesSdgCodec) IsEmpty

type InstanceSpecConfigDevicesSdh

type InstanceSpecConfigDevicesSdh struct {
	// The Disk ID to map to this disk slot
	// +optional
	DiskID *int64 `json:"diskID,omitempty" tf:"disk_id"`
	// The `label` of the `disk` to map to this `device` slot.
	// +optional
	DiskLabel *string `json:"diskLabel,omitempty" tf:"disk_label"`
	// The Block Storage volume ID to map to this disk slot
	// +optional
	VolumeID *int64 `json:"volumeID,omitempty" tf:"volume_id"`
}

func (*InstanceSpecConfigDevicesSdh) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigDevicesSdh.

func (*InstanceSpecConfigDevicesSdh) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigDevicesSdhCodec

type InstanceSpecConfigDevicesSdhCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigDevicesSdhCodec) Decode

func (InstanceSpecConfigDevicesSdhCodec) Encode

func (InstanceSpecConfigDevicesSdhCodec) IsEmpty

type InstanceSpecConfigHelpers

type InstanceSpecConfigHelpers struct {
	// Populates the /dev directory early during boot without udev. Defaults to false.
	// +optional
	DevtmpfsAutomount *bool `json:"devtmpfsAutomount,omitempty" tf:"devtmpfs_automount"`
	// Controls the behavior of the Linode Config's Distribution Helper setting.
	// +optional
	Distro *bool `json:"distro,omitempty" tf:"distro"`
	// Creates a modules dependency file for the Kernel you run.
	// +optional
	ModulesDep *bool `json:"modulesDep,omitempty" tf:"modules_dep"`
	// Controls the behavior of the Linode Config's Network Helper setting, used to automatically configure additional IP addresses assigned to this instance.
	// +optional
	Network *bool `json:"network,omitempty" tf:"network"`
	// Disables updatedb cron job to avoid disk thrashing.
	// +optional
	UpdatedbDisabled *bool `json:"updatedbDisabled,omitempty" tf:"updatedb_disabled"`
}

func (*InstanceSpecConfigHelpers) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigHelpers.

func (*InstanceSpecConfigHelpers) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecConfigHelpersCodec

type InstanceSpecConfigHelpersCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecConfigHelpersCodec) Decode

func (InstanceSpecConfigHelpersCodec) Encode

func (InstanceSpecConfigHelpersCodec) IsEmpty

type InstanceSpecConfigInterface

type InstanceSpecConfigInterface struct {
	// The IPAM Address of this interface.
	// +optional
	IpamAddress *string `json:"ipamAddress,omitempty" tf:"ipam_address"`
	// The unique label of this interface.
	// +optional
	Label *string `json:"label,omitempty" tf:"label"`
	// The purpose of this interface.
	// +optional
	Purpose *string `json:"purpose,omitempty" tf:"purpose"`
}

func (*InstanceSpecConfigInterface) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecConfigInterface.

func (*InstanceSpecConfigInterface) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecDisk

type InstanceSpecDisk struct {
	// A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if 'image' is provided.
	// +optional
	AuthorizedKeys []string `json:"authorizedKeys,omitempty" tf:"authorized_keys"`
	// A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the `root` user's `~/.ssh/authorized_keys` file automatically. Only accepted if 'image' is provided.
	// +optional
	AuthorizedUsers []string `json:"authorizedUsers,omitempty" tf:"authorized_users"`
	// The Disk filesystem can be one of: raw, swap, ext3, ext4, initrd (max 32mb)
	// +optional
	Filesystem *string `json:"filesystem,omitempty" tf:"filesystem"`
	// The ID of the Disk (for use in Linode Image resources and Linode Instance Config Devices)
	// +optional
	ID *int64 `json:"ID,omitempty" tf:"id"`
	// An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/.
	// +optional
	Image *string `json:"image,omitempty" tf:"image"`
	// The disks label, which acts as an identifier in Terraform.
	Label *string `json:"label" tf:"label"`
	// If true, this Disk is read-only.
	// +optional
	ReadOnly *bool `json:"readOnly,omitempty" tf:"read_only"`
	// The password that will be initialially assigned to the 'root' user account.
	// +optional
	RootPass *string `json:"-" sensitive:"true" tf:"root_pass"`
	// The size of the Disk in MB.
	Size *int64 `json:"size" tf:"size"`
	// An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if 'stackscript_id' is given. The required values depend on the StackScript being deployed.
	// +optional
	StackscriptData map[string]string `json:"-" sensitive:"true" tf:"stackscript_data"`
	// The StackScript to deploy to the newly created Linode. If provided, 'image' must also be provided, and must be an Image that is compatible with this StackScript.
	// +optional
	StackscriptID *int64 `json:"stackscriptID,omitempty" tf:"stackscript_id"`
}

func (*InstanceSpecDisk) DeepCopy

func (in *InstanceSpecDisk) DeepCopy() *InstanceSpecDisk

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecDisk.

func (*InstanceSpecDisk) DeepCopyInto

func (in *InstanceSpecDisk) DeepCopyInto(out *InstanceSpecDisk)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecInterface

type InstanceSpecInterface struct {
	// The IPAM Address of this interface.
	// +optional
	IpamAddress *string `json:"ipamAddress,omitempty" tf:"ipam_address"`
	// The unique label of this interface.
	// +optional
	Label *string `json:"label,omitempty" tf:"label"`
	// The purpose of this interface.
	// +optional
	Purpose *string `json:"purpose,omitempty" tf:"purpose"`
}

func (*InstanceSpecInterface) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecInterface.

func (*InstanceSpecInterface) DeepCopyInto

func (in *InstanceSpecInterface) DeepCopyInto(out *InstanceSpecInterface)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecResource

type InstanceSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Configuration options for alert triggers on this Linode.
	// +optional
	Alerts *InstanceSpecAlerts `json:"alerts,omitempty" tf:"alerts"`
	// A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if 'image' is provided.
	// +optional
	AuthorizedKeys []string `json:"authorizedKeys,omitempty" tf:"authorized_keys"`
	// A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the `root` user's `~/.ssh/authorized_keys` file automatically. Only accepted if 'image' is provided.
	// +optional
	AuthorizedUsers []string `json:"authorizedUsers,omitempty" tf:"authorized_users"`
	// A Backup ID from another Linode's available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode's available backups. This field and the image field are mutually exclusive.
	// +optional
	BackupID *int64 `json:"backupID,omitempty" tf:"backup_id"`
	// Information about this Linode's backups status.
	// +optional
	Backups []InstanceSpecBackups `json:"backups,omitempty" tf:"backups"`
	// If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
	// +optional
	BackupsEnabled *bool `json:"backupsEnabled,omitempty" tf:"backups_enabled"`
	// The Label of the Instance Config that should be used to boot the Linode instance.
	// +optional
	BootConfigLabel *string `json:"bootConfigLabel,omitempty" tf:"boot_config_label"`
	// Configuration profiles define the VM settings and boot behavior of the Linode Instance.
	// +optional
	Config []InstanceSpecConfig `json:"config,omitempty" tf:"config"`
	// +optional
	Disk []InstanceSpecDisk `json:"disk,omitempty" tf:"disk"`
	// The display group of the Linode instance.
	// +optional
	Group *string `json:"group,omitempty" tf:"group"`
	// An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use.
	// +optional
	Image *string `json:"image,omitempty" tf:"image"`
	// An array of Network Interfaces for this Linode to be created with. If an explicit config or disk is defined, interfaces must be declared in the config block.
	// +optional
	Interface []InstanceSpecInterface `json:"interface,omitempty" tf:"interface"`
	// This Linode's Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
	// +optional
	IpAddress *string `json:"ipAddress,omitempty" tf:"ip_address"`
	// This Linode's IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
	// +optional
	Ipv4 []string `json:"ipv4,omitempty" tf:"ipv4"`
	// This Linode's IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
	// +optional
	Ipv6 *string `json:"ipv6,omitempty" tf:"ipv6"`
	// The Linode's label is for display purposes only. If no label is provided for a Linode, a default will be assigned
	// +optional
	Label *string `json:"label,omitempty" tf:"label"`
	// If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode's region.
	// +optional
	PrivateIP *bool `json:"privateIP,omitempty" tf:"private_ip"`
	// This Linode's Private IPv4 Address.  The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
	// +optional
	PrivateIPAddress *string `json:"privateIPAddress,omitempty" tf:"private_ip_address"`
	// This is the location where the Linode was deployed. This cannot be changed without opening a support ticket.
	Region *string `json:"region" tf:"region"`
	// The password that will be initialially assigned to the 'root' user account.
	// +optional
	RootPass *string `json:"-" sensitive:"true" tf:"root_pass"`
	// Information about the resources available to this Linode.
	// +optional
	Specs []InstanceSpecSpecs `json:"specs,omitempty" tf:"specs"`
	// An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if 'stackscript_id' is given. The required values depend on the StackScript being deployed.
	// +optional
	StackscriptData map[string]string `json:"-" sensitive:"true" tf:"stackscript_data"`
	// The StackScript to deploy to the newly created Linode. If provided, 'image' must also be provided, and must be an Image that is compatible with this StackScript.
	// +optional
	StackscriptID *int64 `json:"stackscriptID,omitempty" tf:"stackscript_id"`
	// The status of the instance, indicating the current readiness state.
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
	// +optional
	SwapSize *int64 `json:"swapSize,omitempty" tf:"swap_size"`
	// An array of tags applied to this object. Tags are for organizational purposes only.
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// The type of instance to be deployed, determining the price and size.
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
	// +optional
	WatchdogEnabled *bool `json:"watchdogEnabled,omitempty" tf:"watchdog_enabled"`
}

func (*InstanceSpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecResource.

func (*InstanceSpecResource) DeepCopyInto

func (in *InstanceSpecResource) DeepCopyInto(out *InstanceSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceSpecSpecs

type InstanceSpecSpecs struct {
	// The amount of storage space, in GB. this Linode has access to. A typical Linode will divide this space between a primary disk with an image deployed to it, and a swap disk, usually 512 MB. This is the default configuration created when deploying a Linode with an image without specifying disks.
	// +optional
	Disk *int64 `json:"disk,omitempty" tf:"disk"`
	// The amount of RAM, in MB, this Linode has access to. Typically a Linode will choose to boot with all of its available RAM, but this can be configured in a Config profile.
	// +optional
	Memory *int64 `json:"memory,omitempty" tf:"memory"`
	// The amount of network transfer this Linode is allotted each month.
	// +optional
	Transfer *int64 `json:"transfer,omitempty" tf:"transfer"`
	// The number of vcpus this Linode has access to. Typically a Linode will choose to boot with all of its available vcpus, but this can be configured in a Config Profile.
	// +optional
	Vcpus *int64 `json:"vcpus,omitempty" tf:"vcpus"`
}

func (*InstanceSpecSpecs) DeepCopy

func (in *InstanceSpecSpecs) DeepCopy() *InstanceSpecSpecs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpecSpecs.

func (*InstanceSpecSpecs) DeepCopyInto

func (in *InstanceSpecSpecs) DeepCopyInto(out *InstanceSpecSpecs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InstanceStatus

type InstanceStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceStatus.

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Ip

type Ip struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              IpSpec   `json:"spec,omitempty"`
	Status            IpStatus `json:"status,omitempty"`
}

func (*Ip) DeepCopy

func (in *Ip) DeepCopy() *Ip

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ip.

func (*Ip) DeepCopyInto

func (in *Ip) DeepCopyInto(out *Ip)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Ip) DeepCopyObject

func (in *Ip) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Ip) SetupWebhookWithManager

func (r *Ip) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Ip) ValidateCreate

func (r *Ip) ValidateCreate() error

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

func (*Ip) ValidateDelete

func (r *Ip) ValidateDelete() error

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

func (*Ip) ValidateUpdate

func (r *Ip) ValidateUpdate(old runtime.Object) error

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

type IpList

type IpList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Ip CRD objects
	Items []Ip `json:"items,omitempty"`
}

IpList is a list of Ips

func (*IpList) DeepCopy

func (in *IpList) DeepCopy() *IpList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpList.

func (*IpList) DeepCopyInto

func (in *IpList) DeepCopyInto(out *IpList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IpList) DeepCopyObject

func (in *IpList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IpSpec

type IpSpec struct {
	State *IpSpecResource `json:"state,omitempty" tf:"-"`

	Resource IpSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*IpSpec) DeepCopy

func (in *IpSpec) DeepCopy() *IpSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpSpec.

func (*IpSpec) DeepCopyInto

func (in *IpSpec) DeepCopyInto(out *IpSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IpSpecResource

type IpSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The resulting IPv4 address.
	// +optional
	Address *string `json:"address,omitempty" tf:"address"`
	// If true, the instance will be rebooted to update network interfaces.
	// +optional
	ApplyImmediately *bool `json:"applyImmediately,omitempty" tf:"apply_immediately"`
	// The default gateway for this address
	// +optional
	Gateway *string `json:"gateway,omitempty" tf:"gateway"`
	// The ID of the Linode to allocate an IPv4 address for.
	LinodeID *int64 `json:"linodeID" tf:"linode_id"`
	// The number of bits set in the subnet mask.
	// +optional
	Prefix *int64 `json:"prefix,omitempty" tf:"prefix"`
	// Whether the IPv4 address is public or private.
	// +optional
	Public *bool `json:"public,omitempty" tf:"public"`
	// The reverse DNS assigned to this address.
	// +optional
	Rdns *string `json:"rdns,omitempty" tf:"rdns"`
	// The region this IP resides in.
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
	// The mask that separates host bits from network bits for this address.
	// +optional
	SubnetMask *string `json:"subnetMask,omitempty" tf:"subnet_mask"`
	// The type of IP address.
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
}

func (*IpSpecResource) DeepCopy

func (in *IpSpecResource) DeepCopy() *IpSpecResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpSpecResource.

func (*IpSpecResource) DeepCopyInto

func (in *IpSpecResource) DeepCopyInto(out *IpSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IpStatus

type IpStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*IpStatus) DeepCopy

func (in *IpStatus) DeepCopy() *IpStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpStatus.

func (*IpStatus) DeepCopyInto

func (in *IpStatus) DeepCopyInto(out *IpStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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