v1alpha1

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the crane API. +k8s:deepcopy-gen=package,register +groupName=ensurance.crane.io

Index

Constants

View Source
const GroupName = "ensurance.crane.io"

GroupName specifies the group name used to register the objects.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// Depreciated: use Install instead
	AddToScheme = localSchemeBuilder.AddToScheme
	Install     = localSchemeBuilder.AddToScheme
)
View Source
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}

GroupVersion specifies the group and the version used to register the objects.

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AvoidanceAction

type AvoidanceAction struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AvoidanceActionSpec   `json:"spec"`
	Status AvoidanceActionStatus `json:"status,omitempty"`
}

AvoidanceAction defines Avoidance action

func (*AvoidanceAction) DeepCopy

func (in *AvoidanceAction) DeepCopy() *AvoidanceAction

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

func (*AvoidanceAction) DeepCopyInto

func (in *AvoidanceAction) DeepCopyInto(out *AvoidanceAction)

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

func (*AvoidanceAction) DeepCopyObject

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

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

type AvoidanceActionList

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

AvoidanceActionList contains a list of AvoidanceAction

func (*AvoidanceActionList) DeepCopy

func (in *AvoidanceActionList) DeepCopy() *AvoidanceActionList

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

func (*AvoidanceActionList) DeepCopyInto

func (in *AvoidanceActionList) DeepCopyInto(out *AvoidanceActionList)

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

func (*AvoidanceActionList) DeepCopyObject

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

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

type AvoidanceActionSpec

type AvoidanceActionSpec struct {
	// CoolDownSeconds is the seconds for cool down when do avoidance.
	// Defaults to 300. Minimum value is 1.
	// +optional
	// +kubebuilder:default=300
	CoolDownSeconds int32 `json:"coolDownSeconds,omitempty"`

	// Throttle describes the throttling action
	// +optional
	Throttle *ThrottleAction `json:"throttle,omitempty"`

	//Eviction describes the eviction action
	// +optional
	Eviction *EvictionAction `json:"eviction,omitempty"`

	// Description is an arbitrary string that usually provides guidelines on
	// when this action should be used.
	// +optional
	// +kubebuilder:validation:MaxLength=1024
	Description string `json:"description,omitempty"`
}

func (*AvoidanceActionSpec) DeepCopy

func (in *AvoidanceActionSpec) DeepCopy() *AvoidanceActionSpec

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

func (*AvoidanceActionSpec) DeepCopyInto

func (in *AvoidanceActionSpec) DeepCopyInto(out *AvoidanceActionSpec)

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

type AvoidanceActionStatus

type AvoidanceActionStatus struct {
}

AvoidanceActionStatus defines the desired status of AvoidanceAction

func (*AvoidanceActionStatus) DeepCopy

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

func (*AvoidanceActionStatus) DeepCopyInto

func (in *AvoidanceActionStatus) DeepCopyInto(out *AvoidanceActionStatus)

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

type AvoidanceActionStrategy

type AvoidanceActionStrategy string
const (
	// AvoidanceActionStrategyNone do the action when the rules triggered.
	AvoidanceActionStrategyNone AvoidanceActionStrategy = "None"
	// AvoidanceActionStrategyPreview is the preview for QosEnsuranceStrategyNone.
	AvoidanceActionStrategyPreview AvoidanceActionStrategy = "Preview"
)

type AvoidanceStrategy

type AvoidanceStrategy struct {
	// +optional
	AllowThrottle bool `json:"allowThrottle,omitempty"`
	// +optional
	AllowEvict bool `json:"allowEvict,omitempty"`
}

func (*AvoidanceStrategy) DeepCopy

func (in *AvoidanceStrategy) DeepCopy() *AvoidanceStrategy

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

func (*AvoidanceStrategy) DeepCopyInto

func (in *AvoidanceStrategy) DeepCopyInto(out *AvoidanceStrategy)

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

type CPUThrottle

type CPUThrottle struct {
	// MinCPURatio is the min of cpu ratio for low level pods,
	// for example: the pod limit is 4096, ratio is 10, the minimum is 409.
	// MinCPURatio range [0,100]
	// +optional
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=100
	MinCPURatio int32 `json:"minCPURatio,omitempty"`

	// StepCPURatio is the step of cpu share and limit for once down-size.
	// StepCPURatio range [0,100]
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=100
	StepCPURatio int32 `json:"stepCPURatio,omitempty"`
}

func (*CPUThrottle) DeepCopy

func (in *CPUThrottle) DeepCopy() *CPUThrottle

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

func (*CPUThrottle) DeepCopyInto

func (in *CPUThrottle) DeepCopyInto(out *CPUThrottle)

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

type EvictionAction

type EvictionAction struct {
	// TerminationGracePeriodSeconds is the duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
	// If this value is nil, the pod's terminationGracePeriodSeconds will be used.
	// Otherwise, this value overrides the value provided by the pod spec.
	// Value must be non-negative integer. The value zero indicates delete immediately.
	// +optional
	TerminationGracePeriodSeconds *int32 `json:"terminationGracePeriodSeconds,omitempty"`
}

func (*EvictionAction) DeepCopy

func (in *EvictionAction) DeepCopy() *EvictionAction

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

func (*EvictionAction) DeepCopyInto

func (in *EvictionAction) DeepCopyInto(out *EvictionAction)

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

type MemoryThrottle

type MemoryThrottle struct {
	// ForceGC means force gc page cache for pods with low priority
	// +optional
	ForceGC bool `json:"forceGC,omitempty"`
}

func (*MemoryThrottle) DeepCopy

func (in *MemoryThrottle) DeepCopy() *MemoryThrottle

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

func (*MemoryThrottle) DeepCopyInto

func (in *MemoryThrottle) DeepCopyInto(out *MemoryThrottle)

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

type MetricRule

type MetricRule struct {
	// Name is the name of the given metric
	Name string `json:"name"`
	// Selector is the selector for the given metric
	// it is the string-encoded form of a standard kubernetes label selector
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
	// Value is the target value of the metric (as a quantity).
	Value resource.Quantity `json:"value,omitempty"`
}

func (*MetricRule) DeepCopy

func (in *MetricRule) DeepCopy() *MetricRule

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

func (*MetricRule) DeepCopyInto

func (in *MetricRule) DeepCopyInto(out *MetricRule)

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

type NodeLocalGet

type NodeLocalGet struct {
	// LocalCacheTTLSeconds is the cache expired time.
	// Defaults to 60
	// +optional
	// +kubebuilder:default=60
	LocalCacheTTLSeconds int32 `json:"localCacheTTLSeconds,omitempty"`
}

func (*NodeLocalGet) DeepCopy

func (in *NodeLocalGet) DeepCopy() *NodeLocalGet

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

func (*NodeLocalGet) DeepCopyInto

func (in *NodeLocalGet) DeepCopyInto(out *NodeLocalGet)

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

type NodeQOSEnsurancePolicy

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

	Spec   NodeQOSEnsurancePolicySpec   `json:"spec"`
	Status NodeQOSEnsurancePolicyStatus `json:"status,omitempty"`
}

NodeQOSEnsurancePolicy is the Schema for the nodeqosensurancepolicies API

func (*NodeQOSEnsurancePolicy) DeepCopy

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

func (*NodeQOSEnsurancePolicy) DeepCopyInto

func (in *NodeQOSEnsurancePolicy) DeepCopyInto(out *NodeQOSEnsurancePolicy)

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

func (*NodeQOSEnsurancePolicy) DeepCopyObject

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

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

type NodeQOSEnsurancePolicyList

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

NodeQOSEnsurancePolicyList contains a list of NodeQOSEnsurancePolicy

func (*NodeQOSEnsurancePolicyList) DeepCopy

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

func (*NodeQOSEnsurancePolicyList) DeepCopyInto

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

func (*NodeQOSEnsurancePolicyList) DeepCopyObject

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

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

type NodeQOSEnsurancePolicySpec

type NodeQOSEnsurancePolicySpec struct {
	// Selector is a label query over pods that should match the policy
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// NodeQualityProbe defines the way to probe a node
	NodeQualityProbe NodeQualityProbe `json:"nodeQualityProbe,omitempty"`

	// ObjectiveEnsurances is an array of ObjectiveEnsurance
	ObjectiveEnsurances []ObjectiveEnsurance `json:"objectiveEnsurances,omitempty"`
}

NodeQOSEnsurancePolicySpec defines the desired status of NodeQOSEnsurancePolicy

func (*NodeQOSEnsurancePolicySpec) DeepCopy

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

func (*NodeQOSEnsurancePolicySpec) DeepCopyInto

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

type NodeQOSEnsurancePolicyStatus

type NodeQOSEnsurancePolicyStatus struct {
}

NodeQOSEnsurancePolicyStatus defines the observed status of NodeQOSEnsurancePolicy

func (*NodeQOSEnsurancePolicyStatus) DeepCopy

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

func (*NodeQOSEnsurancePolicyStatus) DeepCopyInto

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

type NodeQualityProbe

type NodeQualityProbe struct {
	// HTTPGet specifies the http request to perform.
	// +optional
	HTTPGet *corev1.HTTPGetAction `json:"httpGet,omitempty"`

	// NodeLocalGet specifies how to request node local
	// +optional
	NodeLocalGet *NodeLocalGet `json:"nodeLocalGet,omitempty"`

	// TimeoutSeconds is the timeout for request.
	// Defaults to 0, no timeout forever.
	// +optional
	TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"`
}

func (*NodeQualityProbe) DeepCopy

func (in *NodeQualityProbe) DeepCopy() *NodeQualityProbe

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

func (*NodeQualityProbe) DeepCopyInto

func (in *NodeQualityProbe) DeepCopyInto(out *NodeQualityProbe)

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

type ObjectiveEnsurance

type ObjectiveEnsurance struct {
	// Name of the objective ensurance
	Name string `json:"name,omitempty"`

	// Metric rule define the metric identifier and target
	MetricRule *MetricRule `json:"metricRule,omitempty"`

	// How many times the rule is reach, to trigger avoidance action.
	// Defaults to 1. Minimum value is 1.
	// +optional
	// +kubebuilder:default=1
	AvoidanceThreshold int32 `json:"avoidanceThreshold,omitempty"`

	// How many times the rule can restore.
	// Defaults to 1. Minimum value is 1.
	// +optional
	// +kubebuilder:default=1
	RestoreThreshold int32 `json:"restoreThreshold,omitempty"`

	// Avoidance action to be executed when the rule triggered
	AvoidanceActionName string `json:"actionName"`

	// Action only preview, not to do the real action.
	// Default AvoidanceActionStrategy is None.
	// +optional
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=None;Preview
	// +kubebuilder:default=None
	Strategy AvoidanceActionStrategy `json:"strategy,omitempty"`
}

ObjectiveEnsurance defines the policy that

func (*ObjectiveEnsurance) DeepCopy

func (in *ObjectiveEnsurance) DeepCopy() *ObjectiveEnsurance

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

func (*ObjectiveEnsurance) DeepCopyInto

func (in *ObjectiveEnsurance) DeepCopyInto(out *ObjectiveEnsurance)

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

type PodQOSEnsurancePolicy

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

	Spec   PodQOSEnsurancePolicySpec   `json:"spec"`
	Status PodQOSEnsurancePolicyStatus `json:"status,omitempty"`
}

PodQOSEnsurancePolicy is the Schema for the podqosensurancepolicies API

func (*PodQOSEnsurancePolicy) DeepCopy

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

func (*PodQOSEnsurancePolicy) DeepCopyInto

func (in *PodQOSEnsurancePolicy) DeepCopyInto(out *PodQOSEnsurancePolicy)

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

func (*PodQOSEnsurancePolicy) DeepCopyObject

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

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

type PodQOSEnsurancePolicyList

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

PodQOSEnsurancePolicyList contains a list of PodQOSEnsurancePolicy

func (*PodQOSEnsurancePolicyList) DeepCopy

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

func (*PodQOSEnsurancePolicyList) DeepCopyInto

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

func (*PodQOSEnsurancePolicyList) DeepCopyObject

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

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

type PodQOSEnsurancePolicySpec

type PodQOSEnsurancePolicySpec struct {
	// Selector is a label query over pods that should match the policy
	Selector metav1.LabelSelector `json:"selector,omitempty"`

	//QualityProbe defines the way to probe a pod
	QualityProbe QualityProbe `json:"qualityProbe,omitempty"`

	// ObjectiveEnsurances is an array of ObjectiveEnsurance
	ObjectiveEnsurances []ObjectiveEnsurance `json:"objectiveEnsurance,omitempty"`
}

PodQOSEnsurancePolicySpec defines the desired status of PodQOSEnsurancePolicy

func (*PodQOSEnsurancePolicySpec) DeepCopy

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

func (*PodQOSEnsurancePolicySpec) DeepCopyInto

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

type PodQOSEnsurancePolicyStatus

type PodQOSEnsurancePolicyStatus struct {
}

PodQOSEnsurancePolicyStatus defines the observed status of PodQOSEnsurancePolicy

func (*PodQOSEnsurancePolicyStatus) DeepCopy

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

func (*PodQOSEnsurancePolicyStatus) DeepCopyInto

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

type QualityProbe

type QualityProbe struct {
	// HTTPGet specifies the http request to perform.
	// +optional
	HTTPGet *corev1.HTTPGetAction `json:"httpGet,omitempty"`

	// TimeoutSeconds is the timeout for request.
	// Defaults to 0, no timeout forever
	// +optional
	TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"`
}

func (*QualityProbe) DeepCopy

func (in *QualityProbe) DeepCopy() *QualityProbe

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

func (*QualityProbe) DeepCopyInto

func (in *QualityProbe) DeepCopyInto(out *QualityProbe)

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

type ResourceMutation

type ResourceMutation struct {
	// +optional
	RequestMutations []ResourcetMutation `json:"requestMutations,omitempty"`
	// +optional
	LimitMutations []ResourcetMutation `json:"limitMutations,omitempty"`
}

func (*ResourceMutation) DeepCopy

func (in *ResourceMutation) DeepCopy() *ResourceMutation

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

func (*ResourceMutation) DeepCopyInto

func (in *ResourceMutation) DeepCopyInto(out *ResourceMutation)

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

type ResourcePriority

type ResourcePriority struct {
	// CPUPriority define the cpu priority for the pods.
	// CPUPriority range [0,7], 0 is the highest level.
	// When the cpu resource is shortage, the low level pods would be throttled
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=7
	// +optional
	CPUPriority int32 `json:"cpuPriority,omitempty"`
	// MemoryPriority define the memory priority for the pods.
	// MemoryPriority range [0,7], 0 is the highest level
	// When the memory is shortage, the low level pods would priority be killed
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=7
	// +optional
	MemoryPriority int32 `json:"memoryPriority,omitempty"`
	// NetworkIOPriority define the network IO priority for the pods.
	// NetworkIOPriority range [0,7], 0 is the highest level.
	// When the network device is busy, the low level pods would be throttled
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=7
	// +optional
	NetworkIOPriority int32 `json:"networkIOPriority,omitempty"`
}

func (*ResourcePriority) DeepCopy

func (in *ResourcePriority) DeepCopy() *ResourcePriority

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

func (*ResourcePriority) DeepCopyInto

func (in *ResourcePriority) DeepCopyInto(out *ResourcePriority)

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

type ResourcetMutation

type ResourcetMutation struct {
	// ResourceName is the origin resource name which to be mutated
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=cpu;memory
	// +required
	ResourceName corev1.ResourceName `json:"resourceName,omitempty"`

	// MutatingResourceName is the resource name mutate
	// +required
	MutatingResourceName corev1.ResourceName `json:"mutatingResourceName,omitempty"`
}

func (*ResourcetMutation) DeepCopy

func (in *ResourcetMutation) DeepCopy() *ResourcetMutation

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

func (*ResourcetMutation) DeepCopyInto

func (in *ResourcetMutation) DeepCopyInto(out *ResourcetMutation)

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

type ServicePolicy

type ServicePolicy struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ServicePolicySpec `json:"spec"`

	Status ServicePolicyStatus `json:"status,omitempty"`
}

ServicePolicy defines the behaviours for the pods which have the same priority class

func (*ServicePolicy) DeepCopy

func (in *ServicePolicy) DeepCopy() *ServicePolicy

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

func (*ServicePolicy) DeepCopyInto

func (in *ServicePolicy) DeepCopyInto(out *ServicePolicy)

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

func (*ServicePolicy) DeepCopyObject

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

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

type ServicePolicyList

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

ServicePolicyList contains a list of ServicePolicy

func (*ServicePolicyList) DeepCopy

func (in *ServicePolicyList) DeepCopy() *ServicePolicyList

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

func (*ServicePolicyList) DeepCopyInto

func (in *ServicePolicyList) DeepCopyInto(out *ServicePolicyList)

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

func (*ServicePolicyList) DeepCopyObject

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

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

type ServicePolicySpec

type ServicePolicySpec struct {
	// PriorityClassName is the priority class name used in the pods.
	// +required
	PriorityClassName string `json:"priorityClassName"`

	// ResourcePriority defines the priority for various resources
	// +optional
	ResourcePriority ResourcePriority `json:"resourcePriority,omitempty"`

	// AvoidanceStrategy defines the avoidance strategy for pods
	// +optional
	AvoidanceStrategy AvoidanceStrategy `json:"avoidanceStrategy,omitempty"`

	// ResourcetMutation defines if the service need to mutate resource to expand resource
	// +optional
	ResourceMutation ResourceMutation `json:"resourceMutation,omitempty"`
}

func (*ServicePolicySpec) DeepCopy

func (in *ServicePolicySpec) DeepCopy() *ServicePolicySpec

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

func (*ServicePolicySpec) DeepCopyInto

func (in *ServicePolicySpec) DeepCopyInto(out *ServicePolicySpec)

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

type ServicePolicyStatus

type ServicePolicyStatus struct {
}

ServicePolicyStatus defines the desired status of ServicePolicy

func (*ServicePolicyStatus) DeepCopy

func (in *ServicePolicyStatus) DeepCopy() *ServicePolicyStatus

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

func (*ServicePolicyStatus) DeepCopyInto

func (in *ServicePolicyStatus) DeepCopyInto(out *ServicePolicyStatus)

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

type ThrottleAction

type ThrottleAction struct {
	// +optional
	CPUThrottle CPUThrottle `json:"cpuThrottle,omitempty"`

	// +optional
	MemoryThrottle MemoryThrottle `json:"memoryThrottle,omitempty"`
}

func (*ThrottleAction) DeepCopy

func (in *ThrottleAction) DeepCopy() *ThrottleAction

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

func (*ThrottleAction) DeepCopyInto

func (in *ThrottleAction) DeepCopyInto(out *ThrottleAction)

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