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 ¶
const K0smotronControlPlaneFinalizer = "k0smotron.controlplane.cluster.x-k8s.io"
Variables ¶
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
func (in *K0sBootstrapConfigSpec) DeepCopy() *K0sBootstrapConfigSpec
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
func (in *K0sControlPlaneMachineTemplate) DeepCopy() *K0sControlPlaneMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControlPlaneMachineTemplate.
func (*K0sControlPlaneMachineTemplate) DeepCopyInto ¶ added in v0.6.0
func (in *K0sControlPlaneMachineTemplate) DeepCopyInto(out *K0sControlPlaneMachineTemplate)
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"` // K0sVersion defines the k0s version to be deployed. If empty k0smotron // will pick it automatically. //+kubebuilder:validation:Optional K0sVersion string `json:"k0sVersion,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"` }
func (*K0sControlPlaneStatus) DeepCopy ¶ added in v0.6.0
func (in *K0sControlPlaneStatus) DeepCopy() *K0sControlPlaneStatus
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 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 ¶
func (in *K0smotronControlPlane) DeepCopy() *K0smotronControlPlane
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 ¶
func (in *K0smotronControlPlaneList) DeepCopy() *K0smotronControlPlaneList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0smotronControlPlaneList.
func (*K0smotronControlPlaneList) DeepCopyInto ¶
func (in *K0smotronControlPlaneList) DeepCopyInto(out *K0smotronControlPlaneList)
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 ¶
func (in *K0smotronControlPlaneStatus) DeepCopy() *K0smotronControlPlaneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0smotronControlPlaneStatus.
func (*K0smotronControlPlaneStatus) DeepCopyInto ¶
func (in *K0smotronControlPlaneStatus) DeepCopyInto(out *K0smotronControlPlaneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.