v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

type ContainerPolicy struct {
	// ContainerName specifies the name of container for a given policy
	// +kubebuilder:validation:Required
	ContainerName string `json:"containerName,omitempty"`
	// PercentageIncrease specifies the CPU resource policy that increases
	// CPU resources by the given percentage value
	// +kubebuilder:validation:Optional
	PercentageIncrease *PercentageIncrease `json:"percentageIncrease,omitempty"`
	// FixedResources specifies the CPU resource policy that sets the CPU
	// resources to the given values
	// +kubebuilder:validation:Optional
	FixedResources *FixedResources `json:"fixedResources,omitempty"`
}

ContainerPolicy defines the policy used to determine the target resources for a container

func (*ContainerPolicy) DeepCopy added in v0.1.0

func (in *ContainerPolicy) DeepCopy() *ContainerPolicy

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

func (*ContainerPolicy) DeepCopyInto added in v0.1.0

func (in *ContainerPolicy) DeepCopyInto(out *ContainerPolicy)

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

type DurationPolicy added in v0.0.2

type DurationPolicy struct {
	// fixed time duration policy
	// +kubebuilder:validation:Optional
	Fixed *FixedDurationPolicy `json:"fixedDuration,omitempty"`
	// podCondition based duration policy
	// +kubebuilder:validation:Optional
	PodCondition *PodConditionDurationPolicy `json:"podCondition,omitempty"`
}

DurationPolicy defines the policy used to determine the duration time of a resource boost

func (*DurationPolicy) DeepCopy added in v0.0.2

func (in *DurationPolicy) DeepCopy() *DurationPolicy

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

func (*DurationPolicy) DeepCopyInto added in v0.0.2

func (in *DurationPolicy) DeepCopyInto(out *DurationPolicy)

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

type FixedDurationPolicy added in v0.0.2

type FixedDurationPolicy struct {
	// unit of time for a fixed time policy
	// +kubebuilder:validation:Required
	Unit FixedDurationPolicyUnit `json:"unit,omitempty"`
	// duration value for a fixed time policy
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum:=1
	Value int64 `json:"value,omitempty"`
}

FixedDurationPolicy defines the fixed time duration policy

func (*FixedDurationPolicy) DeepCopy added in v0.0.2

func (in *FixedDurationPolicy) DeepCopy() *FixedDurationPolicy

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

func (*FixedDurationPolicy) DeepCopyInto added in v0.0.2

func (in *FixedDurationPolicy) DeepCopyInto(out *FixedDurationPolicy)

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

type FixedDurationPolicyUnit added in v0.0.2

type FixedDurationPolicyUnit string

FixedDurationPolicyUnit defines the unit of time for a fixed time duration policy +kubebuilder:validation:Enum=Seconds;Minutes

const (
	FixedDurationPolicyUnitSec FixedDurationPolicyUnit = "Seconds"
	FixedDurationPolicyUnitMin FixedDurationPolicyUnit = "Minutes"
)

type FixedResources added in v0.3.0

type FixedResources struct {
	// Requests specifies the CPU requests
	// +kubebuilder:validation:Required
	Requests resource.Quantity `json:"requests,omitempty"`
	// Limits specifies the CPU requests
	// +kubebuilder:validation:Optional
	Limits resource.Quantity `json:"limits,omitempty"`
}

FixedResources defines the CPU resource policy that sets CPU resources to the given values

func (*FixedResources) DeepCopy added in v0.3.0

func (in *FixedResources) DeepCopy() *FixedResources

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

func (*FixedResources) DeepCopyInto added in v0.3.0

func (in *FixedResources) DeepCopyInto(out *FixedResources)

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

type PercentageIncrease added in v0.1.0

type PercentageIncrease struct {
	// Value specifies the percentage value
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum:=1
	Value int64 `json:"value,omitempty"`
}

PercentageIncrease defines the CPU resource policy that increases CPU resources by the given percentage value

func (*PercentageIncrease) DeepCopy added in v0.1.0

func (in *PercentageIncrease) DeepCopy() *PercentageIncrease

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

func (*PercentageIncrease) DeepCopyInto added in v0.1.0

func (in *PercentageIncrease) DeepCopyInto(out *PercentageIncrease)

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

type PodConditionDurationPolicy added in v0.0.2

type PodConditionDurationPolicy struct {
	// type of a PODCondition to check in a policy
	Type corev1.PodConditionType `json:"type,omitempty"`
	// status of a PODCondition to match in a policy
	Status corev1.ConditionStatus `json:"status,omitempty"`
}

PodConditionDurationPolicy defines the PodCondition based duration policy

func (*PodConditionDurationPolicy) DeepCopy added in v0.0.2

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

func (*PodConditionDurationPolicy) DeepCopyInto added in v0.0.2

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

type ResourcePolicy added in v0.1.0

type ResourcePolicy struct {
	// ContainerPolicies specifies resource policies for the containers
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems:=1
	ContainerPolicies []ContainerPolicy `json:"containerPolicies,omitempty"`
}

ResourcePolicy defines the policy used to determine the target resources for a POD

func (*ResourcePolicy) DeepCopy added in v0.1.0

func (in *ResourcePolicy) DeepCopy() *ResourcePolicy

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

func (*ResourcePolicy) DeepCopyInto added in v0.1.0

func (in *ResourcePolicy) DeepCopyInto(out *ResourcePolicy)

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

type StartupCPUBoost

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

	Selector metav1.LabelSelector  `json:"selector,omitempty"`
	Spec     StartupCPUBoostSpec   `json:"spec,omitempty"`
	Status   StartupCPUBoostStatus `json:"status,omitempty"`
}

StartupCPUBoost is the Schema for the startupcpuboosts API

func (*StartupCPUBoost) DeepCopy

func (in *StartupCPUBoost) DeepCopy() *StartupCPUBoost

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

func (*StartupCPUBoost) DeepCopyInto

func (in *StartupCPUBoost) DeepCopyInto(out *StartupCPUBoost)

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

func (*StartupCPUBoost) DeepCopyObject

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

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

type StartupCPUBoostList

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

StartupCPUBoostList contains a list of StartupCPUBoost

func (*StartupCPUBoostList) DeepCopy

func (in *StartupCPUBoostList) DeepCopy() *StartupCPUBoostList

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

func (*StartupCPUBoostList) DeepCopyInto

func (in *StartupCPUBoostList) DeepCopyInto(out *StartupCPUBoostList)

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

func (*StartupCPUBoostList) DeepCopyObject

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

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

type StartupCPUBoostSpec

type StartupCPUBoostSpec struct {
	// ResourcePolicy specifies policies for container resource increase
	ResourcePolicy ResourcePolicy `json:"resourcePolicy,omitempty"`
	// DurationPolicy specifies policies for resource boost duration
	// +kubebuilder:validation:Required
	DurationPolicy DurationPolicy `json:"durationPolicy,omitempty"`
}

StartupCPUBoostSpec defines the desired state of StartupCPUBoost

func (*StartupCPUBoostSpec) DeepCopy

func (in *StartupCPUBoostSpec) DeepCopy() *StartupCPUBoostSpec

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

func (*StartupCPUBoostSpec) DeepCopyInto

func (in *StartupCPUBoostSpec) DeepCopyInto(out *StartupCPUBoostSpec)

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

type StartupCPUBoostStatus

type StartupCPUBoostStatus struct {
}

StartupCPUBoostStatus defines the observed state of StartupCPUBoost

func (*StartupCPUBoostStatus) DeepCopy

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

func (*StartupCPUBoostStatus) DeepCopyInto

func (in *StartupCPUBoostStatus) DeepCopyInto(out *StartupCPUBoostStatus)

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