v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=karpenter.cluster.x-k8s.io

Index

Constants

View Source
const Group = "karpenter.cluster.x-k8s.io"

Variables

View Source
var (
	CapacityGroup = "capacity." + Group

	LabelInstanceMemory = CapacityGroup + "/memory"
	LabelInstanceCpu    = CapacityGroup + "/cpu"

	// RestrictedLabelDomains are either prohibited by the kubelet or reserved by karpenter
	RestrictedLabelDomains = []string{
		Group,
	}
)
View Source
var (
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: "v1alpha1"}
	SchemeBuilder      = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error {
		scheme.AddKnownTypes(SchemeGroupVersion,
			&ClusterAPINodeClass{},
			&ClusterAPINodeClassList{},
		)
		metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
		return nil
	})
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ClusterAPINodeClass

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

	Spec   ClusterAPINodeClassSpec   `json:"spec,omitempty"`
	Status ClusterAPINodeClassStatus `json:"status,omitempty"`
}

ClusterAPINodeClass is the Schema for the ClusterAPINodeClass API +kubebuilder:object:root=true +kubebuilder:resource:path=clusterapinodeclasses,scope=Cluster,categories=karpenter,shortName={capinc,capincs} +kubebuilder:subresource:status

func (*ClusterAPINodeClass) DeepCopy

func (in *ClusterAPINodeClass) DeepCopy() *ClusterAPINodeClass

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

func (*ClusterAPINodeClass) DeepCopyInto

func (in *ClusterAPINodeClass) DeepCopyInto(out *ClusterAPINodeClass)

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

func (*ClusterAPINodeClass) DeepCopyObject

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

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

type ClusterAPINodeClassList

type ClusterAPINodeClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ClusterAPINodeClass `json:"items"`
}

ClusterAPINodeClassList contains a list of ClusterAPINodeClasses +kubebuilder:object:root=true

func (*ClusterAPINodeClassList) DeepCopy

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

func (*ClusterAPINodeClassList) DeepCopyInto

func (in *ClusterAPINodeClassList) DeepCopyInto(out *ClusterAPINodeClassList)

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

func (*ClusterAPINodeClassList) DeepCopyObject

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

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

type ClusterAPINodeClassSpec

type ClusterAPINodeClassSpec struct {
	// scalableResourceSelector is a LabelSelector that is used to identify the Cluster API scalable
	// resources that are participating in Karpenter provisioning. For a deeper discussion of
	// how label selectors are used in Kubernetes, please see the following:
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
	// https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/label-selector/
	ScalableResourceSelector *metav1.LabelSelector `json:"scalableResourceSelector,omitempty"`
}

ClusterAPINodeClassSpec is the top level specification for ClusterAPINodeClasses.

func (*ClusterAPINodeClassSpec) DeepCopy

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

func (*ClusterAPINodeClassSpec) DeepCopyInto

func (in *ClusterAPINodeClassSpec) DeepCopyInto(out *ClusterAPINodeClassSpec)

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

type ClusterAPINodeClassStatus

type ClusterAPINodeClassStatus struct{}

ClusterAPINodeClassStatus is the status for ClusterAPINodeClasses

func (*ClusterAPINodeClassStatus) DeepCopy

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

func (*ClusterAPINodeClassStatus) DeepCopyInto

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