Documentation ¶
Index ¶
- type CoordinatorApplyConfiguration
- type FailurePolicyApplyConfiguration
- func (b *FailurePolicyApplyConfiguration) WithMaxRestarts(value int32) *FailurePolicyApplyConfiguration
- func (b *FailurePolicyApplyConfiguration) WithRestartStrategy(value v1alpha2.JobSetRestartStrategy) *FailurePolicyApplyConfiguration
- func (b *FailurePolicyApplyConfiguration) WithRules(values ...*FailurePolicyRuleApplyConfiguration) *FailurePolicyApplyConfiguration
- type FailurePolicyRuleApplyConfiguration
- func (b *FailurePolicyRuleApplyConfiguration) WithAction(value v1alpha2.FailurePolicyAction) *FailurePolicyRuleApplyConfiguration
- func (b *FailurePolicyRuleApplyConfiguration) WithName(value string) *FailurePolicyRuleApplyConfiguration
- func (b *FailurePolicyRuleApplyConfiguration) WithOnJobFailureReasons(values ...string) *FailurePolicyRuleApplyConfiguration
- func (b *FailurePolicyRuleApplyConfiguration) WithTargetReplicatedJobs(values ...string) *FailurePolicyRuleApplyConfiguration
- type JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) GetName() *string
- func (b *JobSetApplyConfiguration) WithAPIVersion(value string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithAnnotations(entries map[string]string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithFinalizers(values ...string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithGenerateName(value string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithGeneration(value int64) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithKind(value string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithLabels(entries map[string]string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithName(value string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithNamespace(value string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithResourceVersion(value string) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithSpec(value *JobSetSpecApplyConfiguration) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithStatus(value *JobSetStatusApplyConfiguration) *JobSetApplyConfiguration
- func (b *JobSetApplyConfiguration) WithUID(value types.UID) *JobSetApplyConfiguration
- type JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithCoordinator(value *CoordinatorApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithFailurePolicy(value *FailurePolicyApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithManagedBy(value string) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithNetwork(value *NetworkApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithReplicatedJobs(values ...*ReplicatedJobApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithStartupPolicy(value *StartupPolicyApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithSuccessPolicy(value *SuccessPolicyApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithSuspend(value bool) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *JobSetSpecApplyConfiguration
- type JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithReplicatedJobsStatus(values ...*ReplicatedJobStatusApplyConfiguration) *JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithRestarts(value int32) *JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithRestartsCountTowardsMax(value int32) *JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithTerminalState(value string) *JobSetStatusApplyConfiguration
- type NetworkApplyConfiguration
- type ReplicatedJobApplyConfiguration
- func (b *ReplicatedJobApplyConfiguration) WithName(value string) *ReplicatedJobApplyConfiguration
- func (b *ReplicatedJobApplyConfiguration) WithReplicas(value int32) *ReplicatedJobApplyConfiguration
- func (b *ReplicatedJobApplyConfiguration) WithTemplate(value v1.JobTemplateSpec) *ReplicatedJobApplyConfiguration
- type ReplicatedJobStatusApplyConfiguration
- func (b *ReplicatedJobStatusApplyConfiguration) WithActive(value int32) *ReplicatedJobStatusApplyConfiguration
- func (b *ReplicatedJobStatusApplyConfiguration) WithFailed(value int32) *ReplicatedJobStatusApplyConfiguration
- func (b *ReplicatedJobStatusApplyConfiguration) WithName(value string) *ReplicatedJobStatusApplyConfiguration
- func (b *ReplicatedJobStatusApplyConfiguration) WithReady(value int32) *ReplicatedJobStatusApplyConfiguration
- func (b *ReplicatedJobStatusApplyConfiguration) WithSucceeded(value int32) *ReplicatedJobStatusApplyConfiguration
- func (b *ReplicatedJobStatusApplyConfiguration) WithSuspended(value int32) *ReplicatedJobStatusApplyConfiguration
- type StartupPolicyApplyConfiguration
- type SuccessPolicyApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoordinatorApplyConfiguration ¶ added in v0.6.0
type CoordinatorApplyConfiguration struct { ReplicatedJob *string `json:"replicatedJob,omitempty"` JobIndex *int `json:"jobIndex,omitempty"` PodIndex *int `json:"podIndex,omitempty"` }
CoordinatorApplyConfiguration represents a declarative configuration of the Coordinator type for use with apply.
func Coordinator ¶ added in v0.6.0
func Coordinator() *CoordinatorApplyConfiguration
CoordinatorApplyConfiguration constructs a declarative configuration of the Coordinator type for use with apply.
func (*CoordinatorApplyConfiguration) WithJobIndex ¶ added in v0.6.0
func (b *CoordinatorApplyConfiguration) WithJobIndex(value int) *CoordinatorApplyConfiguration
WithJobIndex sets the JobIndex 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 JobIndex field is set to the value of the last call.
func (*CoordinatorApplyConfiguration) WithPodIndex ¶ added in v0.6.0
func (b *CoordinatorApplyConfiguration) WithPodIndex(value int) *CoordinatorApplyConfiguration
WithPodIndex sets the PodIndex 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 PodIndex field is set to the value of the last call.
func (*CoordinatorApplyConfiguration) WithReplicatedJob ¶ added in v0.6.0
func (b *CoordinatorApplyConfiguration) WithReplicatedJob(value string) *CoordinatorApplyConfiguration
WithReplicatedJob sets the ReplicatedJob 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 ReplicatedJob field is set to the value of the last call.
type FailurePolicyApplyConfiguration ¶
type FailurePolicyApplyConfiguration struct { MaxRestarts *int32 `json:"maxRestarts,omitempty"` RestartStrategy *v1alpha2.JobSetRestartStrategy `json:"restartStrategy,omitempty"` Rules []FailurePolicyRuleApplyConfiguration `json:"rules,omitempty"` }
FailurePolicyApplyConfiguration represents a declarative configuration of the FailurePolicy type for use with apply.
func FailurePolicy ¶
func FailurePolicy() *FailurePolicyApplyConfiguration
FailurePolicyApplyConfiguration constructs a declarative configuration of the FailurePolicy type for use with apply.
func (*FailurePolicyApplyConfiguration) WithMaxRestarts ¶
func (b *FailurePolicyApplyConfiguration) WithMaxRestarts(value int32) *FailurePolicyApplyConfiguration
WithMaxRestarts sets the MaxRestarts 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 MaxRestarts field is set to the value of the last call.
func (*FailurePolicyApplyConfiguration) WithRestartStrategy ¶ added in v0.7.0
func (b *FailurePolicyApplyConfiguration) WithRestartStrategy(value v1alpha2.JobSetRestartStrategy) *FailurePolicyApplyConfiguration
WithRestartStrategy sets the RestartStrategy 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 RestartStrategy field is set to the value of the last call.
func (*FailurePolicyApplyConfiguration) WithRules ¶ added in v0.6.0
func (b *FailurePolicyApplyConfiguration) WithRules(values ...*FailurePolicyRuleApplyConfiguration) *FailurePolicyApplyConfiguration
WithRules adds the given value to the Rules 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 Rules field.
type FailurePolicyRuleApplyConfiguration ¶ added in v0.6.0
type FailurePolicyRuleApplyConfiguration struct { Name *string `json:"name,omitempty"` Action *v1alpha2.FailurePolicyAction `json:"action,omitempty"` OnJobFailureReasons []string `json:"onJobFailureReasons,omitempty"` TargetReplicatedJobs []string `json:"targetReplicatedJobs,omitempty"` }
FailurePolicyRuleApplyConfiguration represents a declarative configuration of the FailurePolicyRule type for use with apply.
func FailurePolicyRule ¶ added in v0.6.0
func FailurePolicyRule() *FailurePolicyRuleApplyConfiguration
FailurePolicyRuleApplyConfiguration constructs a declarative configuration of the FailurePolicyRule type for use with apply.
func (*FailurePolicyRuleApplyConfiguration) WithAction ¶ added in v0.6.0
func (b *FailurePolicyRuleApplyConfiguration) WithAction(value v1alpha2.FailurePolicyAction) *FailurePolicyRuleApplyConfiguration
WithAction sets the Action 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 Action field is set to the value of the last call.
func (*FailurePolicyRuleApplyConfiguration) WithName ¶ added in v0.6.0
func (b *FailurePolicyRuleApplyConfiguration) WithName(value string) *FailurePolicyRuleApplyConfiguration
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 (*FailurePolicyRuleApplyConfiguration) WithOnJobFailureReasons ¶ added in v0.6.0
func (b *FailurePolicyRuleApplyConfiguration) WithOnJobFailureReasons(values ...string) *FailurePolicyRuleApplyConfiguration
WithOnJobFailureReasons adds the given value to the OnJobFailureReasons 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 OnJobFailureReasons field.
func (*FailurePolicyRuleApplyConfiguration) WithTargetReplicatedJobs ¶ added in v0.6.0
func (b *FailurePolicyRuleApplyConfiguration) WithTargetReplicatedJobs(values ...string) *FailurePolicyRuleApplyConfiguration
WithTargetReplicatedJobs adds the given value to the TargetReplicatedJobs 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 TargetReplicatedJobs field.
type JobSetApplyConfiguration ¶
type JobSetApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *JobSetSpecApplyConfiguration `json:"spec,omitempty"` Status *JobSetStatusApplyConfiguration `json:"status,omitempty"` }
JobSetApplyConfiguration represents a declarative configuration of the JobSet type for use with apply.
func JobSet ¶
func JobSet(name, namespace string) *JobSetApplyConfiguration
JobSet constructs a declarative configuration of the JobSet type for use with apply.
func (*JobSetApplyConfiguration) GetName ¶ added in v0.7.0
func (b *JobSetApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*JobSetApplyConfiguration) WithAPIVersion ¶
func (b *JobSetApplyConfiguration) WithAPIVersion(value string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithAnnotations ¶
func (b *JobSetApplyConfiguration) WithAnnotations(entries map[string]string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithCreationTimestamp ¶
func (b *JobSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *JobSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithDeletionTimestamp ¶
func (b *JobSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithFinalizers ¶
func (b *JobSetApplyConfiguration) WithFinalizers(values ...string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithGenerateName ¶
func (b *JobSetApplyConfiguration) WithGenerateName(value string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithGeneration ¶
func (b *JobSetApplyConfiguration) WithGeneration(value int64) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithKind ¶
func (b *JobSetApplyConfiguration) WithKind(value string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithLabels ¶
func (b *JobSetApplyConfiguration) WithLabels(entries map[string]string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithName ¶
func (b *JobSetApplyConfiguration) WithName(value string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithNamespace ¶
func (b *JobSetApplyConfiguration) WithNamespace(value string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithOwnerReferences ¶
func (b *JobSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithResourceVersion ¶
func (b *JobSetApplyConfiguration) WithResourceVersion(value string) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithSpec ¶
func (b *JobSetApplyConfiguration) WithSpec(value *JobSetSpecApplyConfiguration) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithStatus ¶
func (b *JobSetApplyConfiguration) WithStatus(value *JobSetStatusApplyConfiguration) *JobSetApplyConfiguration
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 (*JobSetApplyConfiguration) WithUID ¶
func (b *JobSetApplyConfiguration) WithUID(value types.UID) *JobSetApplyConfiguration
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 JobSetSpecApplyConfiguration ¶
type JobSetSpecApplyConfiguration struct { ReplicatedJobs []ReplicatedJobApplyConfiguration `json:"replicatedJobs,omitempty"` Network *NetworkApplyConfiguration `json:"network,omitempty"` SuccessPolicy *SuccessPolicyApplyConfiguration `json:"successPolicy,omitempty"` FailurePolicy *FailurePolicyApplyConfiguration `json:"failurePolicy,omitempty"` StartupPolicy *StartupPolicyApplyConfiguration `json:"startupPolicy,omitempty"` Suspend *bool `json:"suspend,omitempty"` Coordinator *CoordinatorApplyConfiguration `json:"coordinator,omitempty"` ManagedBy *string `json:"managedBy,omitempty"` TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` }
JobSetSpecApplyConfiguration represents a declarative configuration of the JobSetSpec type for use with apply.
func JobSetSpec ¶
func JobSetSpec() *JobSetSpecApplyConfiguration
JobSetSpecApplyConfiguration constructs a declarative configuration of the JobSetSpec type for use with apply.
func (*JobSetSpecApplyConfiguration) WithCoordinator ¶ added in v0.6.0
func (b *JobSetSpecApplyConfiguration) WithCoordinator(value *CoordinatorApplyConfiguration) *JobSetSpecApplyConfiguration
WithCoordinator sets the Coordinator 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 Coordinator field is set to the value of the last call.
func (*JobSetSpecApplyConfiguration) WithFailurePolicy ¶
func (b *JobSetSpecApplyConfiguration) WithFailurePolicy(value *FailurePolicyApplyConfiguration) *JobSetSpecApplyConfiguration
WithFailurePolicy sets the FailurePolicy 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 FailurePolicy field is set to the value of the last call.
func (*JobSetSpecApplyConfiguration) WithManagedBy ¶ added in v0.5.0
func (b *JobSetSpecApplyConfiguration) WithManagedBy(value string) *JobSetSpecApplyConfiguration
WithManagedBy sets the ManagedBy 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 ManagedBy field is set to the value of the last call.
func (*JobSetSpecApplyConfiguration) WithNetwork ¶
func (b *JobSetSpecApplyConfiguration) WithNetwork(value *NetworkApplyConfiguration) *JobSetSpecApplyConfiguration
WithNetwork sets the Network 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 Network field is set to the value of the last call.
func (*JobSetSpecApplyConfiguration) WithReplicatedJobs ¶
func (b *JobSetSpecApplyConfiguration) WithReplicatedJobs(values ...*ReplicatedJobApplyConfiguration) *JobSetSpecApplyConfiguration
WithReplicatedJobs adds the given value to the ReplicatedJobs 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 ReplicatedJobs field.
func (*JobSetSpecApplyConfiguration) WithStartupPolicy ¶ added in v0.4.0
func (b *JobSetSpecApplyConfiguration) WithStartupPolicy(value *StartupPolicyApplyConfiguration) *JobSetSpecApplyConfiguration
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.
func (*JobSetSpecApplyConfiguration) WithSuccessPolicy ¶
func (b *JobSetSpecApplyConfiguration) WithSuccessPolicy(value *SuccessPolicyApplyConfiguration) *JobSetSpecApplyConfiguration
WithSuccessPolicy sets the SuccessPolicy 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 SuccessPolicy field is set to the value of the last call.
func (*JobSetSpecApplyConfiguration) WithSuspend ¶
func (b *JobSetSpecApplyConfiguration) WithSuspend(value bool) *JobSetSpecApplyConfiguration
WithSuspend sets the Suspend 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 Suspend field is set to the value of the last call.
func (*JobSetSpecApplyConfiguration) WithTTLSecondsAfterFinished ¶ added in v0.5.0
func (b *JobSetSpecApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *JobSetSpecApplyConfiguration
WithTTLSecondsAfterFinished sets the TTLSecondsAfterFinished 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 TTLSecondsAfterFinished field is set to the value of the last call.
type JobSetStatusApplyConfiguration ¶
type JobSetStatusApplyConfiguration struct { Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"` Restarts *int32 `json:"restarts,omitempty"` RestartsCountTowardsMax *int32 `json:"restartsCountTowardsMax,omitempty"` TerminalState *string `json:"terminalState,omitempty"` ReplicatedJobsStatus []ReplicatedJobStatusApplyConfiguration `json:"replicatedJobsStatus,omitempty"` }
JobSetStatusApplyConfiguration represents a declarative configuration of the JobSetStatus type for use with apply.
func JobSetStatus ¶
func JobSetStatus() *JobSetStatusApplyConfiguration
JobSetStatusApplyConfiguration constructs a declarative configuration of the JobSetStatus type for use with apply.
func (*JobSetStatusApplyConfiguration) WithConditions ¶
func (b *JobSetStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *JobSetStatusApplyConfiguration
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 (*JobSetStatusApplyConfiguration) WithReplicatedJobsStatus ¶
func (b *JobSetStatusApplyConfiguration) WithReplicatedJobsStatus(values ...*ReplicatedJobStatusApplyConfiguration) *JobSetStatusApplyConfiguration
WithReplicatedJobsStatus adds the given value to the ReplicatedJobsStatus 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 ReplicatedJobsStatus field.
func (*JobSetStatusApplyConfiguration) WithRestarts ¶
func (b *JobSetStatusApplyConfiguration) WithRestarts(value int32) *JobSetStatusApplyConfiguration
WithRestarts sets the Restarts 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 Restarts field is set to the value of the last call.
func (*JobSetStatusApplyConfiguration) WithRestartsCountTowardsMax ¶ added in v0.6.0
func (b *JobSetStatusApplyConfiguration) WithRestartsCountTowardsMax(value int32) *JobSetStatusApplyConfiguration
WithRestartsCountTowardsMax sets the RestartsCountTowardsMax 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 RestartsCountTowardsMax field is set to the value of the last call.
func (*JobSetStatusApplyConfiguration) WithTerminalState ¶ added in v0.6.0
func (b *JobSetStatusApplyConfiguration) WithTerminalState(value string) *JobSetStatusApplyConfiguration
WithTerminalState sets the TerminalState 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 TerminalState field is set to the value of the last call.
type NetworkApplyConfiguration ¶
type NetworkApplyConfiguration struct { EnableDNSHostnames *bool `json:"enableDNSHostnames,omitempty"` Subdomain *string `json:"subdomain,omitempty"` PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses,omitempty"` }
NetworkApplyConfiguration represents a declarative configuration of the Network type for use with apply.
func Network ¶
func Network() *NetworkApplyConfiguration
NetworkApplyConfiguration constructs a declarative configuration of the Network type for use with apply.
func (*NetworkApplyConfiguration) WithEnableDNSHostnames ¶
func (b *NetworkApplyConfiguration) WithEnableDNSHostnames(value bool) *NetworkApplyConfiguration
WithEnableDNSHostnames sets the EnableDNSHostnames 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 EnableDNSHostnames field is set to the value of the last call.
func (*NetworkApplyConfiguration) WithPublishNotReadyAddresses ¶ added in v0.6.0
func (b *NetworkApplyConfiguration) WithPublishNotReadyAddresses(value bool) *NetworkApplyConfiguration
WithPublishNotReadyAddresses sets the PublishNotReadyAddresses 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 PublishNotReadyAddresses field is set to the value of the last call.
func (*NetworkApplyConfiguration) WithSubdomain ¶
func (b *NetworkApplyConfiguration) WithSubdomain(value string) *NetworkApplyConfiguration
WithSubdomain sets the Subdomain 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 Subdomain field is set to the value of the last call.
type ReplicatedJobApplyConfiguration ¶
type ReplicatedJobApplyConfiguration struct { Name *string `json:"name,omitempty"` Template *v1.JobTemplateSpec `json:"template,omitempty"` Replicas *int32 `json:"replicas,omitempty"` }
ReplicatedJobApplyConfiguration represents a declarative configuration of the ReplicatedJob type for use with apply.
func ReplicatedJob ¶
func ReplicatedJob() *ReplicatedJobApplyConfiguration
ReplicatedJobApplyConfiguration constructs a declarative configuration of the ReplicatedJob type for use with apply.
func (*ReplicatedJobApplyConfiguration) WithName ¶
func (b *ReplicatedJobApplyConfiguration) WithName(value string) *ReplicatedJobApplyConfiguration
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 (*ReplicatedJobApplyConfiguration) WithReplicas ¶
func (b *ReplicatedJobApplyConfiguration) WithReplicas(value int32) *ReplicatedJobApplyConfiguration
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 (*ReplicatedJobApplyConfiguration) WithTemplate ¶
func (b *ReplicatedJobApplyConfiguration) WithTemplate(value v1.JobTemplateSpec) *ReplicatedJobApplyConfiguration
WithTemplate sets the Template 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 Template field is set to the value of the last call.
type ReplicatedJobStatusApplyConfiguration ¶
type ReplicatedJobStatusApplyConfiguration struct { Name *string `json:"name,omitempty"` Ready *int32 `json:"ready,omitempty"` Succeeded *int32 `json:"succeeded,omitempty"` Failed *int32 `json:"failed,omitempty"` Active *int32 `json:"active,omitempty"` Suspended *int32 `json:"suspended,omitempty"` }
ReplicatedJobStatusApplyConfiguration represents a declarative configuration of the ReplicatedJobStatus type for use with apply.
func ReplicatedJobStatus ¶
func ReplicatedJobStatus() *ReplicatedJobStatusApplyConfiguration
ReplicatedJobStatusApplyConfiguration constructs a declarative configuration of the ReplicatedJobStatus type for use with apply.
func (*ReplicatedJobStatusApplyConfiguration) WithActive ¶
func (b *ReplicatedJobStatusApplyConfiguration) WithActive(value int32) *ReplicatedJobStatusApplyConfiguration
WithActive sets the Active 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 Active field is set to the value of the last call.
func (*ReplicatedJobStatusApplyConfiguration) WithFailed ¶
func (b *ReplicatedJobStatusApplyConfiguration) WithFailed(value int32) *ReplicatedJobStatusApplyConfiguration
WithFailed sets the Failed 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 Failed field is set to the value of the last call.
func (*ReplicatedJobStatusApplyConfiguration) WithName ¶
func (b *ReplicatedJobStatusApplyConfiguration) WithName(value string) *ReplicatedJobStatusApplyConfiguration
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 (*ReplicatedJobStatusApplyConfiguration) WithReady ¶
func (b *ReplicatedJobStatusApplyConfiguration) WithReady(value int32) *ReplicatedJobStatusApplyConfiguration
WithReady sets the Ready 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 Ready field is set to the value of the last call.
func (*ReplicatedJobStatusApplyConfiguration) WithSucceeded ¶
func (b *ReplicatedJobStatusApplyConfiguration) WithSucceeded(value int32) *ReplicatedJobStatusApplyConfiguration
WithSucceeded sets the Succeeded 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 Succeeded field is set to the value of the last call.
func (*ReplicatedJobStatusApplyConfiguration) WithSuspended ¶ added in v0.4.0
func (b *ReplicatedJobStatusApplyConfiguration) WithSuspended(value int32) *ReplicatedJobStatusApplyConfiguration
WithSuspended sets the Suspended 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 Suspended field is set to the value of the last call.
type StartupPolicyApplyConfiguration ¶ added in v0.4.0
type StartupPolicyApplyConfiguration struct {
StartupPolicyOrder *v1alpha2.StartupPolicyOptions `json:"startupPolicyOrder,omitempty"`
}
StartupPolicyApplyConfiguration represents a declarative configuration of the StartupPolicy type for use with apply.
func StartupPolicy ¶ added in v0.4.0
func StartupPolicy() *StartupPolicyApplyConfiguration
StartupPolicyApplyConfiguration constructs a declarative configuration of the StartupPolicy type for use with apply.
func (*StartupPolicyApplyConfiguration) WithStartupPolicyOrder ¶ added in v0.4.0
func (b *StartupPolicyApplyConfiguration) WithStartupPolicyOrder(value v1alpha2.StartupPolicyOptions) *StartupPolicyApplyConfiguration
WithStartupPolicyOrder sets the StartupPolicyOrder 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 StartupPolicyOrder field is set to the value of the last call.
type SuccessPolicyApplyConfiguration ¶
type SuccessPolicyApplyConfiguration struct { Operator *v1alpha2.Operator `json:"operator,omitempty"` TargetReplicatedJobs []string `json:"targetReplicatedJobs,omitempty"` }
SuccessPolicyApplyConfiguration represents a declarative configuration of the SuccessPolicy type for use with apply.
func SuccessPolicy ¶
func SuccessPolicy() *SuccessPolicyApplyConfiguration
SuccessPolicyApplyConfiguration constructs a declarative configuration of the SuccessPolicy type for use with apply.
func (*SuccessPolicyApplyConfiguration) WithOperator ¶
func (b *SuccessPolicyApplyConfiguration) WithOperator(value v1alpha2.Operator) *SuccessPolicyApplyConfiguration
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 (*SuccessPolicyApplyConfiguration) WithTargetReplicatedJobs ¶
func (b *SuccessPolicyApplyConfiguration) WithTargetReplicatedJobs(values ...string) *SuccessPolicyApplyConfiguration
WithTargetReplicatedJobs adds the given value to the TargetReplicatedJobs 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 TargetReplicatedJobs field.