v1

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvictionApplyConfiguration added in v0.22.0

type EvictionApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	DeleteOptions                    *v1.DeleteOptionsApplyConfiguration `json:"deleteOptions,omitempty"`
}

EvictionApplyConfiguration represents an declarative configuration of the Eviction type for use with apply.

func Eviction added in v0.22.0

func Eviction(name, namespace string) *EvictionApplyConfiguration

Eviction constructs an declarative configuration of the Eviction type for use with apply.

func ExtractEviction added in v0.22.0

func ExtractEviction(eviction *policyv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error)

ExtractEviction extracts the applied configuration owned by fieldManager from eviction. If no managedFields are found in eviction for fieldManager, a EvictionApplyConfiguration 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. eviction must be a unmodified Eviction API object that was retrieved from the Kubernetes API. ExtractEviction 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 ExtractEvictionStatus added in v0.22.0

func ExtractEvictionStatus(eviction *policyv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error)

ExtractEvictionStatus is the same as ExtractEviction except that it extracts the status subresource applied configuration. Experimental!

func (*EvictionApplyConfiguration) WithAPIVersion added in v0.22.0

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 (*EvictionApplyConfiguration) WithAnnotations added in v0.22.0

func (b *EvictionApplyConfiguration) WithAnnotations(entries map[string]string) *EvictionApplyConfiguration

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 (*EvictionApplyConfiguration) WithCreationTimestamp added in v0.22.0

func (b *EvictionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EvictionApplyConfiguration

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 (*EvictionApplyConfiguration) WithDeleteOptions added in v0.22.0

WithDeleteOptions sets the DeleteOptions 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 DeleteOptions field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithDeletionGracePeriodSeconds added in v0.22.0

func (b *EvictionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EvictionApplyConfiguration

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 (*EvictionApplyConfiguration) WithDeletionTimestamp added in v0.22.0

func (b *EvictionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EvictionApplyConfiguration

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 (*EvictionApplyConfiguration) WithFinalizers added in v0.22.0

func (b *EvictionApplyConfiguration) WithFinalizers(values ...string) *EvictionApplyConfiguration

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 (*EvictionApplyConfiguration) WithGenerateName added in v0.22.0

func (b *EvictionApplyConfiguration) WithGenerateName(value string) *EvictionApplyConfiguration

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 (*EvictionApplyConfiguration) WithGeneration added in v0.22.0

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 (*EvictionApplyConfiguration) 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 (*EvictionApplyConfiguration) WithLabels added in v0.22.0

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 (*EvictionApplyConfiguration) 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 (*EvictionApplyConfiguration) WithNamespace added in v0.22.0

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 (*EvictionApplyConfiguration) 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 (*EvictionApplyConfiguration) WithResourceVersion added in v0.22.0

func (b *EvictionApplyConfiguration) WithResourceVersion(value string) *EvictionApplyConfiguration

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 (*EvictionApplyConfiguration) 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 PodDisruptionBudgetApplyConfiguration

type PodDisruptionBudgetApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *PodDisruptionBudgetSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *PodDisruptionBudgetStatusApplyConfiguration `json:"status,omitempty"`
}

PodDisruptionBudgetApplyConfiguration represents an declarative configuration of the PodDisruptionBudget type for use with apply.

func ExtractPodDisruptionBudget

func ExtractPodDisruptionBudget(podDisruptionBudget *apipolicyv1.PodDisruptionBudget, fieldManager string) (*PodDisruptionBudgetApplyConfiguration, error)

ExtractPodDisruptionBudget extracts the applied configuration owned by fieldManager from podDisruptionBudget. If no managedFields are found in podDisruptionBudget for fieldManager, a PodDisruptionBudgetApplyConfiguration 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. podDisruptionBudget must be a unmodified PodDisruptionBudget API object that was retrieved from the Kubernetes API. ExtractPodDisruptionBudget 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 ExtractPodDisruptionBudgetStatus added in v0.22.0

func ExtractPodDisruptionBudgetStatus(podDisruptionBudget *apipolicyv1.PodDisruptionBudget, fieldManager string) (*PodDisruptionBudgetApplyConfiguration, error)

ExtractPodDisruptionBudgetStatus is the same as ExtractPodDisruptionBudget except that it extracts the status subresource applied configuration. Experimental!

func PodDisruptionBudget

func PodDisruptionBudget(name, namespace string) *PodDisruptionBudgetApplyConfiguration

PodDisruptionBudget constructs an declarative configuration of the PodDisruptionBudget type for use with apply.

func (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *PodDisruptionBudgetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PodDisruptionBudgetApplyConfiguration

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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 (*PodDisruptionBudgetApplyConfiguration) 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 PodDisruptionBudgetSpecApplyConfiguration

type PodDisruptionBudgetSpecApplyConfiguration struct {
	MinAvailable               *intstr.IntOrString                      `json:"minAvailable,omitempty"`
	Selector                   *v1.LabelSelectorApplyConfiguration      `json:"selector,omitempty"`
	MaxUnavailable             *intstr.IntOrString                      `json:"maxUnavailable,omitempty"`
	UnhealthyPodEvictionPolicy *policyv1.UnhealthyPodEvictionPolicyType `json:"unhealthyPodEvictionPolicy,omitempty"`
}

PodDisruptionBudgetSpecApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetSpec type for use with apply.

func PodDisruptionBudgetSpec

func PodDisruptionBudgetSpec() *PodDisruptionBudgetSpecApplyConfiguration

PodDisruptionBudgetSpecApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetSpec type for use with apply.

func (*PodDisruptionBudgetSpecApplyConfiguration) WithMaxUnavailable

WithMaxUnavailable sets the MaxUnavailable 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 MaxUnavailable field is set to the value of the last call.

func (*PodDisruptionBudgetSpecApplyConfiguration) WithMinAvailable

WithMinAvailable sets the MinAvailable 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 MinAvailable field is set to the value of the last call.

func (*PodDisruptionBudgetSpecApplyConfiguration) 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 (*PodDisruptionBudgetSpecApplyConfiguration) WithUnhealthyPodEvictionPolicy added in v0.26.0

WithUnhealthyPodEvictionPolicy sets the UnhealthyPodEvictionPolicy 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 UnhealthyPodEvictionPolicy field is set to the value of the last call.

type PodDisruptionBudgetStatusApplyConfiguration

type PodDisruptionBudgetStatusApplyConfiguration struct {
	ObservedGeneration *int64                               `json:"observedGeneration,omitempty"`
	DisruptedPods      map[string]v1.Time                   `json:"disruptedPods,omitempty"`
	DisruptionsAllowed *int32                               `json:"disruptionsAllowed,omitempty"`
	CurrentHealthy     *int32                               `json:"currentHealthy,omitempty"`
	DesiredHealthy     *int32                               `json:"desiredHealthy,omitempty"`
	ExpectedPods       *int32                               `json:"expectedPods,omitempty"`
	Conditions         []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}

PodDisruptionBudgetStatusApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetStatus type for use with apply.

func PodDisruptionBudgetStatus

func PodDisruptionBudgetStatus() *PodDisruptionBudgetStatusApplyConfiguration

PodDisruptionBudgetStatusApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetStatus type for use with apply.

func (*PodDisruptionBudgetStatusApplyConfiguration) 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 (*PodDisruptionBudgetStatusApplyConfiguration) WithCurrentHealthy

WithCurrentHealthy sets the CurrentHealthy 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 CurrentHealthy field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithDesiredHealthy

WithDesiredHealthy sets the DesiredHealthy 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 DesiredHealthy field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithDisruptedPods

WithDisruptedPods puts the entries into the DisruptedPods 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 DisruptedPods field, overwriting an existing map entries in DisruptedPods field with the same key.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithDisruptionsAllowed

WithDisruptionsAllowed sets the DisruptionsAllowed 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 DisruptionsAllowed field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) WithExpectedPods

WithExpectedPods sets the ExpectedPods 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 ExpectedPods field is set to the value of the last call.

func (*PodDisruptionBudgetStatusApplyConfiguration) 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.

Jump to

Keyboard shortcuts

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