Documentation
¶
Overview ¶
Package v1alpha3 contains API Schema definitions for the etcd cluster v1alpha3 API group +kubebuilder:object:generate=true +groupName=etcdcluster.cluster.x-k8s.io +k8s:conversion-gen=github.com/aws/etcdadm-controller/api/v1beta1
Package v1alpha3 contains API Schema definitions for the etcdcluster v1alpha3 API group +kubebuilder:object:generate=true +groupName=etcdcluster.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- func Convert_v1alpha3_EtcdadmClusterList_To_v1beta1_EtcdadmClusterList(in *EtcdadmClusterList, out *v1beta1.EtcdadmClusterList, s conversion.Scope) error
- func Convert_v1alpha3_EtcdadmClusterSpec_To_v1beta1_EtcdadmClusterSpec(in *EtcdadmClusterSpec, out *v1beta1.EtcdadmClusterSpec, s conversion.Scope) error
- func Convert_v1alpha3_EtcdadmClusterStatus_To_v1beta1_EtcdadmClusterStatus(in *EtcdadmClusterStatus, out *v1beta1.EtcdadmClusterStatus, ...) error
- func Convert_v1alpha3_EtcdadmCluster_To_v1beta1_EtcdadmCluster(in *EtcdadmCluster, out *v1beta1.EtcdadmCluster, s conversion.Scope) error
- func Convert_v1beta1_EtcdadmClusterList_To_v1alpha3_EtcdadmClusterList(in *v1beta1.EtcdadmClusterList, out *EtcdadmClusterList, s conversion.Scope) error
- func Convert_v1beta1_EtcdadmClusterSpec_To_v1alpha3_EtcdadmClusterSpec(in *v1beta1.EtcdadmClusterSpec, out *EtcdadmClusterSpec, s conversion.Scope) error
- func Convert_v1beta1_EtcdadmClusterStatus_To_v1alpha3_EtcdadmClusterStatus(in *v1beta1.EtcdadmClusterStatus, out *EtcdadmClusterStatus, ...) error
- func Convert_v1beta1_EtcdadmCluster_To_v1alpha3_EtcdadmCluster(in *v1beta1.EtcdadmCluster, out *EtcdadmCluster, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- type EtcdadmCluster
- func (dst *EtcdadmCluster) ConvertFrom(srcRaw conversion.Hub) error
- func (src *EtcdadmCluster) ConvertTo(dstRaw conversion.Hub) error
- func (in *EtcdadmCluster) DeepCopy() *EtcdadmCluster
- func (in *EtcdadmCluster) DeepCopyInto(out *EtcdadmCluster)
- func (in *EtcdadmCluster) DeepCopyObject() runtime.Object
- func (in *EtcdadmCluster) GetConditions() clusterv1.Conditions
- func (in *EtcdadmCluster) SetConditions(conditions clusterv1.Conditions)
- type EtcdadmClusterList
- func (dst *EtcdadmClusterList) ConvertFrom(srcRaw conversion.Hub) error
- func (src *EtcdadmClusterList) ConvertTo(dstRaw conversion.Hub) error
- func (in *EtcdadmClusterList) DeepCopy() *EtcdadmClusterList
- func (in *EtcdadmClusterList) DeepCopyInto(out *EtcdadmClusterList)
- func (in *EtcdadmClusterList) DeepCopyObject() runtime.Object
- type EtcdadmClusterSpec
- type EtcdadmClusterStatus
Constants ¶
const ( // EtcdMachinesSpecUpToDateCondition documents that the spec of the machines controlled by the EtcdadmCluster // is up to date. When this condition is false, the EtcdadmCluster is executing a rolling upgrade. EtcdMachinesSpecUpToDateCondition clusterv1.ConditionType = "EtcdMachinesSpecUpToDate" // EtcdRollingUpdateInProgressReason (Severity=Warning) documents an EtcdadmCluster object executing a // rolling upgrade for aligning the machines spec to the desired state. EtcdRollingUpdateInProgressReason = "EtcdRollingUpdateInProgress" // EtcdCertificatesAvailableCondition indicates that the etcdadm controller has generated the etcd certs to be used by new members // joining the etcd cluster, and to be used by the controlplane EtcdCertificatesAvailableCondition clusterv1.ConditionType = "EtcdCertificatesAvailable" // EtcdClusterResizeCompleted indicates if cluster is finished with scale up/down or is being resized EtcdClusterResizeCompleted clusterv1.ConditionType = "EtcdClusterResizeCompleted" // EtcdScaleUpInProgressReason indicates scale up is in progress EtcdScaleUpInProgressReason = "ScalingUp" // EtcdScaleDownInProgressReason indicates scale down is in progress EtcdScaleDownInProgressReason = "ScalingDown" // InitializedCondition shows if etcd cluster has been initialized, which is when the first etcd member has been initialized InitializedCondition clusterv1.ConditionType = "Initialized" // WaitingForEtcdadmInitReason shows that the first etcd member has not been created yet WaitingForEtcdadmInitReason = "WaitingForEtcdadmInit" // EtcdMachinesReadyCondition stores an aggregate status of all owned machines EtcdMachinesReadyCondition clusterv1.ConditionType = "EtcdMachinesReady" // EtcdClusterHasNoOutdatedMembersCondition indicates that all etcd members are up-to-date. NOTE: this includes even members present on Machines not owned by the // etcdadm cluster EtcdClusterHasNoOutdatedMembersCondition clusterv1.ConditionType = "EtcdClusterHasNoOutdatedMachines" // EtcdClusterHasOutdatedMembersReason shows that some of the etcd members are out-of-date EtcdClusterHasOutdatedMembersReason = "EtcdClusterHasOutdatedMachines" )
const (
UpgradeInProgressAnnotation = "etcdcluster.cluster.x-k8s.io/upgrading"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "etcdcluster.cluster.x-k8s.io", Version: "v1alpha3"} // 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_v1alpha3_EtcdadmClusterList_To_v1beta1_EtcdadmClusterList ¶
func Convert_v1alpha3_EtcdadmClusterList_To_v1beta1_EtcdadmClusterList(in *EtcdadmClusterList, out *v1beta1.EtcdadmClusterList, s conversion.Scope) error
Convert_v1alpha3_EtcdadmClusterList_To_v1beta1_EtcdadmClusterList is an autogenerated conversion function.
func Convert_v1alpha3_EtcdadmClusterSpec_To_v1beta1_EtcdadmClusterSpec ¶
func Convert_v1alpha3_EtcdadmClusterSpec_To_v1beta1_EtcdadmClusterSpec(in *EtcdadmClusterSpec, out *v1beta1.EtcdadmClusterSpec, s conversion.Scope) error
Convert_v1alpha3_EtcdadmClusterSpec_To_v1beta1_EtcdadmClusterSpec is an autogenerated conversion function.
func Convert_v1alpha3_EtcdadmClusterStatus_To_v1beta1_EtcdadmClusterStatus ¶
func Convert_v1alpha3_EtcdadmClusterStatus_To_v1beta1_EtcdadmClusterStatus(in *EtcdadmClusterStatus, out *v1beta1.EtcdadmClusterStatus, s conversion.Scope) error
Convert_v1alpha3_EtcdadmClusterStatus_To_v1beta1_EtcdadmClusterStatus is an autogenerated conversion function.
func Convert_v1alpha3_EtcdadmCluster_To_v1beta1_EtcdadmCluster ¶
func Convert_v1alpha3_EtcdadmCluster_To_v1beta1_EtcdadmCluster(in *EtcdadmCluster, out *v1beta1.EtcdadmCluster, s conversion.Scope) error
Convert_v1alpha3_EtcdadmCluster_To_v1beta1_EtcdadmCluster is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmClusterList_To_v1alpha3_EtcdadmClusterList ¶
func Convert_v1beta1_EtcdadmClusterList_To_v1alpha3_EtcdadmClusterList(in *v1beta1.EtcdadmClusterList, out *EtcdadmClusterList, s conversion.Scope) error
Convert_v1beta1_EtcdadmClusterList_To_v1alpha3_EtcdadmClusterList is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmClusterSpec_To_v1alpha3_EtcdadmClusterSpec ¶
func Convert_v1beta1_EtcdadmClusterSpec_To_v1alpha3_EtcdadmClusterSpec(in *v1beta1.EtcdadmClusterSpec, out *EtcdadmClusterSpec, s conversion.Scope) error
Convert_v1beta1_EtcdadmClusterSpec_To_v1alpha3_EtcdadmClusterSpec is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmClusterStatus_To_v1alpha3_EtcdadmClusterStatus ¶
func Convert_v1beta1_EtcdadmClusterStatus_To_v1alpha3_EtcdadmClusterStatus(in *v1beta1.EtcdadmClusterStatus, out *EtcdadmClusterStatus, s conversion.Scope) error
Convert_v1beta1_EtcdadmClusterStatus_To_v1alpha3_EtcdadmClusterStatus is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmCluster_To_v1alpha3_EtcdadmCluster ¶
func Convert_v1beta1_EtcdadmCluster_To_v1alpha3_EtcdadmCluster(in *v1beta1.EtcdadmCluster, out *EtcdadmCluster, s conversion.Scope) error
Convert_v1beta1_EtcdadmCluster_To_v1alpha3_EtcdadmCluster is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
Types ¶
type EtcdadmCluster ¶
type EtcdadmCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec EtcdadmClusterSpec `json:"spec,omitempty"`
Status EtcdadmClusterStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status EtcdadmCluster is the Schema for the etcdadmclusters API
func (*EtcdadmCluster) ConvertFrom ¶
func (dst *EtcdadmCluster) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version (v1beta1) to this EtcdadmCluster.
func (*EtcdadmCluster) ConvertTo ¶
func (src *EtcdadmCluster) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this EtcdadmCluster to the Hub version (v1beta1).
func (*EtcdadmCluster) DeepCopy ¶
func (in *EtcdadmCluster) DeepCopy() *EtcdadmCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdadmCluster.
func (*EtcdadmCluster) DeepCopyInto ¶
func (in *EtcdadmCluster) DeepCopyInto(out *EtcdadmCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdadmCluster) DeepCopyObject ¶
func (in *EtcdadmCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EtcdadmCluster) GetConditions ¶
func (in *EtcdadmCluster) GetConditions() clusterv1.Conditions
func (*EtcdadmCluster) SetConditions ¶
func (in *EtcdadmCluster) SetConditions(conditions clusterv1.Conditions)
type EtcdadmClusterList ¶
type EtcdadmClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []EtcdadmCluster `json:"items"`
}
EtcdadmClusterList contains a list of EtcdadmCluster
func (*EtcdadmClusterList) ConvertFrom ¶
func (dst *EtcdadmClusterList) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version (v1beta1) to this EtcdadmCluster.
func (*EtcdadmClusterList) ConvertTo ¶
func (src *EtcdadmClusterList) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this EtcdadmClusterList to the Hub version (v1beta1).
func (*EtcdadmClusterList) DeepCopy ¶
func (in *EtcdadmClusterList) DeepCopy() *EtcdadmClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdadmClusterList.
func (*EtcdadmClusterList) DeepCopyInto ¶
func (in *EtcdadmClusterList) DeepCopyInto(out *EtcdadmClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdadmClusterList) DeepCopyObject ¶
func (in *EtcdadmClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EtcdadmClusterSpec ¶
type EtcdadmClusterSpec struct {
Replicas *int32 `json:"replicas,omitempty"`
// InfrastructureTemplate is a required reference to a custom resource
// offered by an infrastructure provider.
InfrastructureTemplate corev1.ObjectReference `json:"infrastructureTemplate"`
// +optional
EtcdadmConfigSpec etcdbp.EtcdadmConfigSpec `json:"etcdadmConfigSpec"`
}
EtcdadmClusterSpec defines the desired state of EtcdadmCluster
func (*EtcdadmClusterSpec) DeepCopy ¶
func (in *EtcdadmClusterSpec) DeepCopy() *EtcdadmClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdadmClusterSpec.
func (*EtcdadmClusterSpec) DeepCopyInto ¶
func (in *EtcdadmClusterSpec) DeepCopyInto(out *EtcdadmClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EtcdadmClusterStatus ¶
type EtcdadmClusterStatus struct {
// Total number of non-terminated machines targeted by this etcd cluster
// (their labels match the selector).
// +optional
ReadyReplicas int32 `json:"replicas,omitempty"`
// +optional
InitMachineAddress string `json:"initMachineAddress"`
// +optional
Initialized bool `json:"initialized"`
// Ready reflects the state of the etcd cluster, whether all of its members have passed healthcheck and are ready to serve requests or not.
// +optional
Ready bool `json:"ready"`
// CreationComplete gets set to true once the etcd cluster is created. Its value never changes after that.
// It is used as a way to indicate that the periodic healthcheck loop can be run for the particular etcd cluster.
// +optional
CreationComplete bool `json:"creationComplete"`
// +optional
Endpoints string `json:"endpoints"`
// 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"`
// ObservedGeneration is the latest generation observed by the controller.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions defines current service state of the EtcdadmCluster.
// +optional
Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}
EtcdadmClusterStatus defines the observed state of EtcdadmCluster
func (*EtcdadmClusterStatus) DeepCopy ¶
func (in *EtcdadmClusterStatus) DeepCopy() *EtcdadmClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdadmClusterStatus.
func (*EtcdadmClusterStatus) DeepCopyInto ¶
func (in *EtcdadmClusterStatus) DeepCopyInto(out *EtcdadmClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.