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
- Variables
- type K0sControlPlane
- func (in *K0sControlPlane) DeepCopy() *K0sControlPlane
- func (in *K0sControlPlane) DeepCopyInto(out *K0sControlPlane)
- func (in *K0sControlPlane) DeepCopyObject() runtime.Object
- func (k *K0sControlPlane) GetConditions() clusterv1.Conditions
- func (k *K0sControlPlane) SetConditions(conditions clusterv1.Conditions)
- func (k *K0sControlPlane) WorkerEnabled() bool
- type K0sControlPlaneList
- type K0sControlPlaneMachineTemplate
- type K0sControlPlaneSpec
- type K0sControlPlaneStatus
- type K0sControlPlaneTemplate
- type K0sControlPlaneTemplateList
- type K0sControlPlaneTemplateResource
- type K0sControlPlaneTemplateResourceSpec
- type K0sControlPlaneTemplateSpec
- type K0smotronControlPlane
- type K0smotronControlPlaneList
- type K0smotronControlPlaneStatus
- type K0smotronControlPlaneTemplate
- type K0smotronControlPlaneTemplateList
- type K0smotronControlPlaneTemplateResource
- type K0smotronControlPlaneTemplateSpec
- type UpdateStrategy
Constants ¶
const ( // ControlPlaneReadyCondition documents the status of the control plane ControlPlaneReadyCondition clusterv1.ConditionType = "ControlPlaneReady" // RemediationInProgressAnnotation is used to keep track that a remediation is in progress, // and more specifically it tracks that the system is in between having deleted an unhealthy machine // and recreating its replacement. RemediationInProgressAnnotation = "controlplane.cluster.x-k8s.io/remediation-in-progress" // ControlPlanePausedCondition documents the reconciliation of the control plane is paused. ControlPlanePausedCondition clusterv1.ConditionType = "Paused" )
const K0sClusterIDAnnotation = "k0sproject.io/cluster-id"
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 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.
func (*K0sControlPlane) GetConditions ¶ added in v1.2.0
func (k *K0sControlPlane) GetConditions() clusterv1.Conditions
func (*K0sControlPlane) SetConditions ¶ added in v1.2.0
func (k *K0sControlPlane) SetConditions(conditions clusterv1.Conditions)
func (*K0sControlPlane) WorkerEnabled ¶ added in v1.2.0
func (k *K0sControlPlane) WorkerEnabled() bool
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"` // NodeDrainTimeout is the total amount of time that the controller will spend on draining a controlplane node // The default value is 0, meaning that the node can be drained without any time limitations. // NOTE: NodeDrainTimeout is different from `kubectl drain --timeout` // +optional NodeDrainTimeout *metav1.Duration `json:"nodeDrainTimeout,omitempty"` // NodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes // to be detached. The default value is 0, meaning that the volumes can be detached without any time limitations. // +optional NodeVolumeDetachTimeout *metav1.Duration `json:"nodeVolumeDetachTimeout,omitempty"` // NodeDeletionTimeout defines how long the machine controller will attempt to delete the Node that the Machine // hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely. // If no value is provided, the default value for this property of the Machine resource will be used. // +optional NodeDeletionTimeout *metav1.Duration `json:"nodeDeletionTimeout,omitempty"` }
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"` // UpdateStrategy defines the strategy to use when updating the control plane. //+kubebuilder:validation:Optional //+kubebuilder:validation:Enum=InPlace;Recreate //+kubebuilder:default=InPlace UpdateStrategy UpdateStrategy `json:"updateStrategy,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"` Selector string `json:"selector"` ReadyReplicas int32 `json:"readyReplicas"` UpdatedReplicas int32 `json:"updatedReplicas"` // Conditions defines current service state of the K0sControlPlane. // +optional Conditions clusterv1.Conditions `json:"conditions,omitempty"` }
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 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
func (in *K0sControlPlaneTemplate) DeepCopy() *K0sControlPlaneTemplate
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
func (in *K0sControlPlaneTemplateList) DeepCopy() *K0sControlPlaneTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControlPlaneTemplateList.
func (*K0sControlPlaneTemplateList) DeepCopyInto ¶ added in v0.9.0
func (in *K0sControlPlaneTemplateList) DeepCopyInto(out *K0sControlPlaneTemplateList)
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
func (in *K0sControlPlaneTemplateResource) DeepCopy() *K0sControlPlaneTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControlPlaneTemplateResource.
func (*K0sControlPlaneTemplateResource) DeepCopyInto ¶ added in v0.9.0
func (in *K0sControlPlaneTemplateResource) DeepCopyInto(out *K0sControlPlaneTemplateResource)
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"` // UpdateStrategy defines the strategy to use when updating the control plane. //+kubebuilder:validation:Optional //+kubebuilder:validation:Enum=InPlace;Recreate //+kubebuilder:default=InPlace UpdateStrategy UpdateStrategy `json:"updateStrategy,omitempty"` }
func (*K0sControlPlaneTemplateResourceSpec) DeepCopy ¶ added in v0.9.0
func (in *K0sControlPlaneTemplateResourceSpec) DeepCopy() *K0sControlPlaneTemplateResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControlPlaneTemplateResourceSpec.
func (*K0sControlPlaneTemplateResourceSpec) DeepCopyInto ¶ added in v0.9.0
func (in *K0sControlPlaneTemplateResourceSpec) DeepCopyInto(out *K0sControlPlaneTemplateResourceSpec)
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
func (in *K0sControlPlaneTemplateSpec) DeepCopy() *K0sControlPlaneTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControlPlaneTemplateSpec.
func (*K0sControlPlaneTemplateSpec) DeepCopyInto ¶ added in v0.9.0
func (in *K0sControlPlaneTemplateSpec) DeepCopyInto(out *K0sControlPlaneTemplateSpec)
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"` Version string `json:"version"` }
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.
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
func (in *K0smotronControlPlaneTemplate) DeepCopy() *K0smotronControlPlaneTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0smotronControlPlaneTemplate.
func (*K0smotronControlPlaneTemplate) DeepCopyInto ¶ added in v0.9.0
func (in *K0smotronControlPlaneTemplate) DeepCopyInto(out *K0smotronControlPlaneTemplate)
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
func (in *K0smotronControlPlaneTemplateList) DeepCopy() *K0smotronControlPlaneTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0smotronControlPlaneTemplateList.
func (*K0smotronControlPlaneTemplateList) DeepCopyInto ¶ added in v0.9.0
func (in *K0smotronControlPlaneTemplateList) DeepCopyInto(out *K0smotronControlPlaneTemplateList)
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
func (in *K0smotronControlPlaneTemplateResource) DeepCopy() *K0smotronControlPlaneTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0smotronControlPlaneTemplateResource.
func (*K0smotronControlPlaneTemplateResource) DeepCopyInto ¶ added in v0.9.0
func (in *K0smotronControlPlaneTemplateResource) DeepCopyInto(out *K0smotronControlPlaneTemplateResource)
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
func (in *K0smotronControlPlaneTemplateSpec) DeepCopy() *K0smotronControlPlaneTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0smotronControlPlaneTemplateSpec.
func (*K0smotronControlPlaneTemplateSpec) DeepCopyInto ¶ added in v0.9.0
func (in *K0smotronControlPlaneTemplateSpec) DeepCopyInto(out *K0smotronControlPlaneTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpdateStrategy ¶ added in v0.9.6
type UpdateStrategy string
const ( UpdateInPlace UpdateStrategy = "InPlace" UpdateRecreate UpdateStrategy = "Recreate" )