v1alpha2

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the controlplane v1alpha2 API group +kubebuilder:object:generate=true +groupName=controlplane.cluster.x-k8s.io

Index

Constants

View Source
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

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "controlplane.cluster.x-k8s.io", Version: "v1alpha2"}

	// 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 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) 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.

func (*CritControlPlane) Hub

func (*CritControlPlane) Hub()

Hub marks this type as a conversion hub.

func (*CritControlPlane) SetupWebhookWithManager

func (r *CritControlPlane) SetupWebhookWithManager(mgr ctrl.Manager) error

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

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

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.

func (*CritControlPlaneSpec) Hash

func (c *CritControlPlaneSpec) Hash() string

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"`

	// Total number of unavailable machines targeted by this control plane.
	// 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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL