Documentation
¶
Overview ¶
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
- type EtcdadmCluster
- 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
- 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" )
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 ¶
This section is empty.
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) 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) 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"`
// +optional
Version string `json:"version,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"`
}
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"`
// +optional
Ready bool `json:"ready"`
// +optional
Endpoint string `json:"endpoint"`
// 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.