Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the infrastructure v1beta1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io
Index ¶
Constants ¶
const (
// Be sure to be called before object removal from the apiserver.
KindClusterFinalizer = "kindcluster.infrastructure.cluster.x-k8s.io"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "infrastructure.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 KindCluster ¶
type KindCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KindClusterSpec `json:"spec,omitempty"` Status KindClusterStatus `json:"status,omitempty"` }
KindCluster is the Schema for the kindclusters API +kubebuilder:printcolumn:name="ready",type=boolean,JSONPath=`.status.ready`,description="cluster readiness" +kubebuilder:printcolumn:name="created",type=date,JSONPath=`.metadata.creationTimestamp`,description="Creatiion timestamp" +kubebuilder:printcolumn:name="workers",type=integer,JSONPath=`.spec.workerCount`,priority=10,description="Number of workers nodes " +kubebuilder:printcolumn:name="controlplane",type=integer,JSONPath=`.spec.controlPlaneCount`,priority=15,description="Number of nodes in control plane" +kubebuilder:printcolumn:name="version",type=string,JSONPath=`.spec.k8sVersion`,priority=20,description="Kubernetes version" +kubebuilder:printcolumn:name="image",type=string,JSONPath=`.spec.image`,priority=25,description="Kind image used" +kubebuilder:resource:shortName={kc,kcl} +kubebuilder:object:root=true +kubebuilder:subresource:status
func (*KindCluster) DeepCopy ¶
func (in *KindCluster) DeepCopy() *KindCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KindCluster.
func (*KindCluster) DeepCopyInto ¶
func (in *KindCluster) DeepCopyInto(out *KindCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KindCluster) DeepCopyObject ¶
func (in *KindCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KindClusterList ¶
type KindClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KindCluster `json:"items"` }
KindClusterList contains a list of KindCluster
func (*KindClusterList) DeepCopy ¶
func (in *KindClusterList) DeepCopy() *KindClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KindClusterList.
func (*KindClusterList) DeepCopyInto ¶
func (in *KindClusterList) DeepCopyInto(out *KindClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KindClusterList) DeepCopyObject ¶
func (in *KindClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KindClusterSpec ¶
type KindClusterSpec struct { // ControlPlaneEndpoint represents the endpoint used to communicate with the control plane. //+optional //+nullable ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint,omitempty"` //+kubebuilder:validation:Minimum=1 //+kubebuilder:default=1 ControlPlaneCount int32 `json:"controlPlaneCount,omitempty"` //+kubebuilder:validation:Minimum=0 //+kubebuilder:default=0 WorkerCount int32 `json:"workerCount,omitempty"` K8sVersion string `json:"k8sVersion,omitempty"` //+kubebuilder:default="kindest/node:v1.25.2@sha256:9be91e9e9cdf116809841fc77ebdb8845443c4c72fe5218f3ae9eb57fdb4bace" Image string `json:"image,omitempty"` }
KindClusterSpec defines the desired state of KindCluster
func (*KindClusterSpec) DeepCopy ¶
func (in *KindClusterSpec) DeepCopy() *KindClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KindClusterSpec.
func (*KindClusterSpec) DeepCopyInto ¶
func (in *KindClusterSpec) DeepCopyInto(out *KindClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KindClusterStatus ¶
type KindClusterStatus struct { // Cluster readiness //+kubebuilder:default=false Ready bool `json:"ready"` // Number of nodes ready in the cluster //+kubebuilder:validation:Minimum=0 //+kubebuilder:default=0 Nodes int32 `json:"nodes,omitempty"` }
KindClusterStatus defines the observed state of KindCluster
func (*KindClusterStatus) DeepCopy ¶
func (in *KindClusterStatus) DeepCopy() *KindClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KindClusterStatus.
func (*KindClusterStatus) DeepCopyInto ¶
func (in *KindClusterStatus) DeepCopyInto(out *KindClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.