v1

package
v1.27.0-kw1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GroupName = "autoscaling"

GroupName is the group name use in this package

Variables

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

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CrossVersionObjectReference

type CrossVersionObjectReference struct {

	// apiVersion is the API version of the referent
	APIVersion string `json:"apiVersion,omitempty"`

	// kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// Required: true
	Kind *string `json:"kind"`

	// name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// Required: true
	Name *string `json:"name"`
}

CrossVersionObjectReference CrossVersionObjectReference contains enough information to let you identify the referred resource.

swagger:model CrossVersionObjectReference

func (CrossVersionObjectReference) MarshalEasyJSON

func (v CrossVersionObjectReference) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CrossVersionObjectReference) MarshalJSON

func (v CrossVersionObjectReference) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CrossVersionObjectReference) UnmarshalEasyJSON

func (v *CrossVersionObjectReference) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CrossVersionObjectReference) UnmarshalJSON

func (v *CrossVersionObjectReference) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HorizontalPodAutoscaler

type HorizontalPodAutoscaler struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
	Spec *HorizontalPodAutoscalerSpec `json:"spec,omitempty"`

	// status is the current information about the autoscaler.
	Status *HorizontalPodAutoscalerStatus `json:"status,omitempty"`
}

HorizontalPodAutoscaler configuration of a horizontal pod autoscaler.

swagger:model HorizontalPodAutoscaler

func (*HorizontalPodAutoscaler) GroupVersionKind

func (v *HorizontalPodAutoscaler) GroupVersionKind() schema.GroupVersionKind

func (HorizontalPodAutoscaler) MarshalEasyJSON

func (v HorizontalPodAutoscaler) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HorizontalPodAutoscaler) MarshalJSON

func (v HorizontalPodAutoscaler) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HorizontalPodAutoscaler) UnmarshalEasyJSON

func (v *HorizontalPodAutoscaler) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HorizontalPodAutoscaler) UnmarshalJSON

func (v *HorizontalPodAutoscaler) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HorizontalPodAutoscalerList

type HorizontalPodAutoscalerList struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// items is the list of horizontal pod autoscaler objects.
	// Required: true
	Items []*HorizontalPodAutoscaler `json:"items"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Standard list metadata.
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

HorizontalPodAutoscalerList list of horizontal pod autoscaler objects.

swagger:model HorizontalPodAutoscalerList

func (*HorizontalPodAutoscalerList) GroupVersionKind

func (v *HorizontalPodAutoscalerList) GroupVersionKind() schema.GroupVersionKind

func (HorizontalPodAutoscalerList) MarshalEasyJSON

func (v HorizontalPodAutoscalerList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HorizontalPodAutoscalerList) MarshalJSON

func (v HorizontalPodAutoscalerList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HorizontalPodAutoscalerList) UnmarshalEasyJSON

func (v *HorizontalPodAutoscalerList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HorizontalPodAutoscalerList) UnmarshalJSON

func (v *HorizontalPodAutoscalerList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HorizontalPodAutoscalerSpec

type HorizontalPodAutoscalerSpec struct {

	// maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
	// Required: true
	MaxReplicas *int32 `json:"maxReplicas"`

	// minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.  It defaults to 1 pod.  minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured.  Scaling is active as long as at least one metric value is available.
	MinReplicas int32 `json:"minReplicas,omitempty"`

	// reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
	// Required: true
	ScaleTargetRef *CrossVersionObjectReference `json:"scaleTargetRef"`

	// targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.
	TargetCPUUtilizationPercentage int32 `json:"targetCPUUtilizationPercentage,omitempty"`
}

HorizontalPodAutoscalerSpec specification of a horizontal pod autoscaler.

swagger:model HorizontalPodAutoscalerSpec

func (HorizontalPodAutoscalerSpec) MarshalEasyJSON

func (v HorizontalPodAutoscalerSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HorizontalPodAutoscalerSpec) MarshalJSON

func (v HorizontalPodAutoscalerSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HorizontalPodAutoscalerSpec) UnmarshalEasyJSON

func (v *HorizontalPodAutoscalerSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HorizontalPodAutoscalerSpec) UnmarshalJSON

func (v *HorizontalPodAutoscalerSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HorizontalPodAutoscalerStatus

type HorizontalPodAutoscalerStatus struct {

	// currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.
	CurrentCPUUtilizationPercentage int32 `json:"currentCPUUtilizationPercentage,omitempty"`

	// currentReplicas is the current number of replicas of pods managed by this autoscaler.
	// Required: true
	CurrentReplicas *int32 `json:"currentReplicas"`

	// desiredReplicas is the  desired number of replicas of pods managed by this autoscaler.
	// Required: true
	DesiredReplicas *int32 `json:"desiredReplicas"`

	// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.
	LastScaleTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastScaleTime,omitempty"`

	// observedGeneration is the most recent generation observed by this autoscaler.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

HorizontalPodAutoscalerStatus current status of a horizontal pod autoscaler

swagger:model HorizontalPodAutoscalerStatus

func (HorizontalPodAutoscalerStatus) MarshalEasyJSON

func (v HorizontalPodAutoscalerStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HorizontalPodAutoscalerStatus) MarshalJSON

func (v HorizontalPodAutoscalerStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HorizontalPodAutoscalerStatus) UnmarshalEasyJSON

func (v *HorizontalPodAutoscalerStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HorizontalPodAutoscalerStatus) UnmarshalJSON

func (v *HorizontalPodAutoscalerStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Scale

type Scale struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
	Spec *ScaleSpec `json:"spec,omitempty"`

	// status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
	Status *ScaleStatus `json:"status,omitempty"`
}

Scale Scale represents a scaling request for a resource.

swagger:model Scale

func (*Scale) GroupVersionKind

func (v *Scale) GroupVersionKind() schema.GroupVersionKind

func (Scale) MarshalEasyJSON

func (v Scale) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Scale) MarshalJSON

func (v Scale) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Scale) UnmarshalEasyJSON

func (v *Scale) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Scale) UnmarshalJSON

func (v *Scale) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScaleSpec

type ScaleSpec struct {

	// replicas is the desired number of instances for the scaled object.
	Replicas int32 `json:"replicas,omitempty"`
}

ScaleSpec ScaleSpec describes the attributes of a scale subresource.

swagger:model ScaleSpec

func (ScaleSpec) MarshalEasyJSON

func (v ScaleSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScaleSpec) MarshalJSON

func (v ScaleSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScaleSpec) UnmarshalEasyJSON

func (v *ScaleSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScaleSpec) UnmarshalJSON

func (v *ScaleSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScaleStatus

type ScaleStatus struct {

	// replicas is the actual number of observed instances of the scaled object.
	// Required: true
	Replicas *int32 `json:"replicas"`

	// selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
	Selector string `json:"selector,omitempty"`
}

ScaleStatus ScaleStatus represents the current status of a scale subresource.

swagger:model ScaleStatus

func (ScaleStatus) MarshalEasyJSON

func (v ScaleStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScaleStatus) MarshalJSON

func (v ScaleStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScaleStatus) UnmarshalEasyJSON

func (v *ScaleStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScaleStatus) UnmarshalJSON

func (v *ScaleStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL