v1alpha1

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.koordinator.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "config.koordinator.sh", Version: "v1alpha1"}

	SchemeGroupVersion = GroupVersion
	// 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

func Resource

func Resource(resource string) schema.GroupResource

Types

type ClusterColocationProfile

type ClusterColocationProfile struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterColocationProfileSpec   `json:"spec,omitempty"`
	Status            ClusterColocationProfileStatus `json:"status,omitempty"`
}

ClusterColocationProfile is the Schema for the ClusterColocationProfile API

func (*ClusterColocationProfile) DeepCopy

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

func (*ClusterColocationProfile) DeepCopyInto

func (in *ClusterColocationProfile) DeepCopyInto(out *ClusterColocationProfile)

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

func (*ClusterColocationProfile) DeepCopyObject

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

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

type ClusterColocationProfileList

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

ClusterColocationProfileList contains a list of ClusterColocationProfile

func (*ClusterColocationProfileList) DeepCopy

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

func (*ClusterColocationProfileList) DeepCopyInto

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

func (*ClusterColocationProfileList) DeepCopyObject

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

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

type ClusterColocationProfileSpec

type ClusterColocationProfileSpec struct {
	// NamespaceSelector decides whether to mutate/validate Pods if the
	// namespace matches the selector.
	// Default to the empty LabelSelector, which matches everything.
	// +optional
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`

	// Selector decides whether to mutate/validate Pods if the
	// Pod matches the selector.
	// Default to the empty LabelSelector, which matches everything.
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// Probability indicates profile will make effect with a probability.
	// +optional
	Probability *intstr.IntOrString `json:"probability,omitempty"`

	// QoSClass describes the type of Koordinator QoS that the Pod is running.
	// The value will be injected into Pod as label koordinator.sh/qosClass.
	// Options are LSE/LSR/LS/BE/SYSTEM.
	// +kubebuilder:validation:Enum=LSE;LSR;LS;BE;SYSTEM
	// +optional
	QoSClass string `json:"qosClass"`

	// If specified, the priorityClassName and the priority value defined in PriorityClass
	// will be injected into the Pod.
	// The PriorityClassName, priority value in PriorityClassName and
	// KoordinatorPriority will affect the scheduling, preemption and
	// other behaviors of Koordinator system.
	// +optional
	PriorityClassName string `json:"priorityClassName"`

	// KoordinatorPriority defines the Pod sub-priority in Koordinator.
	// The priority value will be injected into Pod as label koordinator.sh/priority.
	// Various Koordinator components determine the priority of the Pod
	// in the Koordinator through KoordinatorPriority and the priority value in PriorityClassName.
	// The higher the value, the higher the priority.
	// +optional
	KoordinatorPriority *int32 `json:"koordinatorPriority,omitempty"`

	// Labels describes the k/v pair that needs to inject into Pod.Labels
	// +optional
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations describes the k/v pair that needs to inject into Pod.Annotations
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`

	// LabelKeysMapping describes the labels that needs to inject into Pod.Labels with the same values.
	// It sets the Pod.Labels[LabelsToLabels[k]] = Pod.Labels[k] for each key k.
	// +optional
	LabelKeysMapping map[string]string `json:"labelKeysMapping,omitempty"`

	// AnnotationKeysMapping describes the annotations that needs to inject into Pod.Annotations with the same values.
	// It sets the Pod.Annotations[AnnotationsToAnnotations[k]] = Pod.Annotations[k] for each key k.
	// +optional
	AnnotationKeysMapping map[string]string `json:"annotationKeysMapping,omitempty"`

	// If specified, the pod will be dispatched by specified scheduler.
	// +optional
	SchedulerName string `json:"schedulerName,omitempty"`

	// Patch indicates patching podTemplate that will be injected to the Pod.
	// +optional
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	Patch runtime.RawExtension `json:"patch,omitempty"`
}

ClusterColocationProfileSpec is a description of a ClusterColocationProfile.

func (*ClusterColocationProfileSpec) DeepCopy

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

func (*ClusterColocationProfileSpec) DeepCopyInto

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

type ClusterColocationProfileStatus

type ClusterColocationProfileStatus struct {
}

ClusterColocationProfileStatus represents information about the status of a ClusterColocationProfile.

func (*ClusterColocationProfileStatus) DeepCopy

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

func (*ClusterColocationProfileStatus) 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