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: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the scheduling v1alpha1 API group +kubebuilder:object:generate=true +groupName=quota.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: "quota.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

Resource is required by pkg/client/listers/...

Types

type ElasticQuotaProfile

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

	Spec   ElasticQuotaProfileSpec   `json:"spec,omitempty"`
	Status ElasticQuotaProfileStatus `json:"status,omitempty"`
}

func (*ElasticQuotaProfile) DeepCopy

func (in *ElasticQuotaProfile) DeepCopy() *ElasticQuotaProfile

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

func (*ElasticQuotaProfile) DeepCopyInto

func (in *ElasticQuotaProfile) DeepCopyInto(out *ElasticQuotaProfile)

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

func (*ElasticQuotaProfile) DeepCopyObject

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

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

type ElasticQuotaProfileList

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

ElasticQuotaProfileList contains a list of ElasticQuotaProfile

func (*ElasticQuotaProfileList) DeepCopy

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

func (*ElasticQuotaProfileList) DeepCopyInto

func (in *ElasticQuotaProfileList) DeepCopyInto(out *ElasticQuotaProfileList)

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

func (*ElasticQuotaProfileList) DeepCopyObject

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

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

type ElasticQuotaProfileSpec

type ElasticQuotaProfileSpec struct {
	// QuotaName defines the associated quota name of the profile.
	// +required
	QuotaName string `json:"quotaName"`
	// QuotaLabels defines the labels of the quota.
	QuotaLabels map[string]string `json:"quotaLabels,omitempty"`
	// ResourceRatio is a ratio, we will use it to fix the resource fragmentation problem.
	// If the total resource is 100 and the resource ratio is 0.9, the allocable resource is 100*0.9=90
	ResourceRatio *string `json:"resourceRatio,omitempty"`
	// NodeSelector defines a node selector to select nodes.
	// +required
	NodeSelector *metav1.LabelSelector `json:"nodeSelector"`
}

func (*ElasticQuotaProfileSpec) DeepCopy

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

func (*ElasticQuotaProfileSpec) DeepCopyInto

func (in *ElasticQuotaProfileSpec) DeepCopyInto(out *ElasticQuotaProfileSpec)

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

type ElasticQuotaProfileStatus

type ElasticQuotaProfileStatus struct {
}

func (*ElasticQuotaProfileStatus) DeepCopy

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

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