Documentation ¶
Index ¶
- type FailurePolicyApplyConfiguration
- type JobSetApplyConfiguration
- 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) WithFailurePolicy(value *FailurePolicyApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithNetwork(value *NetworkApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithReplicatedJobs(values ...*ReplicatedJobApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithSuccessPolicy(value *SuccessPolicyApplyConfiguration) *JobSetSpecApplyConfiguration
- func (b *JobSetSpecApplyConfiguration) WithSuspend(value bool) *JobSetSpecApplyConfiguration
- type JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithConditions(values ...v1.Condition) *JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithReplicatedJobsStatus(values ...*ReplicatedJobStatusApplyConfiguration) *JobSetStatusApplyConfiguration
- func (b *JobSetStatusApplyConfiguration) WithRestarts(value int) *JobSetStatusApplyConfiguration
- type NetworkApplyConfiguration
- type ReplicatedJobApplyConfiguration
- func (b *ReplicatedJobApplyConfiguration) WithName(value string) *ReplicatedJobApplyConfiguration
- func (b *ReplicatedJobApplyConfiguration) WithReplicas(value int) *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
- type SuccessPolicyApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailurePolicyApplyConfiguration ¶
type FailurePolicyApplyConfiguration struct {
MaxRestarts *int `json:"maxRestarts,omitempty"`
}
FailurePolicyApplyConfiguration represents an declarative configuration of the FailurePolicy type for use with apply.
func FailurePolicy ¶
func FailurePolicy() *FailurePolicyApplyConfiguration
FailurePolicyApplyConfiguration constructs an declarative configuration of the FailurePolicy type for use with apply.
func (*FailurePolicyApplyConfiguration) WithMaxRestarts ¶
func (b *FailurePolicyApplyConfiguration) WithMaxRestarts(value int) *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.
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 an declarative configuration of the JobSet type for use with apply.
func JobSet ¶
func JobSet(name, namespace string) *JobSetApplyConfiguration
JobSet constructs an declarative configuration of the JobSet type for use with apply.
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"` Suspend *bool `json:"suspend,omitempty"` }
JobSetSpecApplyConfiguration represents an declarative configuration of the JobSetSpec type for use with apply.
func JobSetSpec ¶
func JobSetSpec() *JobSetSpecApplyConfiguration
JobSetSpecApplyConfiguration constructs an declarative configuration of the JobSetSpec type for use with apply.
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) 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) 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.
type JobSetStatusApplyConfiguration ¶
type JobSetStatusApplyConfiguration struct { Conditions []v1.Condition `json:"conditions,omitempty"` Restarts *int `json:"restarts,omitempty"` ReplicatedJobsStatus []ReplicatedJobStatusApplyConfiguration `json:"ReplicatedJobsStatus,omitempty"` }
JobSetStatusApplyConfiguration represents an declarative configuration of the JobSetStatus type for use with apply.
func JobSetStatus ¶
func JobSetStatus() *JobSetStatusApplyConfiguration
JobSetStatusApplyConfiguration constructs an declarative configuration of the JobSetStatus type for use with apply.
func (*JobSetStatusApplyConfiguration) WithConditions ¶
func (b *JobSetStatusApplyConfiguration) WithConditions(values ...v1.Condition) *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 int) *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.
type NetworkApplyConfiguration ¶
type NetworkApplyConfiguration struct { EnableDNSHostnames *bool `json:"enableDNSHostnames,omitempty"` Subdomain *string `json:"subdomain,omitempty"` }
NetworkApplyConfiguration represents an declarative configuration of the Network type for use with apply.
func Network ¶
func Network() *NetworkApplyConfiguration
NetworkApplyConfiguration constructs an 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) 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 *int `json:"replicas,omitempty"` }
ReplicatedJobApplyConfiguration represents an declarative configuration of the ReplicatedJob type for use with apply.
func ReplicatedJob ¶
func ReplicatedJob() *ReplicatedJobApplyConfiguration
ReplicatedJobApplyConfiguration constructs an 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 int) *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"` }
ReplicatedJobStatusApplyConfiguration represents an declarative configuration of the ReplicatedJobStatus type for use with apply.
func ReplicatedJobStatus ¶
func ReplicatedJobStatus() *ReplicatedJobStatusApplyConfiguration
ReplicatedJobStatusApplyConfiguration constructs an 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.
type SuccessPolicyApplyConfiguration ¶
type SuccessPolicyApplyConfiguration struct { Operator *v1alpha2.Operator `json:"operator,omitempty"` TargetReplicatedJobs []string `json:"targetReplicatedJobs,omitempty"` }
SuccessPolicyApplyConfiguration represents an declarative configuration of the SuccessPolicy type for use with apply.
func SuccessPolicy ¶
func SuccessPolicy() *SuccessPolicyApplyConfiguration
SuccessPolicyApplyConfiguration constructs an 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.