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=kubernetes.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: kubernetes.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 ClusterSpecInstalledApplications

type ClusterSpecInstalledApplications struct {
	// Name of application
	// +optional
	Application *string `json:"application,omitempty" tf:"application"`
	// Category of the application
	// +optional
	Category *string `json:"category,omitempty" tf:"category"`
	// Application installation status (`true` if installed)
	// +optional
	Installed *bool `json:"installed,omitempty" tf:"installed"`
	// Version of application
	// +optional
	Version *string `json:"version,omitempty" tf:"version"`
}

func (*ClusterSpecInstalledApplications) DeepCopy

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

func (*ClusterSpecInstalledApplications) DeepCopyInto

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

type ClusterSpecInstances

type ClusterSpecInstances struct {
	// Instance's CPU cores
	// +optional
	CpuCores *int64 `json:"cpuCores,omitempty" tf:"cpu_cores"`
	// Instance's disk (GB)
	// +optional
	DiskGb *int64 `json:"diskGb,omitempty" tf:"disk_gb"`
	// Instance's hostname
	// +optional
	Hostname *string `json:"hostname,omitempty" tf:"hostname"`
	// Instance's RAM (MB)
	// +optional
	RamMb *int64 `json:"ramMb,omitempty" tf:"ram_mb"`
	// Instance's size
	// +optional
	Size *string `json:"size,omitempty" tf:"size"`
	// Instance's status
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// Instance's tags
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
}

func (*ClusterSpecInstances) DeepCopy

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

func (*ClusterSpecInstances) DeepCopyInto

func (in *ClusterSpecInstances) DeepCopyInto(out *ClusterSpecInstances)

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

type ClusterSpecPools

type ClusterSpecPools struct {
	// Number of nodes in the nodepool
	// +optional
	Count *int64 `json:"count,omitempty" tf:"count"`
	// Nodepool ID
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// Instance names in the nodepool
	// +optional
	InstanceNames []string `json:"instanceNames,omitempty" tf:"instance_names"`
	// +optional
	Instances []ClusterSpecPoolsInstances `json:"instances,omitempty" tf:"instances"`
	// Size of the nodes in the nodepool
	// +optional
	Size *string `json:"size,omitempty" tf:"size"`
}

func (*ClusterSpecPools) DeepCopy

func (in *ClusterSpecPools) DeepCopy() *ClusterSpecPools

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

func (*ClusterSpecPools) DeepCopyInto

func (in *ClusterSpecPools) DeepCopyInto(out *ClusterSpecPools)

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

type ClusterSpecPoolsInstances

type ClusterSpecPoolsInstances struct {
	// Instance's CPU cores
	// +optional
	CpuCores *int64 `json:"cpuCores,omitempty" tf:"cpu_cores"`
	// Instance's disk (GB)
	// +optional
	DiskGb *int64 `json:"diskGb,omitempty" tf:"disk_gb"`
	// Instance's hostname
	// +optional
	Hostname *string `json:"hostname,omitempty" tf:"hostname"`
	// Instance's RAM (MB)
	// +optional
	RamMb *int64 `json:"ramMb,omitempty" tf:"ram_mb"`
	// Instance's size
	// +optional
	Size *string `json:"size,omitempty" tf:"size"`
	// Instance's status
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// Instance's tags
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
}

func (*ClusterSpecPoolsInstances) DeepCopy

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

func (*ClusterSpecPoolsInstances) DeepCopyInto

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

type ClusterSpecResource

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

	// The API server endpoint of the cluster
	// +optional
	ApiEndpoint *string `json:"apiEndpoint,omitempty" tf:"api_endpoint"`
	// Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. For application that supports plans, you can use 'app_name:app_plan' format e.g. 'Linkerd:Linkerd & Jaeger' or 'MariaDB:5GB'.
	// +optional
	Applications *string `json:"applications,omitempty" tf:"applications"`
	// The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`
	// +optional
	Cni *string `json:"cni,omitempty" tf:"cni"`
	// The timestamp when the cluster was created
	// +optional
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at"`
	// The DNS name of the cluster
	// +optional
	DnsEntry *string `json:"dnsEntry,omitempty" tf:"dns_entry"`
	// The existing firewall ID to use for this cluster
	FirewallID *string `json:"firewallID" tf:"firewall_id"`
	// +optional
	InstalledApplications []ClusterSpecInstalledApplications `json:"installedApplications,omitempty" tf:"installed_applications"`
	// +optional
	Instances []ClusterSpecInstances `json:"instances,omitempty" tf:"instances"`
	// The kubeconfig of the cluster
	// +optional
	Kubeconfig *string `json:"-" sensitive:"true" tf:"kubeconfig"`
	// The version of k3s to install (optional, the default is currently the latest available)
	// +optional
	KubernetesVersion *string `json:"kubernetesVersion,omitempty" tf:"kubernetes_version"`
	// The IP address of the master node
	// +optional
	MasterIP *string `json:"masterIP,omitempty" tf:"master_ip"`
	// Name for your cluster, must be unique within your account
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// The network for the cluster, if not declare we use the default one
	// +optional
	NetworkID *string `json:"networkID,omitempty" tf:"network_id"`
	// The number of instances to create (optional, the default at the time of writing is 3)
	// +optional
	NumTargetNodes *int64 `json:"numTargetNodes,omitempty" tf:"num_target_nodes"`
	// +optional
	Pools []ClusterSpecPools `json:"pools,omitempty" tf:"pools"`
	// When cluster is ready, this will return `true`
	// +optional
	Ready *bool `json:"ready,omitempty" tf:"ready"`
	// The region for the cluster, if not declare we use the region in declared in the provider
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
	// Status of the cluster
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// Space separated list of tags, to be used freely as required
	// +optional
	Tags *string `json:"tags,omitempty" tf:"tags"`
	// The size of each node (optional, the default is currently g4s.kube.medium)
	// +optional
	TargetNodesSize *string `json:"targetNodesSize,omitempty" tf:"target_nodes_size"`
}

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.

type NodePool

type NodePool struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodePoolSpec   `json:"spec,omitempty"`
	Status            NodePoolStatus `json:"status,omitempty"`
}

func (*NodePool) DeepCopy

func (in *NodePool) DeepCopy() *NodePool

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

func (*NodePool) DeepCopyInto

func (in *NodePool) DeepCopyInto(out *NodePool)

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

func (*NodePool) DeepCopyObject

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

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

func (*NodePool) SetupWebhookWithManager

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

func (*NodePool) ValidateCreate

func (r *NodePool) ValidateCreate() error

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

func (*NodePool) ValidateDelete

func (r *NodePool) ValidateDelete() error

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

func (*NodePool) ValidateUpdate

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

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

type NodePoolList

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

NodePoolList is a list of NodePools

func (*NodePoolList) DeepCopy

func (in *NodePoolList) DeepCopy() *NodePoolList

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

func (*NodePoolList) DeepCopyInto

func (in *NodePoolList) DeepCopyInto(out *NodePoolList)

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

func (*NodePoolList) DeepCopyObject

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

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

type NodePoolSpec

type NodePoolSpec struct {
	State *NodePoolSpecResource `json:"state,omitempty" tf:"-"`

	Resource NodePoolSpecResource `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 (*NodePoolSpec) DeepCopy

func (in *NodePoolSpec) DeepCopy() *NodePoolSpec

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

func (*NodePoolSpec) DeepCopyInto

func (in *NodePoolSpec) DeepCopyInto(out *NodePoolSpec)

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

type NodePoolSpecResource

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

	// The ID of your cluster
	ClusterID *string `json:"clusterID" tf:"cluster_id"`
	// the number of instances to create (optional, the default at the time of writing is 3)
	// +optional
	NumTargetNodes *int64 `json:"numTargetNodes,omitempty" tf:"num_target_nodes"`
	// The region of the node pool, has to match that of the cluster
	Region *string `json:"region" tf:"region"`
	// the size of each node (optional, the default is currently g4s.kube.medium)
	// +optional
	TargetNodesSize *string `json:"targetNodesSize,omitempty" tf:"target_nodes_size"`
}

func (*NodePoolSpecResource) DeepCopy

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

func (*NodePoolSpecResource) DeepCopyInto

func (in *NodePoolSpecResource) DeepCopyInto(out *NodePoolSpecResource)

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

type NodePoolStatus

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

func (in *NodePoolStatus) DeepCopy() *NodePoolStatus

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

func (*NodePoolStatus) DeepCopyInto

func (in *NodePoolStatus) DeepCopyInto(out *NodePoolStatus)

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