Documentation
¶
Overview ¶
+k8s:conversion-gen=github.com/criticalstack/cluster-api-bootstrap-provider-crit/apis/controlplane/v1alpha2
Package v1alpha1 contains API Schema definitions for the controlplane v1alpha1 API group +kubebuilder:object:generate=true +groupName=controlplane.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- func Convert_v1alpha1_CritControlPlaneList_To_v1alpha2_CritControlPlaneList(in *CritControlPlaneList, out *v1alpha2.CritControlPlaneList, ...) error
- func Convert_v1alpha1_CritControlPlaneSpec_To_v1alpha2_CritControlPlaneSpec(in *CritControlPlaneSpec, out *v1alpha2.CritControlPlaneSpec, ...) error
- func Convert_v1alpha1_CritControlPlaneStatus_To_v1alpha2_CritControlPlaneStatus(in *CritControlPlaneStatus, out *v1alpha2.CritControlPlaneStatus, ...) error
- func Convert_v1alpha1_CritControlPlane_To_v1alpha2_CritControlPlane(in *CritControlPlane, out *v1alpha2.CritControlPlane, s conversion.Scope) error
- func Convert_v1alpha2_CritControlPlaneList_To_v1alpha1_CritControlPlaneList(in *v1alpha2.CritControlPlaneList, out *CritControlPlaneList, ...) error
- func Convert_v1alpha2_CritControlPlaneSpec_To_v1alpha1_CritControlPlaneSpec(in *v1alpha2.CritControlPlaneSpec, out *CritControlPlaneSpec, ...) error
- func Convert_v1alpha2_CritControlPlaneStatus_To_v1alpha1_CritControlPlaneStatus(in *v1alpha2.CritControlPlaneStatus, out *CritControlPlaneStatus, ...) error
- func Convert_v1alpha2_CritControlPlane_To_v1alpha1_CritControlPlane(in *v1alpha2.CritControlPlane, out *CritControlPlane, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- type CritControlPlane
- func (dst *CritControlPlane) ConvertFrom(srcRaw conversion.Hub) error
- func (src *CritControlPlane) ConvertTo(dstRaw conversion.Hub) error
- func (in *CritControlPlane) DeepCopy() *CritControlPlane
- func (in *CritControlPlane) DeepCopyInto(out *CritControlPlane)
- func (in *CritControlPlane) DeepCopyObject() runtime.Object
- type CritControlPlaneList
- type CritControlPlaneSpec
- type CritControlPlaneStatus
Constants ¶
const ( CritControlPlaneFinalizer = "crit.controlplane.cluster.x-k8s.io" CritControlPlaneHashLabelKey = "crit.controlplane.cluster.x-k8s.io/hash" SelectedForUpgradeAnnotation = "crit.controlplane.cluster.x-k8s.io/selected-for-upgrade" UpgradeReplacementCreatedAnnotation = "crit.controlplane.cluster.x-k8s.io/upgrade-replacement-created" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "controlplane.cluster.x-k8s.io", Version: "v1alpha1"} // 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 ¶
func Convert_v1alpha1_CritControlPlaneList_To_v1alpha2_CritControlPlaneList ¶
func Convert_v1alpha1_CritControlPlaneList_To_v1alpha2_CritControlPlaneList(in *CritControlPlaneList, out *v1alpha2.CritControlPlaneList, s conversion.Scope) error
Convert_v1alpha1_CritControlPlaneList_To_v1alpha2_CritControlPlaneList is an autogenerated conversion function.
func Convert_v1alpha1_CritControlPlaneSpec_To_v1alpha2_CritControlPlaneSpec ¶
func Convert_v1alpha1_CritControlPlaneSpec_To_v1alpha2_CritControlPlaneSpec(in *CritControlPlaneSpec, out *v1alpha2.CritControlPlaneSpec, s conversion.Scope) error
func Convert_v1alpha1_CritControlPlaneStatus_To_v1alpha2_CritControlPlaneStatus ¶
func Convert_v1alpha1_CritControlPlaneStatus_To_v1alpha2_CritControlPlaneStatus(in *CritControlPlaneStatus, out *v1alpha2.CritControlPlaneStatus, s conversion.Scope) error
Convert_v1alpha1_CritControlPlaneStatus_To_v1alpha2_CritControlPlaneStatus is an autogenerated conversion function.
func Convert_v1alpha1_CritControlPlane_To_v1alpha2_CritControlPlane ¶
func Convert_v1alpha1_CritControlPlane_To_v1alpha2_CritControlPlane(in *CritControlPlane, out *v1alpha2.CritControlPlane, s conversion.Scope) error
Convert_v1alpha1_CritControlPlane_To_v1alpha2_CritControlPlane is an autogenerated conversion function.
func Convert_v1alpha2_CritControlPlaneList_To_v1alpha1_CritControlPlaneList ¶
func Convert_v1alpha2_CritControlPlaneList_To_v1alpha1_CritControlPlaneList(in *v1alpha2.CritControlPlaneList, out *CritControlPlaneList, s conversion.Scope) error
Convert_v1alpha2_CritControlPlaneList_To_v1alpha1_CritControlPlaneList is an autogenerated conversion function.
func Convert_v1alpha2_CritControlPlaneSpec_To_v1alpha1_CritControlPlaneSpec ¶
func Convert_v1alpha2_CritControlPlaneSpec_To_v1alpha1_CritControlPlaneSpec(in *v1alpha2.CritControlPlaneSpec, out *CritControlPlaneSpec, s conversion.Scope) error
func Convert_v1alpha2_CritControlPlaneStatus_To_v1alpha1_CritControlPlaneStatus ¶
func Convert_v1alpha2_CritControlPlaneStatus_To_v1alpha1_CritControlPlaneStatus(in *v1alpha2.CritControlPlaneStatus, out *CritControlPlaneStatus, s conversion.Scope) error
Convert_v1alpha2_CritControlPlaneStatus_To_v1alpha1_CritControlPlaneStatus is an autogenerated conversion function.
func Convert_v1alpha2_CritControlPlane_To_v1alpha1_CritControlPlane ¶
func Convert_v1alpha2_CritControlPlane_To_v1alpha1_CritControlPlane(in *v1alpha2.CritControlPlane, out *CritControlPlane, s conversion.Scope) error
Convert_v1alpha2_CritControlPlane_To_v1alpha1_CritControlPlane is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
Types ¶
type CritControlPlane ¶
type CritControlPlane struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CritControlPlaneSpec `json:"spec,omitempty"`
Status CritControlPlaneStatus `json:"status,omitempty"`
}
CritControlPlane is the Schema for the critcontrolplanes API
func (*CritControlPlane) ConvertFrom ¶
func (dst *CritControlPlane) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version (v1alpha2) to this version.
func (*CritControlPlane) ConvertTo ¶
func (src *CritControlPlane) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this CritConfig to the Hub version (v1alpha2).
func (*CritControlPlane) DeepCopy ¶
func (in *CritControlPlane) DeepCopy() *CritControlPlane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritControlPlane.
func (*CritControlPlane) DeepCopyInto ¶
func (in *CritControlPlane) DeepCopyInto(out *CritControlPlane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CritControlPlane) DeepCopyObject ¶
func (in *CritControlPlane) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CritControlPlaneList ¶
type CritControlPlaneList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []CritControlPlane `json:"items"`
}
CritControlPlaneList contains a list of CritControlPlane
func (*CritControlPlaneList) DeepCopy ¶
func (in *CritControlPlaneList) DeepCopy() *CritControlPlaneList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritControlPlaneList.
func (*CritControlPlaneList) DeepCopyInto ¶
func (in *CritControlPlaneList) DeepCopyInto(out *CritControlPlaneList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CritControlPlaneList) DeepCopyObject ¶
func (in *CritControlPlaneList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CritControlPlaneSpec ¶
type CritControlPlaneSpec struct {
Replicas int `json:"replicas"`
Version string `json:"version"`
InfrastructureTemplate corev1.ObjectReference `json:"infrastructureTemplate"`
CritConfigSpec cabpcv1.CritConfigSpec `json:"critConfigSpec"`
}
CritControlPlaneSpec defines the desired state of CritControlPlane
func (*CritControlPlaneSpec) DeepCopy ¶
func (in *CritControlPlaneSpec) DeepCopy() *CritControlPlaneSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritControlPlaneSpec.
func (*CritControlPlaneSpec) DeepCopyInto ¶
func (in *CritControlPlaneSpec) DeepCopyInto(out *CritControlPlaneSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CritControlPlaneStatus ¶
type CritControlPlaneStatus struct {
// Selector is the label selector in string format to avoid introspection
// by clients, and is used to provide the CRD-based integration for the
// scale subresource and additional integrations for things like kubectl
// describe.. The string will be in the same format as the query-param syntax.
// More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors
// +optional
Selector string `json:"selector,omitempty"`
// Total number of non-terminated machines targeted by this control plane
// (their labels match the selector).
// +optional
Replicas int32 `json:"replicas,omitempty"`
// Total number of non-terminated machines targeted by this control plane
// that have the desired template spec.
// +optional
UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`
// Total number of fully running and ready control plane machines.
// +optional
ReadyReplicas int32 `json:"readyReplicas,omitempty"`
// This is the total number of machines that are still required for
// the deployment to have 100% available capacity. They may either
// be machines that are running but not yet ready or machines
// that still have not been created.
// +optional
UnavailableReplicas int32 `json:"unavailableReplicas,omitempty"`
// Initialized denotes whether or not the control plane has been
// initialized. This will only ever happen once for any given cluster and
// requires that nodes are available equal to the number of replicas.
// Available here is meaning that the Kubernetes components are ready, but
// the node itself does not necessarily need to be in Ready status.
// +optional
Initialized bool `json:"initialized"`
// Ready denotes that the CritControlPlane API Server is ready to
// receive requests and has satisfied all readiness conditions.
// +optional
Ready bool `json:"ready"`
// FailureReason indicates that there is a terminal problem reconciling the
// state, and will be set to a token value suitable for
// programmatic interpretation.
// +optional
FailureReason string `json:"failureReason,omitempty"`
// ErrorMessage indicates that there is a terminal problem reconciling the
// state, and will be set to a descriptive error message.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
}
CritControlPlaneStatus defines the observed state of CritControlPlane
func (*CritControlPlaneStatus) DeepCopy ¶
func (in *CritControlPlaneStatus) DeepCopy() *CritControlPlaneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritControlPlaneStatus.
func (*CritControlPlaneStatus) DeepCopyInto ¶
func (in *CritControlPlaneStatus) DeepCopyInto(out *CritControlPlaneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.