v1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaderWorkerSetApplyConfiguration

type LeaderWorkerSetApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *LeaderWorkerSetSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *LeaderWorkerSetStatusApplyConfiguration `json:"status,omitempty"`
}

LeaderWorkerSetApplyConfiguration represents a declarative configuration of the LeaderWorkerSet type for use with apply.

func LeaderWorkerSet

func LeaderWorkerSet(name, namespace string) *LeaderWorkerSetApplyConfiguration

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

func (*LeaderWorkerSetApplyConfiguration) GetName added in v0.4.0

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

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

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

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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 (*LeaderWorkerSetApplyConfiguration) 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 LeaderWorkerSetSpecApplyConfiguration

type LeaderWorkerSetSpecApplyConfiguration struct {
	Replicas             *int32                                  `json:"replicas,omitempty"`
	LeaderWorkerTemplate *LeaderWorkerTemplateApplyConfiguration `json:"leaderWorkerTemplate,omitempty"`
	RolloutStrategy      *RolloutStrategyApplyConfiguration      `json:"rolloutStrategy,omitempty"`
	StartupPolicy        *leaderworkersetv1.StartupPolicyType    `json:"startupPolicy,omitempty"`
	NetworkConfig        *NetworkConfigApplyConfiguration        `json:"networkConfig,omitempty"`
}

LeaderWorkerSetSpecApplyConfiguration represents a declarative configuration of the LeaderWorkerSetSpec type for use with apply.

func LeaderWorkerSetSpec

func LeaderWorkerSetSpec() *LeaderWorkerSetSpecApplyConfiguration

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

func (*LeaderWorkerSetSpecApplyConfiguration) WithLeaderWorkerTemplate

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

func (*LeaderWorkerSetSpecApplyConfiguration) WithNetworkConfig added in v0.4.0

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

func (*LeaderWorkerSetSpecApplyConfiguration) WithReplicas

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 (*LeaderWorkerSetSpecApplyConfiguration) WithRolloutStrategy added in v0.2.0

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

func (*LeaderWorkerSetSpecApplyConfiguration) WithStartupPolicy added in v0.4.0

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

type LeaderWorkerSetStatusApplyConfiguration

type LeaderWorkerSetStatusApplyConfiguration struct {
	Conditions      []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
	ReadyReplicas   *int32                           `json:"readyReplicas,omitempty"`
	UpdatedReplicas *int32                           `json:"updatedReplicas,omitempty"`
	Replicas        *int32                           `json:"replicas,omitempty"`
	HPAPodSelector  *string                          `json:"hpaPodSelector,omitempty"`
}

LeaderWorkerSetStatusApplyConfiguration represents a declarative configuration of the LeaderWorkerSetStatus type for use with apply.

func LeaderWorkerSetStatus

func LeaderWorkerSetStatus() *LeaderWorkerSetStatusApplyConfiguration

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

func (*LeaderWorkerSetStatusApplyConfiguration) 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 (*LeaderWorkerSetStatusApplyConfiguration) WithHPAPodSelector

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

func (*LeaderWorkerSetStatusApplyConfiguration) 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 (*LeaderWorkerSetStatusApplyConfiguration) WithReplicas

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 (*LeaderWorkerSetStatusApplyConfiguration) WithUpdatedReplicas added in v0.2.0

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

type LeaderWorkerTemplateApplyConfiguration

type LeaderWorkerTemplateApplyConfiguration struct {
	LeaderTemplate *v1.PodTemplateSpec                  `json:"leaderTemplate,omitempty"`
	WorkerTemplate *v1.PodTemplateSpec                  `json:"workerTemplate,omitempty"`
	Size           *int32                               `json:"size,omitempty"`
	RestartPolicy  *leaderworkersetv1.RestartPolicyType `json:"restartPolicy,omitempty"`
	SubGroupPolicy *SubGroupPolicyApplyConfiguration    `json:"subGroupPolicy,omitempty"`
}

LeaderWorkerTemplateApplyConfiguration represents a declarative configuration of the LeaderWorkerTemplate type for use with apply.

func LeaderWorkerTemplate

func LeaderWorkerTemplate() *LeaderWorkerTemplateApplyConfiguration

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

func (*LeaderWorkerTemplateApplyConfiguration) WithLeaderTemplate

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

func (*LeaderWorkerTemplateApplyConfiguration) WithRestartPolicy

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

func (*LeaderWorkerTemplateApplyConfiguration) WithSize

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

func (*LeaderWorkerTemplateApplyConfiguration) WithSubGroupPolicy added in v0.3.0

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

func (*LeaderWorkerTemplateApplyConfiguration) WithWorkerTemplate

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

type NetworkConfigApplyConfiguration added in v0.4.0

type NetworkConfigApplyConfiguration struct {
	SubdomainPolicy *v1.SubdomainPolicy `json:"subdomainPolicy,omitempty"`
}

NetworkConfigApplyConfiguration represents a declarative configuration of the NetworkConfig type for use with apply.

func NetworkConfig added in v0.4.0

func NetworkConfig() *NetworkConfigApplyConfiguration

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

func (*NetworkConfigApplyConfiguration) WithSubdomainPolicy added in v0.4.0

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

type RollingUpdateConfigurationApplyConfiguration added in v0.2.0

type RollingUpdateConfigurationApplyConfiguration struct {
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
}

RollingUpdateConfigurationApplyConfiguration represents a declarative configuration of the RollingUpdateConfiguration type for use with apply.

func RollingUpdateConfiguration added in v0.2.0

func RollingUpdateConfiguration() *RollingUpdateConfigurationApplyConfiguration

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

func (*RollingUpdateConfigurationApplyConfiguration) WithMaxSurge added in v0.3.0

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

func (*RollingUpdateConfigurationApplyConfiguration) WithMaxUnavailable added in v0.2.0

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.

type RolloutStrategyApplyConfiguration added in v0.2.0

type RolloutStrategyApplyConfiguration struct {
	Type                       *v1.RolloutStrategyType                       `json:"type,omitempty"`
	RollingUpdateConfiguration *RollingUpdateConfigurationApplyConfiguration `json:"rollingUpdateConfiguration,omitempty"`
}

RolloutStrategyApplyConfiguration represents a declarative configuration of the RolloutStrategy type for use with apply.

func RolloutStrategy added in v0.2.0

func RolloutStrategy() *RolloutStrategyApplyConfiguration

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

func (*RolloutStrategyApplyConfiguration) WithRollingUpdateConfiguration added in v0.2.0

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

func (*RolloutStrategyApplyConfiguration) WithType added in v0.2.0

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 SubGroupPolicyApplyConfiguration added in v0.3.0

type SubGroupPolicyApplyConfiguration struct {
	SubGroupSize *int32 `json:"subGroupSize,omitempty"`
}

SubGroupPolicyApplyConfiguration represents a declarative configuration of the SubGroupPolicy type for use with apply.

func SubGroupPolicy added in v0.3.0

func SubGroupPolicy() *SubGroupPolicyApplyConfiguration

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

func (*SubGroupPolicyApplyConfiguration) WithSubGroupSize added in v0.3.0

WithSubGroupSize sets the SubGroupSize 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 SubGroupSize 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