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: 2

Documentation

Overview

+groupName=lke.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: lke.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 Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterSpec   `json:"spec,omitempty"`
	Status            ClusterStatus `json:"status,omitempty"`
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) SetupWebhookWithManager

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

func (*Cluster) ValidateCreate

func (r *Cluster) ValidateCreate() error

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

func (*Cluster) ValidateDelete

func (r *Cluster) ValidateDelete() error

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

func (*Cluster) ValidateUpdate

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

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

type ClusterList

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

ClusterList is a list of Clusters

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	State *ClusterSpecResource `json:"state,omitempty" tf:"-"`

	Resource ClusterSpecResource `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 (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterSpecControlPlane added in v0.5.0

type ClusterSpecControlPlane struct {
	// Defines whether High Availability is enabled for the Control Plane Components of the cluster.
	// +optional
	HighAvailability *bool `json:"highAvailability,omitempty" tf:"high_availability"`
}

func (*ClusterSpecControlPlane) DeepCopy added in v0.5.0

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

func (*ClusterSpecControlPlane) DeepCopyInto added in v0.5.0

func (in *ClusterSpecControlPlane) DeepCopyInto(out *ClusterSpecControlPlane)

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

type ClusterSpecControlPlaneCodec added in v0.5.0

type ClusterSpecControlPlaneCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecControlPlaneCodec) Decode added in v0.5.0

func (ClusterSpecControlPlaneCodec) Encode added in v0.5.0

func (ClusterSpecControlPlaneCodec) IsEmpty added in v0.5.0

type ClusterSpecPool

type ClusterSpecPool struct {
	// When specified, the number of nodes autoscales within the defined minimum and maximum values.
	// +optional
	Autoscaler *ClusterSpecPoolAutoscaler `json:"autoscaler,omitempty" tf:"autoscaler"`
	// The number of nodes in the Node Pool.
	Count *int64 `json:"count" tf:"count"`
	// The ID of the Node Pool.
	// +optional
	ID *int64 `json:"ID,omitempty" tf:"id"`
	// The nodes in the node pool.
	// +optional
	Nodes []ClusterSpecPoolNodes `json:"nodes,omitempty" tf:"nodes"`
	// A Linode Type for all of the nodes in the Node Pool.
	Type *string `json:"type" tf:"type"`
}

func (*ClusterSpecPool) DeepCopy

func (in *ClusterSpecPool) DeepCopy() *ClusterSpecPool

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

func (*ClusterSpecPool) DeepCopyInto

func (in *ClusterSpecPool) DeepCopyInto(out *ClusterSpecPool)

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

type ClusterSpecPoolAutoscaler added in v0.5.0

type ClusterSpecPoolAutoscaler struct {
	// The maximum number of nodes to autoscale to.
	Max *int64 `json:"max" tf:"max"`
	// The minimum number of nodes to autoscale to.
	Min *int64 `json:"min" tf:"min"`
}

func (*ClusterSpecPoolAutoscaler) DeepCopy added in v0.5.0

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

func (*ClusterSpecPoolAutoscaler) DeepCopyInto added in v0.5.0

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

type ClusterSpecPoolAutoscalerCodec added in v0.5.0

type ClusterSpecPoolAutoscalerCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecPoolAutoscalerCodec) Decode added in v0.5.0

func (ClusterSpecPoolAutoscalerCodec) Encode added in v0.5.0

func (ClusterSpecPoolAutoscalerCodec) IsEmpty added in v0.5.0

type ClusterSpecPoolNodes

type ClusterSpecPoolNodes struct {
	// The ID of the node.
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// The ID of the underlying Linode instance.
	// +optional
	InstanceID *int64 `json:"instanceID,omitempty" tf:"instance_id"`
	// The status of the node.
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
}

func (*ClusterSpecPoolNodes) DeepCopy

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

func (*ClusterSpecPoolNodes) DeepCopyInto

func (in *ClusterSpecPoolNodes) DeepCopyInto(out *ClusterSpecPoolNodes)

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

type ClusterSpecResource

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

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

	// The API endpoints for the cluster.
	// +optional
	ApiEndpoints []string `json:"apiEndpoints,omitempty" tf:"api_endpoints"`
	// Defines settings for the Kubernetes Control Plane.
	// +optional
	ControlPlane *ClusterSpecControlPlane `json:"controlPlane,omitempty" tf:"control_plane"`
	// The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>. The latest supported patch version will be deployed.
	K8sVersion *string `json:"k8sVersion" tf:"k8s_version"`
	// The Base64-encoded Kubeconfig for the cluster.
	// +optional
	Kubeconfig *string `json:"-" sensitive:"true" tf:"kubeconfig"`
	// The unique label for the cluster.
	Label *string `json:"label" tf:"label"`
	// A node pool in the cluster.
	// +kubebuilder:validation:MinItems=1
	Pool []ClusterSpecPool `json:"pool" tf:"pool"`
	// This cluster's location.
	Region *string `json:"region" tf:"region"`
	// The status of the cluster.
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// An array of tags applied to this object. Tags are for organizational purposes only.
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
}

func (*ClusterSpecResource) DeepCopy

func (in *ClusterSpecResource) DeepCopy() *ClusterSpecResource

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

func (*ClusterSpecResource) DeepCopyInto

func (in *ClusterSpecResource) DeepCopyInto(out *ClusterSpecResource)

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

type ClusterStatus

type ClusterStatus 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 (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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