v1alpha2

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL