Documentation
¶
Index ¶
- type CrossVersionObjectReferenceApplyConfiguration
- func (b *CrossVersionObjectReferenceApplyConfiguration) WithAPIVersion(value string) *CrossVersionObjectReferenceApplyConfiguration
- func (b *CrossVersionObjectReferenceApplyConfiguration) WithKind(value string) *CrossVersionObjectReferenceApplyConfiguration
- func (b *CrossVersionObjectReferenceApplyConfiguration) WithName(value string) *CrossVersionObjectReferenceApplyConfiguration
- type HorizontalPodAutoscalerApplyConfiguration
- func ExtractHorizontalPodAutoscaler(horizontalPodAutoscaler *autoscalingv1.HorizontalPodAutoscaler, ...) (*HorizontalPodAutoscalerApplyConfiguration, error)
- func ExtractHorizontalPodAutoscalerFrom(horizontalPodAutoscaler *autoscalingv1.HorizontalPodAutoscaler, ...) (*HorizontalPodAutoscalerApplyConfiguration, error)
- func ExtractHorizontalPodAutoscalerStatus(horizontalPodAutoscaler *autoscalingv1.HorizontalPodAutoscaler, ...) (*HorizontalPodAutoscalerApplyConfiguration, error)
- func HorizontalPodAutoscaler(name, namespace string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) GetAPIVersion() *string
- func (b *HorizontalPodAutoscalerApplyConfiguration) GetKind() *string
- func (b *HorizontalPodAutoscalerApplyConfiguration) GetName() *string
- func (b *HorizontalPodAutoscalerApplyConfiguration) GetNamespace() *string
- func (b HorizontalPodAutoscalerApplyConfiguration) IsApplyConfiguration()
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithAPIVersion(value string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithAnnotations(entries map[string]string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithFinalizers(values ...string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithGenerateName(value string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithGeneration(value int64) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithKind(value string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithLabels(entries map[string]string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithName(value string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithNamespace(value string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithResourceVersion(value string) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithSpec(value *HorizontalPodAutoscalerSpecApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithStatus(value *HorizontalPodAutoscalerStatusApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration
- func (b *HorizontalPodAutoscalerApplyConfiguration) WithUID(value types.UID) *HorizontalPodAutoscalerApplyConfiguration
- type HorizontalPodAutoscalerSpecApplyConfiguration
- func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithMaxReplicas(value int32) *HorizontalPodAutoscalerSpecApplyConfiguration
- func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithMinReplicas(value int32) *HorizontalPodAutoscalerSpecApplyConfiguration
- func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithScaleTargetRef(value *CrossVersionObjectReferenceApplyConfiguration) *HorizontalPodAutoscalerSpecApplyConfiguration
- func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithTargetCPUUtilizationPercentage(value int32) *HorizontalPodAutoscalerSpecApplyConfiguration
- type HorizontalPodAutoscalerStatusApplyConfiguration
- func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentCPUUtilizationPercentage(value int32) *HorizontalPodAutoscalerStatusApplyConfiguration
- func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentReplicas(value int32) *HorizontalPodAutoscalerStatusApplyConfiguration
- func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithDesiredReplicas(value int32) *HorizontalPodAutoscalerStatusApplyConfiguration
- func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithLastScaleTime(value metav1.Time) *HorizontalPodAutoscalerStatusApplyConfiguration
- func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithObservedGeneration(value int64) *HorizontalPodAutoscalerStatusApplyConfiguration
- type ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) GetAPIVersion() *string
- func (b *ScaleApplyConfiguration) GetKind() *string
- func (b *ScaleApplyConfiguration) GetName() *string
- func (b *ScaleApplyConfiguration) GetNamespace() *string
- func (b ScaleApplyConfiguration) IsApplyConfiguration()
- func (b *ScaleApplyConfiguration) WithAPIVersion(value string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithAnnotations(entries map[string]string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithFinalizers(values ...string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithGenerateName(value string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithGeneration(value int64) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithKind(value string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithLabels(entries map[string]string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithName(value string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithNamespace(value string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithResourceVersion(value string) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithSpec(value *ScaleSpecApplyConfiguration) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithStatus(value *ScaleStatusApplyConfiguration) *ScaleApplyConfiguration
- func (b *ScaleApplyConfiguration) WithUID(value types.UID) *ScaleApplyConfiguration
- type ScaleSpecApplyConfiguration
- type ScaleStatusApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrossVersionObjectReferenceApplyConfiguration ¶
type CrossVersionObjectReferenceApplyConfiguration struct {
// kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Name *string `json:"name,omitempty"`
// apiVersion is the 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 ¶
func (b *CrossVersionObjectReferenceApplyConfiguration) WithAPIVersion(value string) *CrossVersionObjectReferenceApplyConfiguration
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 ¶
func (b *CrossVersionObjectReferenceApplyConfiguration) WithKind(value string) *CrossVersionObjectReferenceApplyConfiguration
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 ¶
func (b *CrossVersionObjectReferenceApplyConfiguration) WithName(value string) *CrossVersionObjectReferenceApplyConfiguration
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 HorizontalPodAutoscalerApplyConfiguration ¶
type HorizontalPodAutoscalerApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:",inline"`
// Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*metav1.ObjectMetaApplyConfiguration `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 *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.
configuration of a horizontal pod autoscaler.
func ExtractHorizontalPodAutoscaler ¶
func ExtractHorizontalPodAutoscaler(horizontalPodAutoscaler *autoscalingv1.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 ¶ added in v0.35.0
func ExtractHorizontalPodAutoscalerFrom(horizontalPodAutoscaler *autoscalingv1.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 ¶ added in v0.22.0
func ExtractHorizontalPodAutoscalerStatus(horizontalPodAutoscaler *autoscalingv1.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 ¶ added in v0.34.0
func (b *HorizontalPodAutoscalerApplyConfiguration) GetAPIVersion() *string
GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.
func (*HorizontalPodAutoscalerApplyConfiguration) GetKind ¶ added in v0.34.0
func (b *HorizontalPodAutoscalerApplyConfiguration) GetKind() *string
GetKind retrieves the value of the Kind field in the declarative configuration.
func (*HorizontalPodAutoscalerApplyConfiguration) GetName ¶ added in v0.31.0
func (b *HorizontalPodAutoscalerApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*HorizontalPodAutoscalerApplyConfiguration) GetNamespace ¶ added in v0.34.0
func (b *HorizontalPodAutoscalerApplyConfiguration) GetNamespace() *string
GetNamespace retrieves the value of the Namespace field in the declarative configuration.
func (HorizontalPodAutoscalerApplyConfiguration) IsApplyConfiguration ¶ added in v0.34.0
func (b HorizontalPodAutoscalerApplyConfiguration) IsApplyConfiguration()
func (*HorizontalPodAutoscalerApplyConfiguration) WithAPIVersion ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithAPIVersion(value string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithAnnotations(entries map[string]string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithFinalizers(values ...string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithGenerateName(value string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithGeneration(value int64) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithKind(value string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithLabels(entries map[string]string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithName(value string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithNamespace(value string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithResourceVersion(value string) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithSpec(value *HorizontalPodAutoscalerSpecApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithStatus(value *HorizontalPodAutoscalerStatusApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerApplyConfiguration) WithUID(value types.UID) *HorizontalPodAutoscalerApplyConfiguration
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 HorizontalPodAutoscalerSpecApplyConfiguration ¶
type HorizontalPodAutoscalerSpecApplyConfiguration struct {
// 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.
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 pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
MaxReplicas *int32 `json:"maxReplicas,omitempty"`
// 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"`
}
HorizontalPodAutoscalerSpecApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerSpec type for use with apply.
specification of a horizontal pod autoscaler.
func HorizontalPodAutoscalerSpec ¶
func HorizontalPodAutoscalerSpec() *HorizontalPodAutoscalerSpecApplyConfiguration
HorizontalPodAutoscalerSpecApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerSpec type for use with apply.
func (*HorizontalPodAutoscalerSpecApplyConfiguration) WithMaxReplicas ¶
func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithMaxReplicas(value int32) *HorizontalPodAutoscalerSpecApplyConfiguration
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) WithMinReplicas ¶
func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithMinReplicas(value int32) *HorizontalPodAutoscalerSpecApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithScaleTargetRef(value *CrossVersionObjectReferenceApplyConfiguration) *HorizontalPodAutoscalerSpecApplyConfiguration
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.
func (*HorizontalPodAutoscalerSpecApplyConfiguration) WithTargetCPUUtilizationPercentage ¶
func (b *HorizontalPodAutoscalerSpecApplyConfiguration) WithTargetCPUUtilizationPercentage(value int32) *HorizontalPodAutoscalerSpecApplyConfiguration
WithTargetCPUUtilizationPercentage sets the TargetCPUUtilizationPercentage 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 TargetCPUUtilizationPercentage 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 *metav1.Time `json:"lastScaleTime,omitempty"`
// currentReplicas is the current number of replicas of pods managed by this autoscaler.
CurrentReplicas *int32 `json:"currentReplicas,omitempty"`
// desiredReplicas is the desired number of replicas of pods managed by this autoscaler.
DesiredReplicas *int32 `json:"desiredReplicas,omitempty"`
// 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"`
}
HorizontalPodAutoscalerStatusApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerStatus type for use with apply.
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) WithCurrentCPUUtilizationPercentage ¶
func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentCPUUtilizationPercentage(value int32) *HorizontalPodAutoscalerStatusApplyConfiguration
WithCurrentCPUUtilizationPercentage sets the CurrentCPUUtilizationPercentage 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 CurrentCPUUtilizationPercentage field is set to the value of the last call.
func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentReplicas ¶
func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentReplicas(value int32) *HorizontalPodAutoscalerStatusApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithDesiredReplicas(value int32) *HorizontalPodAutoscalerStatusApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithLastScaleTime(value metav1.Time) *HorizontalPodAutoscalerStatusApplyConfiguration
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 ¶
func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithObservedGeneration(value int64) *HorizontalPodAutoscalerStatusApplyConfiguration
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 ScaleApplyConfiguration ¶ added in v0.22.0
type ScaleApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:",inline"`
// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
*metav1.ObjectMetaApplyConfiguration `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 *ScaleSpecApplyConfiguration `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 *ScaleStatusApplyConfiguration `json:"status,omitempty"`
}
ScaleApplyConfiguration represents a declarative configuration of the Scale type for use with apply.
Scale represents a scaling request for a resource.
func Scale ¶ added in v0.22.0
func Scale() *ScaleApplyConfiguration
ScaleApplyConfiguration constructs a declarative configuration of the Scale type for use with apply.
func (*ScaleApplyConfiguration) GetAPIVersion ¶ added in v0.34.0
func (b *ScaleApplyConfiguration) GetAPIVersion() *string
GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.
func (*ScaleApplyConfiguration) GetKind ¶ added in v0.34.0
func (b *ScaleApplyConfiguration) GetKind() *string
GetKind retrieves the value of the Kind field in the declarative configuration.
func (*ScaleApplyConfiguration) GetName ¶ added in v0.31.0
func (b *ScaleApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*ScaleApplyConfiguration) GetNamespace ¶ added in v0.34.0
func (b *ScaleApplyConfiguration) GetNamespace() *string
GetNamespace retrieves the value of the Namespace field in the declarative configuration.
func (ScaleApplyConfiguration) IsApplyConfiguration ¶ added in v0.34.0
func (b ScaleApplyConfiguration) IsApplyConfiguration()
func (*ScaleApplyConfiguration) WithAPIVersion ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithAPIVersion(value string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithAnnotations ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithAnnotations(entries map[string]string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithCreationTimestamp ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithDeletionGracePeriodSeconds ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithDeletionTimestamp ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithFinalizers ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithFinalizers(values ...string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithGenerateName ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithGenerateName(value string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithGeneration ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithGeneration(value int64) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithKind ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithKind(value string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithLabels ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithLabels(entries map[string]string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithName ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithName(value string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithNamespace ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithNamespace(value string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithOwnerReferences ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithResourceVersion ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithResourceVersion(value string) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithSpec ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithSpec(value *ScaleSpecApplyConfiguration) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithStatus ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithStatus(value *ScaleStatusApplyConfiguration) *ScaleApplyConfiguration
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 (*ScaleApplyConfiguration) WithUID ¶ added in v0.22.0
func (b *ScaleApplyConfiguration) WithUID(value types.UID) *ScaleApplyConfiguration
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 ScaleSpecApplyConfiguration ¶ added in v0.22.0
type ScaleSpecApplyConfiguration struct {
// replicas is the desired number of instances for the scaled object.
Replicas *int32 `json:"replicas,omitempty"`
}
ScaleSpecApplyConfiguration represents a declarative configuration of the ScaleSpec type for use with apply.
ScaleSpec describes the attributes of a scale subresource.
func ScaleSpec ¶ added in v0.22.0
func ScaleSpec() *ScaleSpecApplyConfiguration
ScaleSpecApplyConfiguration constructs a declarative configuration of the ScaleSpec type for use with apply.
func (*ScaleSpecApplyConfiguration) WithReplicas ¶ added in v0.22.0
func (b *ScaleSpecApplyConfiguration) WithReplicas(value int32) *ScaleSpecApplyConfiguration
WithReplicas sets the Replicas 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 Replicas field is set to the value of the last call.
type ScaleStatusApplyConfiguration ¶ added in v0.22.0
type ScaleStatusApplyConfiguration struct {
// replicas is the actual number of observed instances of the scaled object.
Replicas *int32 `json:"replicas,omitempty"`
// 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"`
}
ScaleStatusApplyConfiguration represents a declarative configuration of the ScaleStatus type for use with apply.
ScaleStatus represents the current status of a scale subresource.
func ScaleStatus ¶ added in v0.22.0
func ScaleStatus() *ScaleStatusApplyConfiguration
ScaleStatusApplyConfiguration constructs a declarative configuration of the ScaleStatus type for use with apply.
func (*ScaleStatusApplyConfiguration) WithReplicas ¶ added in v0.22.0
func (b *ScaleStatusApplyConfiguration) WithReplicas(value int32) *ScaleStatusApplyConfiguration
WithReplicas sets the Replicas 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 Replicas field is set to the value of the last call.
func (*ScaleStatusApplyConfiguration) WithSelector ¶ added in v0.22.0
func (b *ScaleStatusApplyConfiguration) WithSelector(value string) *ScaleStatusApplyConfiguration
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.