v1alpha1

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=karpenter.kwok.sh

Index

Constants

View Source
const (
	// Labels that can be selected on and are propagated to the node
	InstanceSizeLabelKey   = apis.Group + "/instance-size"
	InstanceFamilyLabelKey = apis.Group + "/instance-family"
	InstanceMemoryLabelKey = apis.Group + "/instance-memory"
	InstanceCPULabelKey    = apis.Group + "/instance-cpu"

	// Internal labels that are propagated to the node
	KwokLabelKey          = "kwok.x-k8s.io/node"
	KwokLabelValue        = "fake"
	NodeViewerLabelKey    = "eks-node-viewer/instance-price"
	KwokPartitionLabelKey = "kwok-partition"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KWOKNodeClass

type KWOKNodeClass struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:default:={conditions: {{type: "Ready", status: "True", reason:"Ready", lastTransitionTime: "2024-01-01T01:01:01Z", message: ""}}}
	Status KWOKNodeClassStatus `json:"status,omitempty"`
}

KWOKNodeClass is the Schema for the KWOKNodeClass API +kubebuilder:object:root=true +kubebuilder:resource:path=kwoknodeclasses,scope=Cluster,categories=karpenter,shortName={kwoknc,kwokncs} +kubebuilder:subresource:status

func (*KWOKNodeClass) DeepCopy

func (in *KWOKNodeClass) DeepCopy() *KWOKNodeClass

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

func (*KWOKNodeClass) DeepCopyInto

func (in *KWOKNodeClass) DeepCopyInto(out *KWOKNodeClass)

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

func (*KWOKNodeClass) DeepCopyObject

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

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

func (*KWOKNodeClass) GetConditions

func (in *KWOKNodeClass) GetConditions() []status.Condition

func (*KWOKNodeClass) SetConditions

func (in *KWOKNodeClass) SetConditions(conditions []status.Condition)

func (*KWOKNodeClass) StatusConditions

func (in *KWOKNodeClass) StatusConditions() status.ConditionSet

type KWOKNodeClassList

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

KWOKNodeClassList contains a list of KwokNodeClass +kubebuilder:object:root=true

func (*KWOKNodeClassList) DeepCopy

func (in *KWOKNodeClassList) DeepCopy() *KWOKNodeClassList

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

func (*KWOKNodeClassList) DeepCopyInto

func (in *KWOKNodeClassList) DeepCopyInto(out *KWOKNodeClassList)

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

func (*KWOKNodeClassList) DeepCopyObject

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

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

type KWOKNodeClassStatus added in v1.0.0

type KWOKNodeClassStatus struct {
	// Conditions contains signals for health and readiness
	Conditions []status.Condition `json:"conditions,omitempty"`
}

KWOKNodeClassStatus contains the resolved state of the KwokNodeClass

func (*KWOKNodeClassStatus) DeepCopy added in v1.0.0

func (in *KWOKNodeClassStatus) DeepCopy() *KWOKNodeClassStatus

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

func (*KWOKNodeClassStatus) DeepCopyInto added in v1.0.0

func (in *KWOKNodeClassStatus) DeepCopyInto(out *KWOKNodeClassStatus)

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