v1alpha1

package
v0.6.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Overview

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

Index

Constants

View Source
const (
	// KopsMachinePoolStateReadyCondition reports on the successful management of the Kops state.
	KopsMachinePoolStateReadyCondition clusterv1.ConditionType = "KopsMachinePoolStateReady"
)
View Source
const (
	// KopsMachinePoolStateReconciliationFailedReason (Severity=Error) indicates that Kops state couldn't be created/updated.
	KopsMachinePoolStateReconciliationFailedReason = "KopsMachinePoolStateReconciliationFailed"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.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

This section is empty.

Types

type KopsMachinePool

type KopsMachinePool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KopsMachinePoolSpec   `json:"spec,omitempty"`
	Status KopsMachinePoolStatus `json:"status,omitempty"`
}

KopsMachinePool is the Schema for the kopsmachinepools API

func (*KopsMachinePool) DeepCopy

func (in *KopsMachinePool) DeepCopy() *KopsMachinePool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KopsMachinePool.

func (*KopsMachinePool) DeepCopyInto

func (in *KopsMachinePool) DeepCopyInto(out *KopsMachinePool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KopsMachinePool) DeepCopyObject

func (in *KopsMachinePool) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KopsMachinePool) GetConditions

func (cp *KopsMachinePool) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*KopsMachinePool) SetConditions

func (cp *KopsMachinePool) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

type KopsMachinePoolList

type KopsMachinePoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KopsMachinePool `json:"items"`
}

KopsMachinePoolList contains a list of KopsMachinePool

func (*KopsMachinePoolList) DeepCopy

func (in *KopsMachinePoolList) DeepCopy() *KopsMachinePoolList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KopsMachinePoolList.

func (*KopsMachinePoolList) DeepCopyInto

func (in *KopsMachinePoolList) DeepCopyInto(out *KopsMachinePoolList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KopsMachinePoolList) DeepCopyObject

func (in *KopsMachinePoolList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KopsMachinePoolSpec

type KopsMachinePoolSpec struct {
	// ProviderID is the ARN of the associated ASG
	// +optional
	ProviderID string `json:"providerID,omitempty"`

	// ProviderIDList are the identification IDs of machine instances provided by the provider.
	// This field must match the provider IDs as seen on the node objects corresponding to a machine pool's machine instances.
	// +optional
	ProviderIDList []string `json:"providerIDList,omitempty"`

	// ClusterName is the name of the Cluster this object belongs to.
	// +kubebuilder:validation:MinLength=1
	ClusterName string `json:"clusterName"`

	// KarpenterProvisioners is the list of provisioners to be applied.
	// +optional
	KarpenterProvisioners []karpenter.Provisioner `json:"karpenterProvisioners,omitempty"`

	// KopsInstanceGroupSpec declare a desired InstanceGroup Kops resource: https://kops.sigs.k8s.io/instance_groups/
	KopsInstanceGroupSpec kops.InstanceGroupSpec `json:"kopsInstanceGroupSpec"`

	// Spot.io metadata labels: https://kops.sigs.k8s.io/getting_started/spot-ocean/
	SpotInstOptions map[string]string `json:"spotInstOptions,omitempty"`
}

KopsMachinePoolSpec defines the desired state of KopsMachinePool

func (*KopsMachinePoolSpec) DeepCopy

func (in *KopsMachinePoolSpec) DeepCopy() *KopsMachinePoolSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KopsMachinePoolSpec.

func (*KopsMachinePoolSpec) DeepCopyInto

func (in *KopsMachinePoolSpec) DeepCopyInto(out *KopsMachinePoolSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KopsMachinePoolStatus

type KopsMachinePoolStatus struct {
	// Ready denotes that the API Server is ready to
	// receive requests.
	// +kubebuilder:default=false
	Ready bool `json:"ready,omitempty"`

	// Replicas is the most recently observed number of replicas
	// +optional
	Replicas int32 `json:"replicas"`

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

	// Conditions defines current service state of the KopsMachinePool.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

KopsMachinePoolStatus defines the observed state of KopsMachinePool

func (*KopsMachinePoolStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KopsMachinePoolStatus.

func (*KopsMachinePoolStatus) DeepCopyInto

func (in *KopsMachinePoolStatus) DeepCopyInto(out *KopsMachinePoolStatus)

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