v2beta1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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 JobConditionApplyConfiguration

type JobConditionApplyConfiguration struct {
	Type               *v2beta1.JobConditionType `json:"type,omitempty"`
	Status             *v1.ConditionStatus       `json:"status,omitempty"`
	Reason             *string                   `json:"reason,omitempty"`
	Message            *string                   `json:"message,omitempty"`
	LastUpdateTime     *metav1.Time              `json:"lastUpdateTime,omitempty"`
	LastTransitionTime *metav1.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

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) WithLastUpdateTime

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

func (*JobConditionApplyConfiguration) WithMessage

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 (*JobConditionApplyConfiguration) WithReason

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.

func (*JobConditionApplyConfiguration) 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 (*JobConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type JobStatusApplyConfiguration

type JobStatusApplyConfiguration struct {
	Conditions        []JobConditionApplyConfiguration                                  `json:"conditions,omitempty"`
	ReplicaStatuses   map[kubeflowv2beta1.MPIReplicaType]*kubeflowv2beta1.ReplicaStatus `json:"replicaStatuses,omitempty"`
	StartTime         *v1.Time                                                          `json:"startTime,omitempty"`
	CompletionTime    *v1.Time                                                          `json:"completionTime,omitempty"`
	LastReconcileTime *v1.Time                                                          `json:"lastReconcileTime,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) WithCompletionTime

func (b *JobStatusApplyConfiguration) WithCompletionTime(value v1.Time) *JobStatusApplyConfiguration

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

func (*JobStatusApplyConfiguration) 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 (*JobStatusApplyConfiguration) WithLastReconcileTime

func (b *JobStatusApplyConfiguration) WithLastReconcileTime(value v1.Time) *JobStatusApplyConfiguration

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

func (*JobStatusApplyConfiguration) WithReplicaStatuses

WithReplicaStatuses puts the entries into the ReplicaStatuses 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 ReplicaStatuses field, overwriting an existing map entries in ReplicaStatuses field with the same key.

func (*JobStatusApplyConfiguration) WithStartTime

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

type MPIJobApplyConfiguration

type MPIJobApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *MPIJobSpecApplyConfiguration `json:"spec,omitempty"`
	Status                           *JobStatusApplyConfiguration  `json:"status,omitempty"`
}

MPIJobApplyConfiguration represents an declarative configuration of the MPIJob type for use with apply.

func MPIJob

func MPIJob(name, namespace string) *MPIJobApplyConfiguration

MPIJob constructs an declarative configuration of the MPIJob type for use with apply.

func (*MPIJobApplyConfiguration) WithAPIVersion

func (b *MPIJobApplyConfiguration) WithAPIVersion(value string) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) WithAnnotations

func (b *MPIJobApplyConfiguration) WithAnnotations(entries map[string]string) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) WithCreationTimestamp

func (b *MPIJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MPIJobApplyConfiguration

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

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

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 (*MPIJobApplyConfiguration) WithDeletionTimestamp

func (b *MPIJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) WithFinalizers

func (b *MPIJobApplyConfiguration) WithFinalizers(values ...string) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) WithGenerateName

func (b *MPIJobApplyConfiguration) WithGenerateName(value string) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) WithGeneration

func (b *MPIJobApplyConfiguration) WithGeneration(value int64) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) 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 (*MPIJobApplyConfiguration) WithLabels

func (b *MPIJobApplyConfiguration) WithLabels(entries map[string]string) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) 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 (*MPIJobApplyConfiguration) WithNamespace

func (b *MPIJobApplyConfiguration) WithNamespace(value string) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) 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 (*MPIJobApplyConfiguration) WithResourceVersion

func (b *MPIJobApplyConfiguration) WithResourceVersion(value string) *MPIJobApplyConfiguration

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 (*MPIJobApplyConfiguration) 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 (*MPIJobApplyConfiguration) 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 (*MPIJobApplyConfiguration) 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 MPIJobSpecApplyConfiguration

type MPIJobSpecApplyConfiguration struct {
	SlotsPerWorker         *int32                                                          `json:"slotsPerWorker,omitempty"`
	RunLauncherAsWorker    *bool                                                           `json:"runLauncherAsWorker,omitempty"`
	RunPolicy              *RunPolicyApplyConfiguration                                    `json:"runPolicy,omitempty"`
	MPIReplicaSpecs        map[kubeflowv2beta1.MPIReplicaType]*kubeflowv2beta1.ReplicaSpec `json:"mpiReplicaSpecs,omitempty"`
	SSHAuthMountPath       *string                                                         `json:"sshAuthMountPath,omitempty"`
	LauncherCreationPolicy *kubeflowv2beta1.LauncherCreationPolicy                         `json:"launcherCreationPolicy,omitempty"`
	MPIImplementation      *kubeflowv2beta1.MPIImplementation                              `json:"mpiImplementation,omitempty"`
}

MPIJobSpecApplyConfiguration represents an declarative configuration of the MPIJobSpec type for use with apply.

func MPIJobSpec

func MPIJobSpec() *MPIJobSpecApplyConfiguration

MPIJobSpecApplyConfiguration constructs an declarative configuration of the MPIJobSpec type for use with apply.

func (*MPIJobSpecApplyConfiguration) WithLauncherCreationPolicy

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

func (*MPIJobSpecApplyConfiguration) WithMPIImplementation

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

func (*MPIJobSpecApplyConfiguration) WithMPIReplicaSpecs

WithMPIReplicaSpecs puts the entries into the MPIReplicaSpecs 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 MPIReplicaSpecs field, overwriting an existing map entries in MPIReplicaSpecs field with the same key.

func (*MPIJobSpecApplyConfiguration) WithRunLauncherAsWorker

func (b *MPIJobSpecApplyConfiguration) WithRunLauncherAsWorker(value bool) *MPIJobSpecApplyConfiguration

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

func (*MPIJobSpecApplyConfiguration) WithRunPolicy

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

func (*MPIJobSpecApplyConfiguration) WithSSHAuthMountPath

func (b *MPIJobSpecApplyConfiguration) WithSSHAuthMountPath(value string) *MPIJobSpecApplyConfiguration

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

func (*MPIJobSpecApplyConfiguration) WithSlotsPerWorker

func (b *MPIJobSpecApplyConfiguration) WithSlotsPerWorker(value int32) *MPIJobSpecApplyConfiguration

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

type ReplicaSpecApplyConfiguration

type ReplicaSpecApplyConfiguration struct {
	Replicas      *int32                 `json:"replicas,omitempty"`
	Template      *v1.PodTemplateSpec    `json:"template,omitempty"`
	RestartPolicy *v2beta1.RestartPolicy `json:"restartPolicy,omitempty"`
}

ReplicaSpecApplyConfiguration represents an declarative configuration of the ReplicaSpec type for use with apply.

func ReplicaSpec

func ReplicaSpec() *ReplicaSpecApplyConfiguration

ReplicaSpecApplyConfiguration constructs an declarative configuration of the ReplicaSpec type for use with apply.

func (*ReplicaSpecApplyConfiguration) 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 (*ReplicaSpecApplyConfiguration) WithRestartPolicy

WithRestartPolicy sets the RestartPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RestartPolicy field is set to the value of the last call.

func (*ReplicaSpecApplyConfiguration) 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 ReplicaStatusApplyConfiguration

type ReplicaStatusApplyConfiguration struct {
	Active        *int32            `json:"active,omitempty"`
	Succeeded     *int32            `json:"succeeded,omitempty"`
	Failed        *int32            `json:"failed,omitempty"`
	LabelSelector *v1.LabelSelector `json:"labelSelector,omitempty"`
	Selector      *string           `json:"selector,omitempty"`
}

ReplicaStatusApplyConfiguration represents an declarative configuration of the ReplicaStatus type for use with apply.

func ReplicaStatus

func ReplicaStatus() *ReplicaStatusApplyConfiguration

ReplicaStatusApplyConfiguration constructs an declarative configuration of the ReplicaStatus type for use with apply.

func (*ReplicaStatusApplyConfiguration) 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 (*ReplicaStatusApplyConfiguration) 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 (*ReplicaStatusApplyConfiguration) WithLabelSelector

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

func (*ReplicaStatusApplyConfiguration) WithSelector

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

func (*ReplicaStatusApplyConfiguration) 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 RunPolicyApplyConfiguration

type RunPolicyApplyConfiguration struct {
	CleanPodPolicy          *v2beta1.CleanPodPolicy             `json:"cleanPodPolicy,omitempty"`
	TTLSecondsAfterFinished *int32                              `json:"ttlSecondsAfterFinished,omitempty"`
	ActiveDeadlineSeconds   *int64                              `json:"activeDeadlineSeconds,omitempty"`
	BackoffLimit            *int32                              `json:"backoffLimit,omitempty"`
	SchedulingPolicy        *SchedulingPolicyApplyConfiguration `json:"schedulingPolicy,omitempty"`
	Suspend                 *bool                               `json:"suspend,omitempty"`
}

RunPolicyApplyConfiguration represents an declarative configuration of the RunPolicy type for use with apply.

func RunPolicy

func RunPolicy() *RunPolicyApplyConfiguration

RunPolicyApplyConfiguration constructs an declarative configuration of the RunPolicy type for use with apply.

func (*RunPolicyApplyConfiguration) WithActiveDeadlineSeconds

func (b *RunPolicyApplyConfiguration) WithActiveDeadlineSeconds(value int64) *RunPolicyApplyConfiguration

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

func (*RunPolicyApplyConfiguration) WithBackoffLimit

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

func (*RunPolicyApplyConfiguration) WithCleanPodPolicy

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

func (*RunPolicyApplyConfiguration) WithSchedulingPolicy

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

func (*RunPolicyApplyConfiguration) 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.

func (*RunPolicyApplyConfiguration) WithTTLSecondsAfterFinished

func (b *RunPolicyApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *RunPolicyApplyConfiguration

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 SchedulingPolicyApplyConfiguration

type SchedulingPolicyApplyConfiguration struct {
	MinAvailable           *int32           `json:"minAvailable,omitempty"`
	Queue                  *string          `json:"queue,omitempty"`
	MinResources           *v1.ResourceList `json:"minResources,omitempty"`
	PriorityClass          *string          `json:"priorityClass,omitempty"`
	ScheduleTimeoutSeconds *int32           `json:"scheduleTimeoutSeconds,omitempty"`
}

SchedulingPolicyApplyConfiguration represents an declarative configuration of the SchedulingPolicy type for use with apply.

func SchedulingPolicy

func SchedulingPolicy() *SchedulingPolicyApplyConfiguration

SchedulingPolicyApplyConfiguration constructs an declarative configuration of the SchedulingPolicy type for use with apply.

func (*SchedulingPolicyApplyConfiguration) WithMinAvailable

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 (*SchedulingPolicyApplyConfiguration) WithMinResources

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

func (*SchedulingPolicyApplyConfiguration) WithPriorityClass

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

func (*SchedulingPolicyApplyConfiguration) WithQueue

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 (*SchedulingPolicyApplyConfiguration) WithScheduleTimeoutSeconds

func (b *SchedulingPolicyApplyConfiguration) WithScheduleTimeoutSeconds(value int32) *SchedulingPolicyApplyConfiguration

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

Jump to

Keyboard shortcuts

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