v1

package
v0.0.0-...-7ad5962 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecondarySchedulerApplyConfiguration

type SecondarySchedulerApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *SecondarySchedulerSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *SecondarySchedulerStatusApplyConfiguration `json:"status,omitempty"`
}

SecondarySchedulerApplyConfiguration represents a declarative configuration of the SecondaryScheduler type for use with apply.

func ExtractSecondaryScheduler

func ExtractSecondaryScheduler(secondaryScheduler *apissecondaryschedulerv1.SecondaryScheduler, fieldManager string) (*SecondarySchedulerApplyConfiguration, error)

ExtractSecondaryScheduler extracts the applied configuration owned by fieldManager from secondaryScheduler. If no managedFields are found in secondaryScheduler for fieldManager, a SecondarySchedulerApplyConfiguration 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. secondaryScheduler must be a unmodified SecondaryScheduler API object that was retrieved from the Kubernetes API. ExtractSecondaryScheduler 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 ExtractSecondarySchedulerStatus

func ExtractSecondarySchedulerStatus(secondaryScheduler *apissecondaryschedulerv1.SecondaryScheduler, fieldManager string) (*SecondarySchedulerApplyConfiguration, error)

ExtractSecondarySchedulerStatus is the same as ExtractSecondaryScheduler except that it extracts the status subresource applied configuration. Experimental!

func SecondaryScheduler

func SecondaryScheduler(name, namespace string) *SecondarySchedulerApplyConfiguration

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

func (*SecondarySchedulerApplyConfiguration) GetName

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

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

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

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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 (*SecondarySchedulerApplyConfiguration) 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 SecondarySchedulerSpecApplyConfiguration

type SecondarySchedulerSpecApplyConfiguration struct {
	v1.OperatorSpecApplyConfiguration `json:",inline"`
	SchedulerConfig                   *string `json:"schedulerConfig,omitempty"`
	SchedulerImage                    *string `json:"schedulerImage,omitempty"`
}

SecondarySchedulerSpecApplyConfiguration represents a declarative configuration of the SecondarySchedulerSpec type for use with apply.

func SecondarySchedulerSpec

func SecondarySchedulerSpec() *SecondarySchedulerSpecApplyConfiguration

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

func (*SecondarySchedulerSpecApplyConfiguration) WithLogLevel

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

func (*SecondarySchedulerSpecApplyConfiguration) WithManagementState

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

func (*SecondarySchedulerSpecApplyConfiguration) WithObservedConfig

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

func (*SecondarySchedulerSpecApplyConfiguration) WithOperatorLogLevel

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

func (*SecondarySchedulerSpecApplyConfiguration) WithSchedulerConfig

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

func (*SecondarySchedulerSpecApplyConfiguration) WithSchedulerImage

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

func (*SecondarySchedulerSpecApplyConfiguration) WithUnsupportedConfigOverrides

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

type SecondarySchedulerStatusApplyConfiguration

type SecondarySchedulerStatusApplyConfiguration struct {
	v1.OperatorStatusApplyConfiguration `json:",inline"`
}

SecondarySchedulerStatusApplyConfiguration represents a declarative configuration of the SecondarySchedulerStatus type for use with apply.

func SecondarySchedulerStatus

func SecondarySchedulerStatus() *SecondarySchedulerStatusApplyConfiguration

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

func (*SecondarySchedulerStatusApplyConfiguration) 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 (*SecondarySchedulerStatusApplyConfiguration) WithGenerations

WithGenerations adds the given value to the Generations 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 Generations field.

func (*SecondarySchedulerStatusApplyConfiguration) WithLatestAvailableRevision

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

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

func (*SecondarySchedulerStatusApplyConfiguration) WithReadyReplicas

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

func (*SecondarySchedulerStatusApplyConfiguration) WithVersion

WithVersion sets the Version 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 Version 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