package v2beta1

import "k8s.io/client-go/applyconfigurations/autoscaling/v2beta1"

Index

Types

type ContainerResourceMetricSourceApplyConfiguration

type ContainerResourceMetricSourceApplyConfiguration struct {
	// name is the name of the resource in question.
	Name *v1.ResourceName `json:"name,omitempty"`
	// targetAverageUtilization is the target value of the average of the
	// resource metric across all relevant pods, represented as a percentage of
	// the requested value of the resource for the pods.
	TargetAverageUtilization *int32 `json:"targetAverageUtilization,omitempty"`
	// targetAverageValue is the target value of the average of the
	// resource metric across all relevant pods, as a raw value (instead of as
	// a percentage of the request), similar to the "pods" metric source type.
	TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty"`
	// container is the name of the container in the pods of the scaling target
	Container *string `json:"container,omitempty"`
}

ContainerResourceMetricSourceApplyConfiguration represents a declarative configuration of the ContainerResourceMetricSource type for use with apply.

ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.

func ContainerResourceMetricSource

func ContainerResourceMetricSource() *ContainerResourceMetricSourceApplyConfiguration

ContainerResourceMetricSourceApplyConfiguration constructs a declarative configuration of the ContainerResourceMetricSource type for use with apply.

func (*ContainerResourceMetricSourceApplyConfiguration) WithContainer

WithContainer sets the Container field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Container field is set to the value of the last call.

func (*ContainerResourceMetricSourceApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ContainerResourceMetricSourceApplyConfiguration) WithTargetAverageUtilization

WithTargetAverageUtilization sets the TargetAverageUtilization field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetAverageUtilization field is set to the value of the last call.

func (*ContainerResourceMetricSourceApplyConfiguration) WithTargetAverageValue

WithTargetAverageValue sets the TargetAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetAverageValue field is set to the value of the last call.

type ContainerResourceMetricStatusApplyConfiguration

type ContainerResourceMetricStatusApplyConfiguration struct {
	// name is the name of the resource in question.
	Name *v1.ResourceName `json:"name,omitempty"`
	// currentAverageUtilization is the current value of the average of the
	// resource metric across all relevant pods, represented as a percentage of
	// the requested value of the resource for the pods.  It will only be
	// present if `targetAverageValue` was set in the corresponding metric
	// specification.
	CurrentAverageUtilization *int32 `json:"currentAverageUtilization,omitempty"`
	// currentAverageValue is the current value of the average of the
	// resource metric across all relevant pods, as a raw value (instead of as
	// a percentage of the request), similar to the "pods" metric source type.
	// It will always be set, regardless of the corresponding metric specification.
	CurrentAverageValue *resource.Quantity `json:"currentAverageValue,omitempty"`
	// container is the name of the container in the pods of the scaling target
	Container *string `json:"container,omitempty"`
}

ContainerResourceMetricStatusApplyConfiguration represents a declarative configuration of the ContainerResourceMetricStatus type for use with apply.

ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.

func ContainerResourceMetricStatus

func ContainerResourceMetricStatus() *ContainerResourceMetricStatusApplyConfiguration

ContainerResourceMetricStatusApplyConfiguration constructs a declarative configuration of the ContainerResourceMetricStatus type for use with apply.

func (*ContainerResourceMetricStatusApplyConfiguration) WithContainer

WithContainer sets the Container field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Container field is set to the value of the last call.

func (*ContainerResourceMetricStatusApplyConfiguration) WithCurrentAverageUtilization

WithCurrentAverageUtilization sets the CurrentAverageUtilization field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentAverageUtilization field is set to the value of the last call.

func (*ContainerResourceMetricStatusApplyConfiguration) WithCurrentAverageValue

WithCurrentAverageValue sets the CurrentAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentAverageValue field is set to the value of the last call.

func (*ContainerResourceMetricStatusApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

type CrossVersionObjectReferenceApplyConfiguration

type CrossVersionObjectReferenceApplyConfiguration struct {
	// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind *string `json:"kind,omitempty"`
	// Name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	Name *string `json:"name,omitempty"`
	// API version of the referent
	APIVersion *string `json:"apiVersion,omitempty"`
}

CrossVersionObjectReferenceApplyConfiguration represents a declarative configuration of the CrossVersionObjectReference type for use with apply.

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

func CrossVersionObjectReference

func CrossVersionObjectReference() *CrossVersionObjectReferenceApplyConfiguration

CrossVersionObjectReferenceApplyConfiguration constructs a declarative configuration of the CrossVersionObjectReference type for use with apply.

func (*CrossVersionObjectReferenceApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*CrossVersionObjectReferenceApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*CrossVersionObjectReferenceApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

type ExternalMetricSourceApplyConfiguration

type ExternalMetricSourceApplyConfiguration struct {
	// metricName is the name of the metric in question.
	MetricName *string `json:"metricName,omitempty"`
	// metricSelector is used to identify a specific time series
	// within a given metric.
	MetricSelector *v1.LabelSelectorApplyConfiguration `json:"metricSelector,omitempty"`
	// targetValue is the target value of the metric (as a quantity).
	// Mutually exclusive with TargetAverageValue.
	TargetValue *resource.Quantity `json:"targetValue,omitempty"`
	// targetAverageValue is the target per-pod value of global metric (as a quantity).
	// Mutually exclusive with TargetValue.
	TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty"`
}

ExternalMetricSourceApplyConfiguration represents a declarative configuration of the ExternalMetricSource type for use with apply.

ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.

func ExternalMetricSource

func ExternalMetricSource() *ExternalMetricSourceApplyConfiguration

ExternalMetricSourceApplyConfiguration constructs a declarative configuration of the ExternalMetricSource type for use with apply.

func (*ExternalMetricSourceApplyConfiguration) WithMetricName

WithMetricName sets the MetricName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricName field is set to the value of the last call.

func (*ExternalMetricSourceApplyConfiguration) WithMetricSelector

WithMetricSelector sets the MetricSelector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricSelector field is set to the value of the last call.

func (*ExternalMetricSourceApplyConfiguration) WithTargetAverageValue

WithTargetAverageValue sets the TargetAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetAverageValue field is set to the value of the last call.

func (*ExternalMetricSourceApplyConfiguration) WithTargetValue

WithTargetValue sets the TargetValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetValue field is set to the value of the last call.

type ExternalMetricStatusApplyConfiguration

type ExternalMetricStatusApplyConfiguration struct {
	// metricName is the name of a metric used for autoscaling in
	// metric system.
	MetricName *string `json:"metricName,omitempty"`
	// metricSelector is used to identify a specific time series
	// within a given metric.
	MetricSelector *v1.LabelSelectorApplyConfiguration `json:"metricSelector,omitempty"`
	// currentValue is the current value of the metric (as a quantity)
	CurrentValue *resource.Quantity `json:"currentValue,omitempty"`
	// currentAverageValue is the current value of metric averaged over autoscaled pods.
	CurrentAverageValue *resource.Quantity `json:"currentAverageValue,omitempty"`
}

ExternalMetricStatusApplyConfiguration represents a declarative configuration of the ExternalMetricStatus type for use with apply.

ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.

func ExternalMetricStatus

func ExternalMetricStatus() *ExternalMetricStatusApplyConfiguration

ExternalMetricStatusApplyConfiguration constructs a declarative configuration of the ExternalMetricStatus type for use with apply.

func (*ExternalMetricStatusApplyConfiguration) WithCurrentAverageValue

WithCurrentAverageValue sets the CurrentAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentAverageValue field is set to the value of the last call.

func (*ExternalMetricStatusApplyConfiguration) WithCurrentValue

WithCurrentValue sets the CurrentValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentValue field is set to the value of the last call.

func (*ExternalMetricStatusApplyConfiguration) WithMetricName

WithMetricName sets the MetricName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricName field is set to the value of the last call.

func (*ExternalMetricStatusApplyConfiguration) WithMetricSelector

WithMetricSelector sets the MetricSelector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricSelector field is set to the value of the last call.

type HorizontalPodAutoscalerApplyConfiguration

type HorizontalPodAutoscalerApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration `json:",inline"`
	// metadata is the standard object metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// spec is the specification for the behaviour of the autoscaler.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
	Spec *HorizontalPodAutoscalerSpecApplyConfiguration `json:"spec,omitempty"`
	// status is the current information about the autoscaler.
	Status *HorizontalPodAutoscalerStatusApplyConfiguration `json:"status,omitempty"`
}

HorizontalPodAutoscalerApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscaler type for use with apply.

HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.

func ExtractHorizontalPodAutoscaler

func ExtractHorizontalPodAutoscaler(horizontalPodAutoscaler *autoscalingv2beta1.HorizontalPodAutoscaler, fieldManager string) (*HorizontalPodAutoscalerApplyConfiguration, error)

ExtractHorizontalPodAutoscaler extracts the applied configuration owned by fieldManager from horizontalPodAutoscaler. If no managedFields are found in horizontalPodAutoscaler for fieldManager, a HorizontalPodAutoscalerApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. horizontalPodAutoscaler must be a unmodified HorizontalPodAutoscaler API object that was retrieved from the Kubernetes API. ExtractHorizontalPodAutoscaler provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields.

func ExtractHorizontalPodAutoscalerFrom

func ExtractHorizontalPodAutoscalerFrom(horizontalPodAutoscaler *autoscalingv2beta1.HorizontalPodAutoscaler, fieldManager string, subresource string) (*HorizontalPodAutoscalerApplyConfiguration, error)

ExtractHorizontalPodAutoscalerFrom extracts the applied configuration owned by fieldManager from horizontalPodAutoscaler for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. horizontalPodAutoscaler must be a unmodified HorizontalPodAutoscaler API object that was retrieved from the Kubernetes API. ExtractHorizontalPodAutoscalerFrom provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields.

func ExtractHorizontalPodAutoscalerStatus

func ExtractHorizontalPodAutoscalerStatus(horizontalPodAutoscaler *autoscalingv2beta1.HorizontalPodAutoscaler, fieldManager string) (*HorizontalPodAutoscalerApplyConfiguration, error)

ExtractHorizontalPodAutoscalerStatus extracts the applied configuration owned by fieldManager from horizontalPodAutoscaler for the status subresource.

func HorizontalPodAutoscaler

func HorizontalPodAutoscaler(name, namespace string) *HorizontalPodAutoscalerApplyConfiguration

HorizontalPodAutoscaler constructs a declarative configuration of the HorizontalPodAutoscaler type for use with apply.

func (*HorizontalPodAutoscalerApplyConfiguration) GetAPIVersion

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*HorizontalPodAutoscalerApplyConfiguration) GetKind

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*HorizontalPodAutoscalerApplyConfiguration) GetName

GetName retrieves the value of the Name field in the declarative configuration.

func (*HorizontalPodAutoscalerApplyConfiguration) GetNamespace

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (HorizontalPodAutoscalerApplyConfiguration) IsApplyConfiguration

func (b HorizontalPodAutoscalerApplyConfiguration) IsApplyConfiguration()

func (*HorizontalPodAutoscalerApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*HorizontalPodAutoscalerApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithDeletionGracePeriodSeconds

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*HorizontalPodAutoscalerApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*HorizontalPodAutoscalerApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*HorizontalPodAutoscalerApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*HorizontalPodAutoscalerApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type HorizontalPodAutoscalerConditionApplyConfiguration

type HorizontalPodAutoscalerConditionApplyConfiguration struct {
	// type describes the current condition
	Type *autoscalingv2beta1.HorizontalPodAutoscalerConditionType `json:"type,omitempty"`
	// status is the status of the condition (True, False, Unknown)
	Status *v1.ConditionStatus `json:"status,omitempty"`
	// lastTransitionTime is the last time the condition transitioned from
	// one status to another
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// reason is the reason for the condition's last transition.
	Reason *string `json:"reason,omitempty"`
	// message is a human-readable explanation containing details about
	// the transition
	Message *string `json:"message,omitempty"`
}

HorizontalPodAutoscalerConditionApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerCondition type for use with apply.

HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.

func HorizontalPodAutoscalerCondition

func HorizontalPodAutoscalerCondition() *HorizontalPodAutoscalerConditionApplyConfiguration

HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with apply.

func (*HorizontalPodAutoscalerConditionApplyConfiguration) WithLastTransitionTime

WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.

func (*HorizontalPodAutoscalerConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*HorizontalPodAutoscalerConditionApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

func (*HorizontalPodAutoscalerConditionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*HorizontalPodAutoscalerConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type HorizontalPodAutoscalerSpecApplyConfiguration

type HorizontalPodAutoscalerSpecApplyConfiguration struct {
	// scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
	// should be collected, as well as to actually change the replica count.
	ScaleTargetRef *CrossVersionObjectReferenceApplyConfiguration `json:"scaleTargetRef,omitempty"`
	// 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"`
	// maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
	// It cannot be less that minReplicas.
	MaxReplicas *int32 `json:"maxReplicas,omitempty"`
	// metrics contains the specifications for which to use to calculate the
	// desired replica count (the maximum replica count across all metrics will
	// be used).  The desired replica count is calculated multiplying the
	// ratio between the target value and the current value by the current
	// number of pods.  Ergo, metrics used must decrease as the pod count is
	// increased, and vice-versa.  See the individual metric source types for
	// more information about how each type of metric must respond.
	Metrics []MetricSpecApplyConfiguration `json:"metrics,omitempty"`
}

HorizontalPodAutoscalerSpecApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerSpec type for use with apply.

HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.

func HorizontalPodAutoscalerSpec

func HorizontalPodAutoscalerSpec() *HorizontalPodAutoscalerSpecApplyConfiguration

HorizontalPodAutoscalerSpecApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerSpec type for use with apply.

func (*HorizontalPodAutoscalerSpecApplyConfiguration) WithMaxReplicas

WithMaxReplicas sets the MaxReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxReplicas field is set to the value of the last call.

func (*HorizontalPodAutoscalerSpecApplyConfiguration) WithMetrics

WithMetrics adds the given value to the Metrics field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Metrics field.

func (*HorizontalPodAutoscalerSpecApplyConfiguration) WithMinReplicas

WithMinReplicas sets the MinReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinReplicas field is set to the value of the last call.

func (*HorizontalPodAutoscalerSpecApplyConfiguration) WithScaleTargetRef

WithScaleTargetRef sets the ScaleTargetRef field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ScaleTargetRef field is set to the value of the last call.

type HorizontalPodAutoscalerStatusApplyConfiguration

type HorizontalPodAutoscalerStatusApplyConfiguration struct {
	// observedGeneration is the most recent generation observed by this autoscaler.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
	// 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 *v1.Time `json:"lastScaleTime,omitempty"`
	// currentReplicas is current number of replicas of pods managed by this autoscaler,
	// as last seen by the autoscaler.
	CurrentReplicas *int32 `json:"currentReplicas,omitempty"`
	// desiredReplicas is the desired number of replicas of pods managed by this autoscaler,
	// as last calculated by the autoscaler.
	DesiredReplicas *int32 `json:"desiredReplicas,omitempty"`
	// currentMetrics is the last read state of the metrics used by this autoscaler.
	CurrentMetrics []MetricStatusApplyConfiguration `json:"currentMetrics,omitempty"`
	// conditions is the set of conditions required for this autoscaler to scale its target,
	// and indicates whether or not those conditions are met.
	Conditions []HorizontalPodAutoscalerConditionApplyConfiguration `json:"conditions,omitempty"`
}

HorizontalPodAutoscalerStatusApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerStatus type for use with apply.

HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.

func HorizontalPodAutoscalerStatus

func HorizontalPodAutoscalerStatus() *HorizontalPodAutoscalerStatusApplyConfiguration

HorizontalPodAutoscalerStatusApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerStatus type for use with apply.

func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentMetrics

WithCurrentMetrics adds the given value to the CurrentMetrics field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the CurrentMetrics field.

func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentReplicas

WithCurrentReplicas sets the CurrentReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentReplicas field is set to the value of the last call.

func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithDesiredReplicas

WithDesiredReplicas sets the DesiredReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DesiredReplicas field is set to the value of the last call.

func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithLastScaleTime

WithLastScaleTime sets the LastScaleTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastScaleTime field is set to the value of the last call.

func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithObservedGeneration

WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ObservedGeneration field is set to the value of the last call.

type MetricSpecApplyConfiguration

type MetricSpecApplyConfiguration struct {
	// type is the type of metric source.  It should be one of "ContainerResource",
	// "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
	Type *autoscalingv2beta1.MetricSourceType `json:"type,omitempty"`
	// object refers to a metric describing a single kubernetes object
	// (for example, hits-per-second on an Ingress object).
	Object *ObjectMetricSourceApplyConfiguration `json:"object,omitempty"`
	// pods refers to a metric describing each pod in the current scale target
	// (for example, transactions-processed-per-second).  The values will be
	// averaged together before being compared to the target value.
	Pods *PodsMetricSourceApplyConfiguration `json:"pods,omitempty"`
	// resource refers to a resource metric (such as those specified in
	// requests and limits) known to Kubernetes describing each pod in the
	// current scale target (e.g. CPU or memory). Such metrics are built in to
	// Kubernetes, and have special scaling options on top of those available
	// to normal per-pod metrics using the "pods" source.
	Resource *ResourceMetricSourceApplyConfiguration `json:"resource,omitempty"`
	// container resource refers to a resource metric (such as those specified in
	// requests and limits) known to Kubernetes describing a single container in
	// each pod of the current scale target (e.g. CPU or memory). Such metrics are
	// built in to Kubernetes, and have special scaling options on top of those
	// available to normal per-pod metrics using the "pods" source.
	ContainerResource *ContainerResourceMetricSourceApplyConfiguration `json:"containerResource,omitempty"`
	// external refers to a global metric that is not associated
	// with any Kubernetes object. It allows autoscaling based on information
	// coming from components running outside of cluster
	// (for example length of queue in cloud messaging service, or
	// QPS from loadbalancer running outside of cluster).
	External *ExternalMetricSourceApplyConfiguration `json:"external,omitempty"`
}

MetricSpecApplyConfiguration represents a declarative configuration of the MetricSpec type for use with apply.

MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).

func MetricSpec

func MetricSpec() *MetricSpecApplyConfiguration

MetricSpecApplyConfiguration constructs a declarative configuration of the MetricSpec type for use with apply.

func (*MetricSpecApplyConfiguration) WithContainerResource

WithContainerResource sets the ContainerResource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ContainerResource field is set to the value of the last call.

func (*MetricSpecApplyConfiguration) WithExternal

WithExternal sets the External field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the External field is set to the value of the last call.

func (*MetricSpecApplyConfiguration) WithObject

WithObject sets the Object field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Object field is set to the value of the last call.

func (*MetricSpecApplyConfiguration) WithPods

WithPods sets the Pods field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Pods field is set to the value of the last call.

func (*MetricSpecApplyConfiguration) WithResource

WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.

func (*MetricSpecApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type MetricStatusApplyConfiguration

type MetricStatusApplyConfiguration struct {
	// type is the type of metric source.  It will be one of "ContainerResource",
	// "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
	Type *autoscalingv2beta1.MetricSourceType `json:"type,omitempty"`
	// object refers to a metric describing a single kubernetes object
	// (for example, hits-per-second on an Ingress object).
	Object *ObjectMetricStatusApplyConfiguration `json:"object,omitempty"`
	// pods refers to a metric describing each pod in the current scale target
	// (for example, transactions-processed-per-second).  The values will be
	// averaged together before being compared to the target value.
	Pods *PodsMetricStatusApplyConfiguration `json:"pods,omitempty"`
	// resource refers to a resource metric (such as those specified in
	// requests and limits) known to Kubernetes describing each pod in the
	// current scale target (e.g. CPU or memory). Such metrics are built in to
	// Kubernetes, and have special scaling options on top of those available
	// to normal per-pod metrics using the "pods" source.
	Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
	// container resource refers to a resource metric (such as those specified in
	// requests and limits) known to Kubernetes describing a single container in each pod in the
	// current scale target (e.g. CPU or memory). Such metrics are built in to
	// Kubernetes, and have special scaling options on top of those available
	// to normal per-pod metrics using the "pods" source.
	ContainerResource *ContainerResourceMetricStatusApplyConfiguration `json:"containerResource,omitempty"`
	// external refers to a global metric that is not associated
	// with any Kubernetes object. It allows autoscaling based on information
	// coming from components running outside of cluster
	// (for example length of queue in cloud messaging service, or
	// QPS from loadbalancer running outside of cluster).
	External *ExternalMetricStatusApplyConfiguration `json:"external,omitempty"`
}

MetricStatusApplyConfiguration represents a declarative configuration of the MetricStatus type for use with apply.

MetricStatus describes the last-read state of a single metric.

func MetricStatus

func MetricStatus() *MetricStatusApplyConfiguration

MetricStatusApplyConfiguration constructs a declarative configuration of the MetricStatus type for use with apply.

func (*MetricStatusApplyConfiguration) WithContainerResource

WithContainerResource sets the ContainerResource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ContainerResource field is set to the value of the last call.

func (*MetricStatusApplyConfiguration) WithExternal

WithExternal sets the External field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the External field is set to the value of the last call.

func (*MetricStatusApplyConfiguration) WithObject

WithObject sets the Object field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Object field is set to the value of the last call.

func (*MetricStatusApplyConfiguration) WithPods

WithPods sets the Pods field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Pods field is set to the value of the last call.

func (*MetricStatusApplyConfiguration) WithResource

WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.

func (*MetricStatusApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type ObjectMetricSourceApplyConfiguration

type ObjectMetricSourceApplyConfiguration struct {
	// target is the described Kubernetes object.
	Target *CrossVersionObjectReferenceApplyConfiguration `json:"target,omitempty"`
	// metricName is the name of the metric in question.
	MetricName *string `json:"metricName,omitempty"`
	// targetValue is the target value of the metric (as a quantity).
	TargetValue *resource.Quantity `json:"targetValue,omitempty"`
	// selector is the string-encoded form of a standard kubernetes label selector for the given metric
	// When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
	// When unset, just the metricName will be used to gather metrics.
	Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
	// averageValue is the target value of the average of the
	// metric across all relevant pods (as a quantity)
	AverageValue *resource.Quantity `json:"averageValue,omitempty"`
}

ObjectMetricSourceApplyConfiguration represents a declarative configuration of the ObjectMetricSource type for use with apply.

ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).

func ObjectMetricSource

func ObjectMetricSource() *ObjectMetricSourceApplyConfiguration

ObjectMetricSourceApplyConfiguration constructs a declarative configuration of the ObjectMetricSource type for use with apply.

func (*ObjectMetricSourceApplyConfiguration) WithAverageValue

WithAverageValue sets the AverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AverageValue field is set to the value of the last call.

func (*ObjectMetricSourceApplyConfiguration) WithMetricName

WithMetricName sets the MetricName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricName field is set to the value of the last call.

func (*ObjectMetricSourceApplyConfiguration) WithSelector

WithSelector sets the Selector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Selector field is set to the value of the last call.

func (*ObjectMetricSourceApplyConfiguration) WithTarget

WithTarget sets the Target field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Target field is set to the value of the last call.

func (*ObjectMetricSourceApplyConfiguration) WithTargetValue

WithTargetValue sets the TargetValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetValue field is set to the value of the last call.

type ObjectMetricStatusApplyConfiguration

type ObjectMetricStatusApplyConfiguration struct {
	// target is the described Kubernetes object.
	Target *CrossVersionObjectReferenceApplyConfiguration `json:"target,omitempty"`
	// metricName is the name of the metric in question.
	MetricName *string `json:"metricName,omitempty"`
	// currentValue is the current value of the metric (as a quantity).
	CurrentValue *resource.Quantity `json:"currentValue,omitempty"`
	// selector is the string-encoded form of a standard kubernetes label selector for the given metric
	// When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
	// When unset, just the metricName will be used to gather metrics.
	Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
	// averageValue is the current value of the average of the
	// metric across all relevant pods (as a quantity)
	AverageValue *resource.Quantity `json:"averageValue,omitempty"`
}

ObjectMetricStatusApplyConfiguration represents a declarative configuration of the ObjectMetricStatus type for use with apply.

ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).

func ObjectMetricStatus

func ObjectMetricStatus() *ObjectMetricStatusApplyConfiguration

ObjectMetricStatusApplyConfiguration constructs a declarative configuration of the ObjectMetricStatus type for use with apply.

func (*ObjectMetricStatusApplyConfiguration) WithAverageValue

WithAverageValue sets the AverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AverageValue field is set to the value of the last call.

func (*ObjectMetricStatusApplyConfiguration) WithCurrentValue

WithCurrentValue sets the CurrentValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentValue field is set to the value of the last call.

func (*ObjectMetricStatusApplyConfiguration) WithMetricName

WithMetricName sets the MetricName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricName field is set to the value of the last call.

func (*ObjectMetricStatusApplyConfiguration) WithSelector

WithSelector sets the Selector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Selector field is set to the value of the last call.

func (*ObjectMetricStatusApplyConfiguration) WithTarget

WithTarget sets the Target field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Target field is set to the value of the last call.

type PodsMetricSourceApplyConfiguration

type PodsMetricSourceApplyConfiguration struct {
	// metricName is the name of the metric in question
	MetricName *string `json:"metricName,omitempty"`
	// targetAverageValue is the target value of the average of the
	// metric across all relevant pods (as a quantity)
	TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty"`
	// selector is the string-encoded form of a standard kubernetes label selector for the given metric
	// When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
	// When unset, just the metricName will be used to gather metrics.
	Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
}

PodsMetricSourceApplyConfiguration represents a declarative configuration of the PodsMetricSource type for use with apply.

PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.

func PodsMetricSource

func PodsMetricSource() *PodsMetricSourceApplyConfiguration

PodsMetricSourceApplyConfiguration constructs a declarative configuration of the PodsMetricSource type for use with apply.

func (*PodsMetricSourceApplyConfiguration) WithMetricName

WithMetricName sets the MetricName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricName field is set to the value of the last call.

func (*PodsMetricSourceApplyConfiguration) WithSelector

WithSelector sets the Selector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Selector field is set to the value of the last call.

func (*PodsMetricSourceApplyConfiguration) WithTargetAverageValue

WithTargetAverageValue sets the TargetAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetAverageValue field is set to the value of the last call.

type PodsMetricStatusApplyConfiguration

type PodsMetricStatusApplyConfiguration struct {
	// metricName is the name of the metric in question
	MetricName *string `json:"metricName,omitempty"`
	// currentAverageValue is the current value of the average of the
	// metric across all relevant pods (as a quantity)
	CurrentAverageValue *resource.Quantity `json:"currentAverageValue,omitempty"`
	// selector is the string-encoded form of a standard kubernetes label selector for the given metric
	// When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
	// When unset, just the metricName will be used to gather metrics.
	Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
}

PodsMetricStatusApplyConfiguration represents a declarative configuration of the PodsMetricStatus type for use with apply.

PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).

func PodsMetricStatus

func PodsMetricStatus() *PodsMetricStatusApplyConfiguration

PodsMetricStatusApplyConfiguration constructs a declarative configuration of the PodsMetricStatus type for use with apply.

func (*PodsMetricStatusApplyConfiguration) WithCurrentAverageValue

WithCurrentAverageValue sets the CurrentAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentAverageValue field is set to the value of the last call.

func (*PodsMetricStatusApplyConfiguration) WithMetricName

WithMetricName sets the MetricName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MetricName field is set to the value of the last call.

func (*PodsMetricStatusApplyConfiguration) WithSelector

WithSelector sets the Selector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Selector field is set to the value of the last call.

type ResourceMetricSourceApplyConfiguration

type ResourceMetricSourceApplyConfiguration struct {
	// name is the name of the resource in question.
	Name *v1.ResourceName `json:"name,omitempty"`
	// targetAverageUtilization is the target value of the average of the
	// resource metric across all relevant pods, represented as a percentage of
	// the requested value of the resource for the pods.
	TargetAverageUtilization *int32 `json:"targetAverageUtilization,omitempty"`
	// targetAverageValue is the target value of the average of the
	// resource metric across all relevant pods, as a raw value (instead of as
	// a percentage of the request), similar to the "pods" metric source type.
	TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty"`
}

ResourceMetricSourceApplyConfiguration represents a declarative configuration of the ResourceMetricSource type for use with apply.

ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.

func ResourceMetricSource

func ResourceMetricSource() *ResourceMetricSourceApplyConfiguration

ResourceMetricSourceApplyConfiguration constructs a declarative configuration of the ResourceMetricSource type for use with apply.

func (*ResourceMetricSourceApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ResourceMetricSourceApplyConfiguration) WithTargetAverageUtilization

WithTargetAverageUtilization sets the TargetAverageUtilization field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetAverageUtilization field is set to the value of the last call.

func (*ResourceMetricSourceApplyConfiguration) WithTargetAverageValue

WithTargetAverageValue sets the TargetAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetAverageValue field is set to the value of the last call.

type ResourceMetricStatusApplyConfiguration

type ResourceMetricStatusApplyConfiguration struct {
	// name is the name of the resource in question.
	Name *v1.ResourceName `json:"name,omitempty"`
	// currentAverageUtilization is the current value of the average of the
	// resource metric across all relevant pods, represented as a percentage of
	// the requested value of the resource for the pods.  It will only be
	// present if `targetAverageValue` was set in the corresponding metric
	// specification.
	CurrentAverageUtilization *int32 `json:"currentAverageUtilization,omitempty"`
	// currentAverageValue is the current value of the average of the
	// resource metric across all relevant pods, as a raw value (instead of as
	// a percentage of the request), similar to the "pods" metric source type.
	// It will always be set, regardless of the corresponding metric specification.
	CurrentAverageValue *resource.Quantity `json:"currentAverageValue,omitempty"`
}

ResourceMetricStatusApplyConfiguration represents a declarative configuration of the ResourceMetricStatus type for use with apply.

ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.

func ResourceMetricStatus

func ResourceMetricStatus() *ResourceMetricStatusApplyConfiguration

ResourceMetricStatusApplyConfiguration constructs a declarative configuration of the ResourceMetricStatus type for use with apply.

func (*ResourceMetricStatusApplyConfiguration) WithCurrentAverageUtilization

WithCurrentAverageUtilization sets the CurrentAverageUtilization field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentAverageUtilization field is set to the value of the last call.

func (*ResourceMetricStatusApplyConfiguration) WithCurrentAverageValue

WithCurrentAverageValue sets the CurrentAverageValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentAverageValue field is set to the value of the last call.

func (*ResourceMetricStatusApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

Source Files

containerresourcemetricsource.go containerresourcemetricstatus.go crossversionobjectreference.go externalmetricsource.go externalmetricstatus.go horizontalpodautoscaler.go horizontalpodautoscalercondition.go horizontalpodautoscalerspec.go horizontalpodautoscalerstatus.go metricspec.go metricstatus.go objectmetricsource.go objectmetricstatus.go podsmetricsource.go podsmetricstatus.go resourcemetricsource.go resourcemetricstatus.go

Version
v0.36.0-alpha.0
Published
Dec 3, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
3 minutes ago

Tools for package owners.