v1beta1

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the v1beta1 API group +kubebuilder:object:generate=true +groupName=controlplane.cluster.x-k8s.io

Index

Constants

View Source
const K0smotronControlPlaneFinalizer = "k0smotron.controlplane.cluster.x-k8s.io"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "controlplane.cluster.x-k8s.io", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type K0sBootstrapConfigSpec added in v0.6.0

type K0sBootstrapConfigSpec struct {
	// Files specifies extra files to be passed to user_data upon creation.
	// +kubebuilder:validation:Optional
	Files []cloudinit.File `json:"files,omitempty"`

	// Args specifies extra arguments to be passed to k0s worker.
	// See: https://docs.k0sproject.io/stable/advanced/worker-configuration/
	Args []string `json:"args,omitempty"`

	// PreStartCommands specifies commands to be run before starting k0s worker.
	// +kubebuilder:validation:Optional
	PreStartCommands []string `json:"preStartCommands,omitempty"`

	// PostStartCommands specifies commands to be run after starting k0s worker.
	// +kubebuilder:validation:Optional
	PostStartCommands []string `json:"postStartCommands,omitempty"`

	// PreInstallK0s specifies whether k0s binary is pre-installed on the node.
	// +kubebuilder:validation:Optional
	PreInstalledK0s bool `json:"preInstalledK0s,omitempty"`

	// DownloadURL specifies the URL from which to download the k0s binary.
	// If the version field is specified, it is ignored, and whatever version is downloaded from the URL is used.
	// +kubebuilder:validation:Optional
	DownloadURL string `json:"downloadURL,omitempty"`
}

func (*K0sBootstrapConfigSpec) DeepCopy added in v0.6.0

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

func (*K0sBootstrapConfigSpec) DeepCopyInto added in v0.6.0

func (in *K0sBootstrapConfigSpec) DeepCopyInto(out *K0sBootstrapConfigSpec)

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

type K0sControlPlane added in v0.6.0

type K0sControlPlane struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   K0sControlPlaneSpec   `json:"spec,omitempty"`
	Status K0sControlPlaneStatus `json:"status,omitempty"`
}

func (*K0sControlPlane) DeepCopy added in v0.6.0

func (in *K0sControlPlane) DeepCopy() *K0sControlPlane

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

func (*K0sControlPlane) DeepCopyInto added in v0.6.0

func (in *K0sControlPlane) DeepCopyInto(out *K0sControlPlane)

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

func (*K0sControlPlane) DeepCopyObject added in v0.6.0

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

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

type K0sControlPlaneList added in v0.6.0

type K0sControlPlaneList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []K0sControlPlane `json:"items"`
}

func (*K0sControlPlaneList) DeepCopy added in v0.6.0

func (in *K0sControlPlaneList) DeepCopy() *K0sControlPlaneList

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

func (*K0sControlPlaneList) DeepCopyInto added in v0.6.0

func (in *K0sControlPlaneList) DeepCopyInto(out *K0sControlPlaneList)

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

func (*K0sControlPlaneList) DeepCopyObject added in v0.6.0

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

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

type K0sControlPlaneMachineTemplate added in v0.6.0

type K0sControlPlaneMachineTemplate struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`

	// InfrastructureRef is a required reference to a custom resource
	// offered by an infrastructure provider.
	InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"`
}

func (*K0sControlPlaneMachineTemplate) DeepCopy added in v0.6.0

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

func (*K0sControlPlaneMachineTemplate) DeepCopyInto added in v0.6.0

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

type K0sControlPlaneSpec added in v0.6.0

type K0sControlPlaneSpec struct {
	K0sConfigSpec   bootstrapv1.K0sConfigSpec       `json:"k0sConfigSpec"`
	MachineTemplate *K0sControlPlaneMachineTemplate `json:"machineTemplate"`
	//+kubebuilder:validation:Optional
	//+kubebuilder:default=1
	Replicas int32 `json:"replicas,omitempty"`
	// Version defines the k0s version to be deployed. You can use a specific k0s version (e.g. v1.27.1+k0s.0) or
	// just the Kubernetes version (e.g. v1.27.1). If left empty, k0smotron will select one automatically.
	//+kubebuilder:validation:Optional
	Version string `json:"version,omitempty"`
}

func (*K0sControlPlaneSpec) DeepCopy added in v0.6.0

func (in *K0sControlPlaneSpec) DeepCopy() *K0sControlPlaneSpec

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

func (*K0sControlPlaneSpec) DeepCopyInto added in v0.6.0

func (in *K0sControlPlaneSpec) DeepCopyInto(out *K0sControlPlaneSpec)

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

type K0sControlPlaneStatus added in v0.6.0

type K0sControlPlaneStatus struct {
	// Ready denotes that the control plane is ready
	Ready                       bool   `json:"ready"`
	ControlPlaneReady           bool   `json:"controlPlaneReady"`
	Inititalized                bool   `json:"initialized"`
	ExternalManagedControlPlane bool   `json:"externalManagedControlPlane"`
	Replicas                    int32  `json:"replicas"`
	Version                     string `json:"version"`
}

func (*K0sControlPlaneStatus) DeepCopy added in v0.6.0

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

func (*K0sControlPlaneStatus) DeepCopyInto added in v0.6.0

func (in *K0sControlPlaneStatus) DeepCopyInto(out *K0sControlPlaneStatus)

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

type K0sControlPlaneTemplate added in v0.9.0

type K0sControlPlaneTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec K0sControlPlaneTemplateSpec `json:"spec,omitempty"`
}

func (*K0sControlPlaneTemplate) DeepCopy added in v0.9.0

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

func (*K0sControlPlaneTemplate) DeepCopyInto added in v0.9.0

func (in *K0sControlPlaneTemplate) DeepCopyInto(out *K0sControlPlaneTemplate)

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

func (*K0sControlPlaneTemplate) DeepCopyObject added in v0.9.0

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

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

type K0sControlPlaneTemplateList added in v0.9.0

type K0sControlPlaneTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []K0sControlPlaneTemplate `json:"items"`
}

func (*K0sControlPlaneTemplateList) DeepCopy added in v0.9.0

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

func (*K0sControlPlaneTemplateList) DeepCopyInto added in v0.9.0

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

func (*K0sControlPlaneTemplateList) DeepCopyObject added in v0.9.0

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

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

type K0sControlPlaneTemplateResource added in v0.9.0

type K0sControlPlaneTemplateResource struct {
	// +kubebuilder:validation:Optional
	ObjectMeta metav1.ObjectMeta                   `json:"metadata,omitempty"`
	Spec       K0sControlPlaneTemplateResourceSpec `json:"spec,omitempty"`
}

func (*K0sControlPlaneTemplateResource) DeepCopy added in v0.9.0

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

func (*K0sControlPlaneTemplateResource) DeepCopyInto added in v0.9.0

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

type K0sControlPlaneTemplateResourceSpec added in v0.9.0

type K0sControlPlaneTemplateResourceSpec struct {
	K0sConfigSpec   bootstrapv1.K0sConfigSpec       `json:"k0sConfigSpec"`
	MachineTemplate *K0sControlPlaneMachineTemplate `json:"machineTemplate,omitempty"`
	Version         string                          `json:"version,omitempty"`
}

func (*K0sControlPlaneTemplateResourceSpec) DeepCopy added in v0.9.0

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

func (*K0sControlPlaneTemplateResourceSpec) DeepCopyInto added in v0.9.0

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

type K0sControlPlaneTemplateSpec added in v0.9.0

type K0sControlPlaneTemplateSpec struct {
	Template K0sControlPlaneTemplateResource `json:"template,omitempty"`
}

func (*K0sControlPlaneTemplateSpec) DeepCopy added in v0.9.0

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

func (*K0sControlPlaneTemplateSpec) DeepCopyInto added in v0.9.0

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

type K0smotronControlPlane

type K0smotronControlPlane struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              kmapi.ClusterSpec `json:"spec,omitempty"`

	Status K0smotronControlPlaneStatus `json:"status,omitempty"`
}

func (*K0smotronControlPlane) DeepCopy

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

func (*K0smotronControlPlane) DeepCopyInto

func (in *K0smotronControlPlane) DeepCopyInto(out *K0smotronControlPlane)

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

func (*K0smotronControlPlane) DeepCopyObject

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

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

type K0smotronControlPlaneList

type K0smotronControlPlaneList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []K0smotronControlPlane `json:"items"`
}

func (*K0smotronControlPlaneList) DeepCopy

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

func (*K0smotronControlPlaneList) DeepCopyInto

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

func (*K0smotronControlPlaneList) DeepCopyObject

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

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

type K0smotronControlPlaneStatus

type K0smotronControlPlaneStatus struct {
	// Ready denotes that the control plane is ready
	Ready                       bool `json:"ready"`
	ControlPlaneReady           bool `json:"controlPlaneReady"`
	Inititalized                bool `json:"initialized"`
	ExternalManagedControlPlane bool `json:"externalManagedControlPlane"`
}

func (*K0smotronControlPlaneStatus) DeepCopy

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

func (*K0smotronControlPlaneStatus) DeepCopyInto

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

type K0smotronControlPlaneTemplate added in v0.9.0

type K0smotronControlPlaneTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec K0smotronControlPlaneTemplateSpec `json:"spec,omitempty"`
}

func (*K0smotronControlPlaneTemplate) DeepCopy added in v0.9.0

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

func (*K0smotronControlPlaneTemplate) DeepCopyInto added in v0.9.0

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

func (*K0smotronControlPlaneTemplate) DeepCopyObject added in v0.9.0

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

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

type K0smotronControlPlaneTemplateList added in v0.9.0

type K0smotronControlPlaneTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []K0smotronControlPlaneTemplate `json:"items"`
}

func (*K0smotronControlPlaneTemplateList) DeepCopy added in v0.9.0

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

func (*K0smotronControlPlaneTemplateList) DeepCopyInto added in v0.9.0

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

func (*K0smotronControlPlaneTemplateList) DeepCopyObject added in v0.9.0

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

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

type K0smotronControlPlaneTemplateResource added in v0.9.0

type K0smotronControlPlaneTemplateResource struct {
	// +kubebuilder:validation:Optional
	ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec       kmapi.ClusterSpec `json:"spec,omitempty"`
}

func (*K0smotronControlPlaneTemplateResource) DeepCopy added in v0.9.0

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

func (*K0smotronControlPlaneTemplateResource) DeepCopyInto added in v0.9.0

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

type K0smotronControlPlaneTemplateSpec added in v0.9.0

type K0smotronControlPlaneTemplateSpec struct {
	Template K0smotronControlPlaneTemplateResource `json:"template,omitempty"`
}

func (*K0smotronControlPlaneTemplateSpec) DeepCopy added in v0.9.0

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

func (*K0smotronControlPlaneTemplateSpec) DeepCopyInto added in v0.9.0

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