v1

package
v0.31.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrossVersionObjectReferenceApplyConfiguration

type CrossVersionObjectReferenceApplyConfiguration struct {
	Kind       *string `json:"kind,omitempty"`
	Name       *string `json:"name,omitempty"`
	APIVersion *string `json:"apiVersion,omitempty"`
}

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

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 HorizontalPodAutoscalerApplyConfiguration

type HorizontalPodAutoscalerApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *HorizontalPodAutoscalerSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *HorizontalPodAutoscalerStatusApplyConfiguration `json:"status,omitempty"`
}

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

func ExtractHorizontalPodAutoscaler

func ExtractHorizontalPodAutoscaler(horizontalPodAutoscaler *apiautoscalingv1.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. Experimental!

func ExtractHorizontalPodAutoscalerStatus added in v0.22.0

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

ExtractHorizontalPodAutoscalerStatus is the same as ExtractHorizontalPodAutoscaler except that it extracts the status subresource applied configuration. Experimental!

func HorizontalPodAutoscaler

func HorizontalPodAutoscaler(name, namespace string) *HorizontalPodAutoscalerApplyConfiguration

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

func (*HorizontalPodAutoscalerApplyConfiguration) GetName added in v0.31.0

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

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 HorizontalPodAutoscalerSpecApplyConfiguration

type HorizontalPodAutoscalerSpecApplyConfiguration struct {
	ScaleTargetRef                 *CrossVersionObjectReferenceApplyConfiguration `json:"scaleTargetRef,omitempty"`
	MinReplicas                    *int32                                         `json:"minReplicas,omitempty"`
	MaxReplicas                    *int32                                         `json:"maxReplicas,omitempty"`
	TargetCPUUtilizationPercentage *int32                                         `json:"targetCPUUtilizationPercentage,omitempty"`
}

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

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) 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.

func (*HorizontalPodAutoscalerSpecApplyConfiguration) WithTargetCPUUtilizationPercentage

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              *int64   `json:"observedGeneration,omitempty"`
	LastScaleTime                   *v1.Time `json:"lastScaleTime,omitempty"`
	CurrentReplicas                 *int32   `json:"currentReplicas,omitempty"`
	DesiredReplicas                 *int32   `json:"desiredReplicas,omitempty"`
	CurrentCPUUtilizationPercentage *int32   `json:"currentCPUUtilizationPercentage,omitempty"`
}

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

func HorizontalPodAutoscalerStatus

func HorizontalPodAutoscalerStatus() *HorizontalPodAutoscalerStatusApplyConfiguration

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

func (*HorizontalPodAutoscalerStatusApplyConfiguration) WithCurrentCPUUtilizationPercentage

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

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 ScaleApplyConfiguration added in v0.22.0

type ScaleApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ScaleSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ScaleStatusApplyConfiguration `json:"status,omitempty"`
}

ScaleApplyConfiguration represents a declarative configuration of the Scale type for use with apply.

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) 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) 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 metav1.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 metav1.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

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

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

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

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

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

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 *int32 `json:"replicas,omitempty"`
}

ScaleSpecApplyConfiguration represents a declarative configuration of the ScaleSpec type for use with apply.

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

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 *int32  `json:"replicas,omitempty"`
	Selector *string `json:"selector,omitempty"`
}

ScaleStatusApplyConfiguration represents a declarative configuration of the ScaleStatus type for use with apply.

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

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

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.

Jump to

Keyboard shortcuts

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