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: 14 Imported by: 0

Documentation

Overview

+groupName=instance.civo.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 InstanceSpecResource

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

	// Instance's CPU cores
	// +optional
	CpuCores *int64 `json:"cpuCores,omitempty" tf:"cpu_cores"`
	// Timestamp when the instance was created
	// +optional
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at"`
	// Instance's disk (GB)
	// +optional
	DiskGb *int64 `json:"diskGb,omitempty" tf:"disk_gb"`
	// The ID for the disk image to use to build the instance
	// +optional
	DiskImage *string `json:"diskImage,omitempty" tf:"disk_image"`
	// The ID of the firewall to use, from the current list. If left blank or not sent, the default firewall will be used (open to all)
	// +optional
	FirewallID *string `json:"firewallID,omitempty" tf:"firewall_id"`
	// A fully qualified domain name that should be set as the instance's hostname
	// +optional
	Hostname *string `json:"hostname,omitempty" tf:"hostname"`
	// Initial password for login
	// +optional
	InitialPassword *string `json:"-" sensitive:"true" tf:"initial_password"`
	// The name of the initial user created on the server (optional; this will default to the template's default_username and fallback to civo)
	// +optional
	InitialUser *string `json:"initialUser,omitempty" tf:"initial_user"`
	// This must be the ID of the network from the network listing (optional; default network used when not specified)
	// +optional
	NetworkID *string `json:"networkID,omitempty" tf:"network_id"`
	// Add some notes to the instance
	// +optional
	Notes *string `json:"notes,omitempty" tf:"notes"`
	// Instance's private IP address
	// +optional
	PrivateIP *string `json:"privateIP,omitempty" tf:"private_ip"`
	// Instance's public IP address
	// +optional
	PublicIP *string `json:"publicIP,omitempty" tf:"public_ip"`
	// This should be either 'none' or 'create' (default: 'create')
	// +optional
	PublicIPRequired *string `json:"publicIPRequired,omitempty" tf:"public_ip_required"`
	// Instance's RAM (MB)
	// +optional
	RamMb *int64 `json:"ramMb,omitempty" tf:"ram_mb"`
	// The region for the instance, if not declare we use the region in declared in the provider
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
	// A fully qualified domain name that should be used as the instance's IP's reverse DNS (optional, uses the hostname if unspecified)
	// +optional
	ReverseDNS *string `json:"reverseDNS,omitempty" tf:"reverse_dns"`
	// The contents of a script that will be uploaded to /usr/local/bin/civo-user-init-script on your instance, read/write/executable only by root and then will be executed at the end of the cloud initialization
	// +optional
	Script *string `json:"script,omitempty" tf:"script"`
	// The name of the size, from the current list, e.g. g3.xsmall
	// +optional
	Size *string `json:"size,omitempty" tf:"size"`
	// Instance's source ID
	// +optional
	SourceID *string `json:"sourceID,omitempty" tf:"source_id"`
	// Instance's source type
	// +optional
	SourceType *string `json:"sourceType,omitempty" tf:"source_type"`
	// The ID of an already uploaded SSH public key to use for login to the default user (optional; if one isn't provided a random password will be set and returned in the initial_password field)
	// +optional
	SshkeyID *string `json:"sshkeyID,omitempty" tf:"sshkey_id"`
	// Instance's status
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// An optional list of tags, represented as a key, value pair
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// The ID for the template to use to build the instance
	// +optional
	// Deprecated
	Template *string `json:"template,omitempty" tf:"template"`
}

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 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.

Jump to

Keyboard shortcuts

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