v1

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 605

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionApplyConfiguration

type ConditionApplyConfiguration struct {
	Type               *string                 `json:"type,omitempty"`
	Status             *metav1.ConditionStatus `json:"status,omitempty"`
	ObservedGeneration *int64                  `json:"observedGeneration,omitempty"`
	LastTransitionTime *metav1.Time            `json:"lastTransitionTime,omitempty"`
	Reason             *string                 `json:"reason,omitempty"`
	Message            *string                 `json:"message,omitempty"`
}

ConditionApplyConfiguration represents a declarative configuration of the Condition type for use with apply.

func Condition

func Condition() *ConditionApplyConfiguration

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

func (*ConditionApplyConfiguration) WithLastTransitionTime

func (b *ConditionApplyConfiguration) WithLastTransitionTime(value metav1.Time) *ConditionApplyConfiguration

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

func (*ConditionApplyConfiguration) WithMessage

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

func (*ConditionApplyConfiguration) WithObservedGeneration

func (b *ConditionApplyConfiguration) WithObservedGeneration(value int64) *ConditionApplyConfiguration

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.

func (*ConditionApplyConfiguration) WithReason

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

func (*ConditionApplyConfiguration) 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 (*ConditionApplyConfiguration) WithType

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

type DeleteOptionsApplyConfiguration

type DeleteOptionsApplyConfiguration struct {
	TypeMetaApplyConfiguration                       `json:",inline"`
	GracePeriodSeconds                               *int64                           `json:"gracePeriodSeconds,omitempty"`
	Preconditions                                    *PreconditionsApplyConfiguration `json:"preconditions,omitempty"`
	OrphanDependents                                 *bool                            `json:"orphanDependents,omitempty"`
	PropagationPolicy                                *metav1.DeletionPropagation      `json:"propagationPolicy,omitempty"`
	DryRun                                           []string                         `json:"dryRun,omitempty"`
	IgnoreStoreReadErrorWithClusterBreakingPotential *bool                            `json:"ignoreStoreReadErrorWithClusterBreakingPotential,omitempty"`
}

DeleteOptionsApplyConfiguration represents a declarative configuration of the DeleteOptions type for use with apply.

func DeleteOptions

func DeleteOptions() *DeleteOptionsApplyConfiguration

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

func (*DeleteOptionsApplyConfiguration) 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 (*DeleteOptionsApplyConfiguration) WithDryRun

WithDryRun adds the given value to the DryRun 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 DryRun field.

func (*DeleteOptionsApplyConfiguration) WithGracePeriodSeconds

func (b *DeleteOptionsApplyConfiguration) WithGracePeriodSeconds(value int64) *DeleteOptionsApplyConfiguration

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

func (*DeleteOptionsApplyConfiguration) WithIgnoreStoreReadErrorWithClusterBreakingPotential added in v0.32.0

func (b *DeleteOptionsApplyConfiguration) WithIgnoreStoreReadErrorWithClusterBreakingPotential(value bool) *DeleteOptionsApplyConfiguration

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

func (*DeleteOptionsApplyConfiguration) 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 (*DeleteOptionsApplyConfiguration) WithOrphanDependents

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

func (*DeleteOptionsApplyConfiguration) WithPreconditions

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

func (*DeleteOptionsApplyConfiguration) WithPropagationPolicy

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

type LabelSelectorApplyConfiguration

type LabelSelectorApplyConfiguration struct {
	MatchLabels      map[string]string                            `json:"matchLabels,omitempty"`
	MatchExpressions []LabelSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"`
}

LabelSelectorApplyConfiguration represents a declarative configuration of the LabelSelector type for use with apply.

func LabelSelector

func LabelSelector() *LabelSelectorApplyConfiguration

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

func (*LabelSelectorApplyConfiguration) WithMatchExpressions

WithMatchExpressions adds the given value to the MatchExpressions 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 MatchExpressions field.

func (*LabelSelectorApplyConfiguration) WithMatchLabels

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

type LabelSelectorRequirementApplyConfiguration

type LabelSelectorRequirementApplyConfiguration struct {
	Key      *string                       `json:"key,omitempty"`
	Operator *metav1.LabelSelectorOperator `json:"operator,omitempty"`
	Values   []string                      `json:"values,omitempty"`
}

LabelSelectorRequirementApplyConfiguration represents a declarative configuration of the LabelSelectorRequirement type for use with apply.

func LabelSelectorRequirement

func LabelSelectorRequirement() *LabelSelectorRequirementApplyConfiguration

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

func (*LabelSelectorRequirementApplyConfiguration) WithKey

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

func (*LabelSelectorRequirementApplyConfiguration) WithOperator

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

func (*LabelSelectorRequirementApplyConfiguration) WithValues

WithValues adds the given value to the Values 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 Values field.

type ManagedFieldsEntryApplyConfiguration

type ManagedFieldsEntryApplyConfiguration struct {
	Manager     *string                            `json:"manager,omitempty"`
	Operation   *metav1.ManagedFieldsOperationType `json:"operation,omitempty"`
	APIVersion  *string                            `json:"apiVersion,omitempty"`
	Time        *metav1.Time                       `json:"time,omitempty"`
	FieldsType  *string                            `json:"fieldsType,omitempty"`
	FieldsV1    *metav1.FieldsV1                   `json:"fieldsV1,omitempty"`
	Subresource *string                            `json:"subresource,omitempty"`
}

ManagedFieldsEntryApplyConfiguration represents a declarative configuration of the ManagedFieldsEntry type for use with apply.

func ManagedFieldsEntry

func ManagedFieldsEntry() *ManagedFieldsEntryApplyConfiguration

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

func (*ManagedFieldsEntryApplyConfiguration) 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 (*ManagedFieldsEntryApplyConfiguration) WithFieldsType

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

func (*ManagedFieldsEntryApplyConfiguration) WithFieldsV1

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

func (*ManagedFieldsEntryApplyConfiguration) WithManager

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

func (*ManagedFieldsEntryApplyConfiguration) WithOperation

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

func (*ManagedFieldsEntryApplyConfiguration) WithSubresource added in v0.22.0

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

func (*ManagedFieldsEntryApplyConfiguration) WithTime

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

type ObjectMetaApplyConfiguration

type ObjectMetaApplyConfiguration struct {
	Name                       *string                            `json:"name,omitempty"`
	GenerateName               *string                            `json:"generateName,omitempty"`
	Namespace                  *string                            `json:"namespace,omitempty"`
	UID                        *types.UID                         `json:"uid,omitempty"`
	ResourceVersion            *string                            `json:"resourceVersion,omitempty"`
	Generation                 *int64                             `json:"generation,omitempty"`
	CreationTimestamp          *metav1.Time                       `json:"creationTimestamp,omitempty"`
	DeletionTimestamp          *metav1.Time                       `json:"deletionTimestamp,omitempty"`
	DeletionGracePeriodSeconds *int64                             `json:"deletionGracePeriodSeconds,omitempty"`
	Labels                     map[string]string                  `json:"labels,omitempty"`
	Annotations                map[string]string                  `json:"annotations,omitempty"`
	OwnerReferences            []OwnerReferenceApplyConfiguration `json:"ownerReferences,omitempty"`
	Finalizers                 []string                           `json:"finalizers,omitempty"`
}

ObjectMetaApplyConfiguration represents a declarative configuration of the ObjectMeta type for use with apply.

func ObjectMeta

func ObjectMeta() *ObjectMetaApplyConfiguration

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

func (*ObjectMetaApplyConfiguration) GetName added in v0.31.0

func (b *ObjectMetaApplyConfiguration) GetName() *string

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

func (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) WithCreationTimestamp

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

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

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

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 (*ObjectMetaApplyConfiguration) WithDeletionTimestamp

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

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 (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) 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 (*ObjectMetaApplyConfiguration) WithResourceVersion

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

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 (*ObjectMetaApplyConfiguration) 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 OwnerReferenceApplyConfiguration

type OwnerReferenceApplyConfiguration struct {
	APIVersion         *string    `json:"apiVersion,omitempty"`
	Kind               *string    `json:"kind,omitempty"`
	Name               *string    `json:"name,omitempty"`
	UID                *types.UID `json:"uid,omitempty"`
	Controller         *bool      `json:"controller,omitempty"`
	BlockOwnerDeletion *bool      `json:"blockOwnerDeletion,omitempty"`
}

OwnerReferenceApplyConfiguration represents a declarative configuration of the OwnerReference type for use with apply.

func OwnerReference

func OwnerReference() *OwnerReferenceApplyConfiguration

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

func (*OwnerReferenceApplyConfiguration) 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 (*OwnerReferenceApplyConfiguration) WithBlockOwnerDeletion

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

func (*OwnerReferenceApplyConfiguration) WithController

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

func (*OwnerReferenceApplyConfiguration) 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 (*OwnerReferenceApplyConfiguration) 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 (*OwnerReferenceApplyConfiguration) 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 PreconditionsApplyConfiguration

type PreconditionsApplyConfiguration struct {
	UID             *types.UID `json:"uid,omitempty"`
	ResourceVersion *string    `json:"resourceVersion,omitempty"`
}

PreconditionsApplyConfiguration represents a declarative configuration of the Preconditions type for use with apply.

func Preconditions

func Preconditions() *PreconditionsApplyConfiguration

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

func (*PreconditionsApplyConfiguration) 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 (*PreconditionsApplyConfiguration) 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 TypeMetaApplyConfiguration

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

TypeMetaApplyConfiguration represents a declarative configuration of the TypeMeta type for use with apply.

func TypeMeta

func TypeMeta() *TypeMetaApplyConfiguration

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

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

type UnstructuredExtractor added in v0.23.0

type UnstructuredExtractor interface {
	Extract(object *unstructured.Unstructured, fieldManager string) (*unstructured.Unstructured, error)
	ExtractStatus(object *unstructured.Unstructured, fieldManager string) (*unstructured.Unstructured, error)
}

UnstructuredExtractor enables extracting the applied configuration state from object for fieldManager into an unstructured object type.

func NewUnstructuredExtractor added in v0.23.0

func NewUnstructuredExtractor(dc discovery.DiscoveryInterface) (UnstructuredExtractor, error)

NewUnstructuredExtractor creates the extractor with which you can extract the applied configuration for a given manager from an unstructured object.

Jump to

Keyboard shortcuts

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