Documentation ¶
Index ¶
- type DependsOnApplyConfiguration
- type JobApplyConfiguration
- func (b *JobApplyConfiguration) WithAPIVersion(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithAnnotations(entries map[string]string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithFinalizers(values ...string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithGenerateName(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithGeneration(value int64) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithKind(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithLabels(entries map[string]string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithName(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithNamespace(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithResourceVersion(value string) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *JobApplyConfiguration
- func (b *JobApplyConfiguration) WithUID(value types.UID) *JobApplyConfiguration
- type JobConditionApplyConfiguration
- type JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithMaxRetry(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithMinAvailable(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithMinSuccess(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithPlugins(entries map[string][]string) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithPolicies(values ...*LifecyclePolicyApplyConfiguration) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithPriorityClassName(value string) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithQueue(value string) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithRunningEstimate(value v1.Duration) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithSchedulerName(value string) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithTasks(values ...*TaskSpecApplyConfiguration) *JobSpecApplyConfiguration
- func (b *JobSpecApplyConfiguration) WithVolumes(values ...*VolumeSpecApplyConfiguration) *JobSpecApplyConfiguration
- type JobStateApplyConfiguration
- func (b *JobStateApplyConfiguration) WithLastTransitionTime(value v1.Time) *JobStateApplyConfiguration
- func (b *JobStateApplyConfiguration) WithMessage(value string) *JobStateApplyConfiguration
- func (b *JobStateApplyConfiguration) WithPhase(value v1alpha1.JobPhase) *JobStateApplyConfiguration
- func (b *JobStateApplyConfiguration) WithReason(value string) *JobStateApplyConfiguration
- type JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithConditions(values ...*JobConditionApplyConfiguration) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithControlledResources(entries map[string]string) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithFailed(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithMinAvailable(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithPending(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithRetryCount(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithRunning(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithRunningDuration(value v1.Duration) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithState(value *JobStateApplyConfiguration) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithSucceeded(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithTaskStatusCount(entries map[string]TaskStateApplyConfiguration) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithTerminating(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithUnknown(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithVersion(value int32) *JobStatusApplyConfiguration
- type LifecyclePolicyApplyConfiguration
- func (b *LifecyclePolicyApplyConfiguration) WithAction(value v1alpha1.Action) *LifecyclePolicyApplyConfiguration
- func (b *LifecyclePolicyApplyConfiguration) WithEvent(value v1alpha1.Event) *LifecyclePolicyApplyConfiguration
- func (b *LifecyclePolicyApplyConfiguration) WithEvents(values ...v1alpha1.Event) *LifecyclePolicyApplyConfiguration
- func (b *LifecyclePolicyApplyConfiguration) WithExitCode(value int32) *LifecyclePolicyApplyConfiguration
- func (b *LifecyclePolicyApplyConfiguration) WithTimeout(value v1.Duration) *LifecyclePolicyApplyConfiguration
- type TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithDependsOn(value *DependsOnApplyConfiguration) *TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithMaxRetry(value int32) *TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithMinAvailable(value int32) *TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithName(value string) *TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithPolicies(values ...*LifecyclePolicyApplyConfiguration) *TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithReplicas(value int32) *TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithTemplate(value v1.PodTemplateSpec) *TaskSpecApplyConfiguration
- func (b *TaskSpecApplyConfiguration) WithTopologyPolicy(value batchv1alpha1.NumaPolicy) *TaskSpecApplyConfiguration
- type TaskStateApplyConfiguration
- type VolumeSpecApplyConfiguration
- func (b *VolumeSpecApplyConfiguration) WithMountPath(value string) *VolumeSpecApplyConfiguration
- func (b *VolumeSpecApplyConfiguration) WithVolumeClaim(value v1.PersistentVolumeClaimSpec) *VolumeSpecApplyConfiguration
- func (b *VolumeSpecApplyConfiguration) WithVolumeClaimName(value string) *VolumeSpecApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependsOnApplyConfiguration ¶
type DependsOnApplyConfiguration struct { Name []string `json:"name,omitempty"` Iteration *v1alpha1.Iteration `json:"iteration,omitempty"` }
DependsOnApplyConfiguration represents an declarative configuration of the DependsOn type for use with apply.
func DependsOn ¶
func DependsOn() *DependsOnApplyConfiguration
DependsOnApplyConfiguration constructs an declarative configuration of the DependsOn type for use with apply.
func (*DependsOnApplyConfiguration) WithIteration ¶
func (b *DependsOnApplyConfiguration) WithIteration(value v1alpha1.Iteration) *DependsOnApplyConfiguration
WithIteration sets the Iteration 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 Iteration field is set to the value of the last call.
func (*DependsOnApplyConfiguration) WithName ¶
func (b *DependsOnApplyConfiguration) WithName(values ...string) *DependsOnApplyConfiguration
WithName adds the given value to the Name 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 Name field.
type JobApplyConfiguration ¶
type JobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *JobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
JobApplyConfiguration represents an declarative configuration of the Job type for use with apply.
func Job ¶
func Job(name, namespace string) *JobApplyConfiguration
Job constructs an declarative configuration of the Job type for use with apply.
func (*JobApplyConfiguration) WithAPIVersion ¶
func (b *JobApplyConfiguration) WithAPIVersion(value string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithAnnotations ¶
func (b *JobApplyConfiguration) WithAnnotations(entries map[string]string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithCreationTimestamp ¶
func (b *JobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *JobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithDeletionTimestamp ¶
func (b *JobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithFinalizers ¶
func (b *JobApplyConfiguration) WithFinalizers(values ...string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithGenerateName ¶
func (b *JobApplyConfiguration) WithGenerateName(value string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithGeneration ¶
func (b *JobApplyConfiguration) WithGeneration(value int64) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithKind ¶
func (b *JobApplyConfiguration) WithKind(value string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithLabels ¶
func (b *JobApplyConfiguration) WithLabels(entries map[string]string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithName ¶
func (b *JobApplyConfiguration) WithName(value string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithNamespace ¶
func (b *JobApplyConfiguration) WithNamespace(value string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithOwnerReferences ¶
func (b *JobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithResourceVersion ¶
func (b *JobApplyConfiguration) WithResourceVersion(value string) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithSpec ¶
func (b *JobApplyConfiguration) WithSpec(value *JobSpecApplyConfiguration) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithStatus ¶
func (b *JobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *JobApplyConfiguration
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 (*JobApplyConfiguration) WithUID ¶
func (b *JobApplyConfiguration) WithUID(value types.UID) *JobApplyConfiguration
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 JobConditionApplyConfiguration ¶
type JobConditionApplyConfiguration struct { Status *v1alpha1.JobPhase `json:"status,omitempty"` LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"` }
JobConditionApplyConfiguration represents an declarative configuration of the JobCondition type for use with apply.
func JobCondition ¶
func JobCondition() *JobConditionApplyConfiguration
JobConditionApplyConfiguration constructs an declarative configuration of the JobCondition type for use with apply.
func (*JobConditionApplyConfiguration) WithLastTransitionTime ¶
func (b *JobConditionApplyConfiguration) WithLastTransitionTime(value v1.Time) *JobConditionApplyConfiguration
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 (*JobConditionApplyConfiguration) WithStatus ¶
func (b *JobConditionApplyConfiguration) WithStatus(value v1alpha1.JobPhase) *JobConditionApplyConfiguration
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.
type JobSpecApplyConfiguration ¶
type JobSpecApplyConfiguration struct { SchedulerName *string `json:"schedulerName,omitempty"` MinAvailable *int32 `json:"minAvailable,omitempty"` Volumes []VolumeSpecApplyConfiguration `json:"volumes,omitempty"` Tasks []TaskSpecApplyConfiguration `json:"tasks,omitempty"` Policies []LifecyclePolicyApplyConfiguration `json:"policies,omitempty"` Plugins map[string][]string `json:"plugins,omitempty"` RunningEstimate *v1.Duration `json:"runningEstimate,omitempty"` Queue *string `json:"queue,omitempty"` MaxRetry *int32 `json:"maxRetry,omitempty"` TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` PriorityClassName *string `json:"priorityClassName,omitempty"` MinSuccess *int32 `json:"minSuccess,omitempty"` }
JobSpecApplyConfiguration represents an declarative configuration of the JobSpec type for use with apply.
func JobSpec ¶
func JobSpec() *JobSpecApplyConfiguration
JobSpecApplyConfiguration constructs an declarative configuration of the JobSpec type for use with apply.
func (*JobSpecApplyConfiguration) WithMaxRetry ¶
func (b *JobSpecApplyConfiguration) WithMaxRetry(value int32) *JobSpecApplyConfiguration
WithMaxRetry sets the MaxRetry 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 MaxRetry field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithMinAvailable ¶
func (b *JobSpecApplyConfiguration) WithMinAvailable(value int32) *JobSpecApplyConfiguration
WithMinAvailable sets the MinAvailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinAvailable field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithMinSuccess ¶
func (b *JobSpecApplyConfiguration) WithMinSuccess(value int32) *JobSpecApplyConfiguration
WithMinSuccess sets the MinSuccess 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 MinSuccess field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithPlugins ¶
func (b *JobSpecApplyConfiguration) WithPlugins(entries map[string][]string) *JobSpecApplyConfiguration
WithPlugins puts the entries into the Plugins 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 Plugins field, overwriting an existing map entries in Plugins field with the same key.
func (*JobSpecApplyConfiguration) WithPolicies ¶
func (b *JobSpecApplyConfiguration) WithPolicies(values ...*LifecyclePolicyApplyConfiguration) *JobSpecApplyConfiguration
WithPolicies adds the given value to the Policies 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 Policies field.
func (*JobSpecApplyConfiguration) WithPriorityClassName ¶
func (b *JobSpecApplyConfiguration) WithPriorityClassName(value string) *JobSpecApplyConfiguration
WithPriorityClassName sets the PriorityClassName 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 PriorityClassName field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithQueue ¶
func (b *JobSpecApplyConfiguration) WithQueue(value string) *JobSpecApplyConfiguration
WithQueue sets the Queue 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 Queue field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithRunningEstimate ¶
func (b *JobSpecApplyConfiguration) WithRunningEstimate(value v1.Duration) *JobSpecApplyConfiguration
WithRunningEstimate sets the RunningEstimate 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 RunningEstimate field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithSchedulerName ¶
func (b *JobSpecApplyConfiguration) WithSchedulerName(value string) *JobSpecApplyConfiguration
WithSchedulerName sets the SchedulerName 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 SchedulerName field is set to the value of the last call.
func (*JobSpecApplyConfiguration) WithTTLSecondsAfterFinished ¶
func (b *JobSpecApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *JobSpecApplyConfiguration
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.
func (*JobSpecApplyConfiguration) WithTasks ¶
func (b *JobSpecApplyConfiguration) WithTasks(values ...*TaskSpecApplyConfiguration) *JobSpecApplyConfiguration
WithTasks adds the given value to the Tasks 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 Tasks field.
func (*JobSpecApplyConfiguration) WithVolumes ¶
func (b *JobSpecApplyConfiguration) WithVolumes(values ...*VolumeSpecApplyConfiguration) *JobSpecApplyConfiguration
WithVolumes adds the given value to the Volumes 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 Volumes field.
type JobStateApplyConfiguration ¶
type JobStateApplyConfiguration struct { Phase *v1alpha1.JobPhase `json:"phase,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"` }
JobStateApplyConfiguration represents an declarative configuration of the JobState type for use with apply.
func JobState ¶
func JobState() *JobStateApplyConfiguration
JobStateApplyConfiguration constructs an declarative configuration of the JobState type for use with apply.
func (*JobStateApplyConfiguration) WithLastTransitionTime ¶
func (b *JobStateApplyConfiguration) WithLastTransitionTime(value v1.Time) *JobStateApplyConfiguration
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 (*JobStateApplyConfiguration) WithMessage ¶
func (b *JobStateApplyConfiguration) WithMessage(value string) *JobStateApplyConfiguration
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 (*JobStateApplyConfiguration) WithPhase ¶
func (b *JobStateApplyConfiguration) WithPhase(value v1alpha1.JobPhase) *JobStateApplyConfiguration
WithPhase sets the Phase 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 Phase field is set to the value of the last call.
func (*JobStateApplyConfiguration) WithReason ¶
func (b *JobStateApplyConfiguration) WithReason(value string) *JobStateApplyConfiguration
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.
type JobStatusApplyConfiguration ¶
type JobStatusApplyConfiguration struct { State *JobStateApplyConfiguration `json:"state,omitempty"` MinAvailable *int32 `json:"minAvailable,omitempty"` TaskStatusCount map[string]TaskStateApplyConfiguration `json:"taskStatusCount,omitempty"` Pending *int32 `json:"pending,omitempty"` Running *int32 `json:"running,omitempty"` Succeeded *int32 `json:"succeeded,omitempty"` Failed *int32 `json:"failed,omitempty"` Terminating *int32 `json:"terminating,omitempty"` Unknown *int32 `json:"unknown,omitempty"` Version *int32 `json:"version,omitempty"` RetryCount *int32 `json:"retryCount,omitempty"` RunningDuration *v1.Duration `json:"runningDuration,omitempty"` ControlledResources map[string]string `json:"controlledResources,omitempty"` Conditions []JobConditionApplyConfiguration `json:"conditions,omitempty"` }
JobStatusApplyConfiguration represents an declarative configuration of the JobStatus type for use with apply.
func JobStatus ¶
func JobStatus() *JobStatusApplyConfiguration
JobStatusApplyConfiguration constructs an declarative configuration of the JobStatus type for use with apply.
func (*JobStatusApplyConfiguration) WithConditions ¶
func (b *JobStatusApplyConfiguration) WithConditions(values ...*JobConditionApplyConfiguration) *JobStatusApplyConfiguration
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 (*JobStatusApplyConfiguration) WithControlledResources ¶
func (b *JobStatusApplyConfiguration) WithControlledResources(entries map[string]string) *JobStatusApplyConfiguration
WithControlledResources puts the entries into the ControlledResources 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 ControlledResources field, overwriting an existing map entries in ControlledResources field with the same key.
func (*JobStatusApplyConfiguration) WithFailed ¶
func (b *JobStatusApplyConfiguration) WithFailed(value int32) *JobStatusApplyConfiguration
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 (*JobStatusApplyConfiguration) WithMinAvailable ¶
func (b *JobStatusApplyConfiguration) WithMinAvailable(value int32) *JobStatusApplyConfiguration
WithMinAvailable sets the MinAvailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinAvailable field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithPending ¶
func (b *JobStatusApplyConfiguration) WithPending(value int32) *JobStatusApplyConfiguration
WithPending sets the Pending 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 Pending field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithRetryCount ¶
func (b *JobStatusApplyConfiguration) WithRetryCount(value int32) *JobStatusApplyConfiguration
WithRetryCount sets the RetryCount 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 RetryCount field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithRunning ¶
func (b *JobStatusApplyConfiguration) WithRunning(value int32) *JobStatusApplyConfiguration
WithRunning sets the Running 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 Running field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithRunningDuration ¶
func (b *JobStatusApplyConfiguration) WithRunningDuration(value v1.Duration) *JobStatusApplyConfiguration
WithRunningDuration sets the RunningDuration 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 RunningDuration field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithState ¶
func (b *JobStatusApplyConfiguration) WithState(value *JobStateApplyConfiguration) *JobStatusApplyConfiguration
WithState sets the State 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 State field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithSucceeded ¶
func (b *JobStatusApplyConfiguration) WithSucceeded(value int32) *JobStatusApplyConfiguration
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 (*JobStatusApplyConfiguration) WithTaskStatusCount ¶
func (b *JobStatusApplyConfiguration) WithTaskStatusCount(entries map[string]TaskStateApplyConfiguration) *JobStatusApplyConfiguration
WithTaskStatusCount puts the entries into the TaskStatusCount 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 TaskStatusCount field, overwriting an existing map entries in TaskStatusCount field with the same key.
func (*JobStatusApplyConfiguration) WithTerminating ¶
func (b *JobStatusApplyConfiguration) WithTerminating(value int32) *JobStatusApplyConfiguration
WithTerminating sets the Terminating 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 Terminating field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithUnknown ¶
func (b *JobStatusApplyConfiguration) WithUnknown(value int32) *JobStatusApplyConfiguration
WithUnknown sets the Unknown 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 Unknown field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithVersion ¶
func (b *JobStatusApplyConfiguration) WithVersion(value int32) *JobStatusApplyConfiguration
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.
type LifecyclePolicyApplyConfiguration ¶
type LifecyclePolicyApplyConfiguration struct { Action *v1alpha1.Action `json:"action,omitempty"` Event *v1alpha1.Event `json:"event,omitempty"` Events []v1alpha1.Event `json:"events,omitempty"` ExitCode *int32 `json:"exitCode,omitempty"` Timeout *v1.Duration `json:"timeout,omitempty"` }
LifecyclePolicyApplyConfiguration represents an declarative configuration of the LifecyclePolicy type for use with apply.
func LifecyclePolicy ¶
func LifecyclePolicy() *LifecyclePolicyApplyConfiguration
LifecyclePolicyApplyConfiguration constructs an declarative configuration of the LifecyclePolicy type for use with apply.
func (*LifecyclePolicyApplyConfiguration) WithAction ¶
func (b *LifecyclePolicyApplyConfiguration) WithAction(value v1alpha1.Action) *LifecyclePolicyApplyConfiguration
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 (*LifecyclePolicyApplyConfiguration) WithEvent ¶
func (b *LifecyclePolicyApplyConfiguration) WithEvent(value v1alpha1.Event) *LifecyclePolicyApplyConfiguration
WithEvent sets the Event 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 Event field is set to the value of the last call.
func (*LifecyclePolicyApplyConfiguration) WithEvents ¶
func (b *LifecyclePolicyApplyConfiguration) WithEvents(values ...v1alpha1.Event) *LifecyclePolicyApplyConfiguration
WithEvents adds the given value to the Events 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 Events field.
func (*LifecyclePolicyApplyConfiguration) WithExitCode ¶
func (b *LifecyclePolicyApplyConfiguration) WithExitCode(value int32) *LifecyclePolicyApplyConfiguration
WithExitCode sets the ExitCode 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 ExitCode field is set to the value of the last call.
func (*LifecyclePolicyApplyConfiguration) WithTimeout ¶
func (b *LifecyclePolicyApplyConfiguration) WithTimeout(value v1.Duration) *LifecyclePolicyApplyConfiguration
WithTimeout sets the Timeout 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 Timeout field is set to the value of the last call.
type TaskSpecApplyConfiguration ¶
type TaskSpecApplyConfiguration struct { Name *string `json:"name,omitempty"` Replicas *int32 `json:"replicas,omitempty"` MinAvailable *int32 `json:"minAvailable,omitempty"` Template *v1.PodTemplateSpec `json:"template,omitempty"` Policies []LifecyclePolicyApplyConfiguration `json:"policies,omitempty"` TopologyPolicy *batchv1alpha1.NumaPolicy `json:"topologyPolicy,omitempty"` MaxRetry *int32 `json:"maxRetry,omitempty"` DependsOn *DependsOnApplyConfiguration `json:"dependsOn,omitempty"` }
TaskSpecApplyConfiguration represents an declarative configuration of the TaskSpec type for use with apply.
func TaskSpec ¶
func TaskSpec() *TaskSpecApplyConfiguration
TaskSpecApplyConfiguration constructs an declarative configuration of the TaskSpec type for use with apply.
func (*TaskSpecApplyConfiguration) WithDependsOn ¶
func (b *TaskSpecApplyConfiguration) WithDependsOn(value *DependsOnApplyConfiguration) *TaskSpecApplyConfiguration
WithDependsOn sets the DependsOn 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 DependsOn field is set to the value of the last call.
func (*TaskSpecApplyConfiguration) WithMaxRetry ¶
func (b *TaskSpecApplyConfiguration) WithMaxRetry(value int32) *TaskSpecApplyConfiguration
WithMaxRetry sets the MaxRetry 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 MaxRetry field is set to the value of the last call.
func (*TaskSpecApplyConfiguration) WithMinAvailable ¶
func (b *TaskSpecApplyConfiguration) WithMinAvailable(value int32) *TaskSpecApplyConfiguration
WithMinAvailable sets the MinAvailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinAvailable field is set to the value of the last call.
func (*TaskSpecApplyConfiguration) WithName ¶
func (b *TaskSpecApplyConfiguration) WithName(value string) *TaskSpecApplyConfiguration
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 (*TaskSpecApplyConfiguration) WithPolicies ¶
func (b *TaskSpecApplyConfiguration) WithPolicies(values ...*LifecyclePolicyApplyConfiguration) *TaskSpecApplyConfiguration
WithPolicies adds the given value to the Policies 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 Policies field.
func (*TaskSpecApplyConfiguration) WithReplicas ¶
func (b *TaskSpecApplyConfiguration) WithReplicas(value int32) *TaskSpecApplyConfiguration
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 (*TaskSpecApplyConfiguration) WithTemplate ¶
func (b *TaskSpecApplyConfiguration) WithTemplate(value v1.PodTemplateSpec) *TaskSpecApplyConfiguration
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.
func (*TaskSpecApplyConfiguration) WithTopologyPolicy ¶
func (b *TaskSpecApplyConfiguration) WithTopologyPolicy(value batchv1alpha1.NumaPolicy) *TaskSpecApplyConfiguration
WithTopologyPolicy sets the TopologyPolicy 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 TopologyPolicy field is set to the value of the last call.
type TaskStateApplyConfiguration ¶
TaskStateApplyConfiguration represents an declarative configuration of the TaskState type for use with apply.
func TaskState ¶
func TaskState() *TaskStateApplyConfiguration
TaskStateApplyConfiguration constructs an declarative configuration of the TaskState type for use with apply.
func (*TaskStateApplyConfiguration) WithPhase ¶
func (b *TaskStateApplyConfiguration) WithPhase(entries map[v1.PodPhase]int32) *TaskStateApplyConfiguration
WithPhase puts the entries into the Phase 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 Phase field, overwriting an existing map entries in Phase field with the same key.
type VolumeSpecApplyConfiguration ¶
type VolumeSpecApplyConfiguration struct { MountPath *string `json:"mountPath,omitempty"` VolumeClaimName *string `json:"volumeClaimName,omitempty"` VolumeClaim *v1.PersistentVolumeClaimSpec `json:"volumeClaim,omitempty"` }
VolumeSpecApplyConfiguration represents an declarative configuration of the VolumeSpec type for use with apply.
func VolumeSpec ¶
func VolumeSpec() *VolumeSpecApplyConfiguration
VolumeSpecApplyConfiguration constructs an declarative configuration of the VolumeSpec type for use with apply.
func (*VolumeSpecApplyConfiguration) WithMountPath ¶
func (b *VolumeSpecApplyConfiguration) WithMountPath(value string) *VolumeSpecApplyConfiguration
WithMountPath sets the MountPath 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 MountPath field is set to the value of the last call.
func (*VolumeSpecApplyConfiguration) WithVolumeClaim ¶
func (b *VolumeSpecApplyConfiguration) WithVolumeClaim(value v1.PersistentVolumeClaimSpec) *VolumeSpecApplyConfiguration
WithVolumeClaim sets the VolumeClaim 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 VolumeClaim field is set to the value of the last call.
func (*VolumeSpecApplyConfiguration) WithVolumeClaimName ¶
func (b *VolumeSpecApplyConfiguration) WithVolumeClaimName(value string) *VolumeSpecApplyConfiguration
WithVolumeClaimName sets the VolumeClaimName 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 VolumeClaimName field is set to the value of the last call.