Documentation
¶
Index ¶
- type ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) GetName() *string
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithAPIVersion(value string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithFinalizers(values ...string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithGenerateName(value string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithGeneration(value int64) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithKind(value string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithName(value string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithNamespace(value string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithResourceVersion(value string) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithSpec(value *TrainingRuntimeSpecApplyConfiguration) *ClusterTrainingRuntimeApplyConfiguration
- func (b *ClusterTrainingRuntimeApplyConfiguration) WithUID(value types.UID) *ClusterTrainingRuntimeApplyConfiguration
- type ContainerOverrideApplyConfiguration
- func (b *ContainerOverrideApplyConfiguration) WithArgs(values ...string) *ContainerOverrideApplyConfiguration
- func (b *ContainerOverrideApplyConfiguration) WithCommand(values ...string) *ContainerOverrideApplyConfiguration
- func (b *ContainerOverrideApplyConfiguration) WithEnv(values ...v1.EnvVar) *ContainerOverrideApplyConfiguration
- func (b *ContainerOverrideApplyConfiguration) WithEnvFrom(values ...v1.EnvFromSource) *ContainerOverrideApplyConfiguration
- func (b *ContainerOverrideApplyConfiguration) WithName(value string) *ContainerOverrideApplyConfiguration
- func (b *ContainerOverrideApplyConfiguration) WithVolumeMounts(values ...v1.VolumeMount) *ContainerOverrideApplyConfiguration
- type CoschedulingPodGroupPolicySourceApplyConfiguration
- type DatasetConfigApplyConfiguration
- func (b *DatasetConfigApplyConfiguration) WithEnv(values ...v1.EnvVar) *DatasetConfigApplyConfiguration
- func (b *DatasetConfigApplyConfiguration) WithSecretRef(value v1.LocalObjectReference) *DatasetConfigApplyConfiguration
- func (b *DatasetConfigApplyConfiguration) WithStorageUri(value string) *DatasetConfigApplyConfiguration
- type InputModelApplyConfiguration
- func (b *InputModelApplyConfiguration) WithEnv(values ...v1.EnvVar) *InputModelApplyConfiguration
- func (b *InputModelApplyConfiguration) WithSecretRef(value v1.LocalObjectReference) *InputModelApplyConfiguration
- func (b *InputModelApplyConfiguration) WithStorageUri(value string) *InputModelApplyConfiguration
- type JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) GetName() *string
- func (b *JobSetTemplateSpecApplyConfiguration) WithAnnotations(entries map[string]string) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithFinalizers(values ...string) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithGenerateName(value string) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithGeneration(value int64) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithLabels(entries map[string]string) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithName(value string) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithNamespace(value string) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithResourceVersion(value string) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithSpec(value v1alpha2.JobSetSpec) *JobSetTemplateSpecApplyConfiguration
- func (b *JobSetTemplateSpecApplyConfiguration) WithUID(value types.UID) *JobSetTemplateSpecApplyConfiguration
- type JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithActive(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithFailed(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithName(value string) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithReady(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithSucceeded(value int32) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithSuspended(value int32) *JobStatusApplyConfiguration
- type MLPolicyApplyConfiguration
- func (b *MLPolicyApplyConfiguration) WithMPI(value *MPIMLPolicySourceApplyConfiguration) *MLPolicyApplyConfiguration
- func (b *MLPolicyApplyConfiguration) WithNumNodes(value int32) *MLPolicyApplyConfiguration
- func (b *MLPolicyApplyConfiguration) WithTorch(value *TorchMLPolicySourceApplyConfiguration) *MLPolicyApplyConfiguration
- type MLPolicySourceApplyConfiguration
- type MPIMLPolicySourceApplyConfiguration
- func (b *MPIMLPolicySourceApplyConfiguration) WithMPIImplementation(value v2alpha1.MPIImplementation) *MPIMLPolicySourceApplyConfiguration
- func (b *MPIMLPolicySourceApplyConfiguration) WithNumProcPerNode(value int32) *MPIMLPolicySourceApplyConfiguration
- func (b *MPIMLPolicySourceApplyConfiguration) WithRunLauncherAsNode(value bool) *MPIMLPolicySourceApplyConfiguration
- func (b *MPIMLPolicySourceApplyConfiguration) WithSSHAuthMountPath(value string) *MPIMLPolicySourceApplyConfiguration
- type ModelConfigApplyConfiguration
- type OutputModelApplyConfiguration
- func (b *OutputModelApplyConfiguration) WithEnv(values ...v1.EnvVar) *OutputModelApplyConfiguration
- func (b *OutputModelApplyConfiguration) WithSecretRef(value v1.LocalObjectReference) *OutputModelApplyConfiguration
- func (b *OutputModelApplyConfiguration) WithStorageUri(value string) *OutputModelApplyConfiguration
- type PodGroupPolicyApplyConfiguration
- type PodGroupPolicySourceApplyConfiguration
- type PodSpecOverrideApplyConfiguration
- func (b *PodSpecOverrideApplyConfiguration) WithContainers(values ...*ContainerOverrideApplyConfiguration) *PodSpecOverrideApplyConfiguration
- func (b *PodSpecOverrideApplyConfiguration) WithInitContainers(values ...*ContainerOverrideApplyConfiguration) *PodSpecOverrideApplyConfiguration
- func (b *PodSpecOverrideApplyConfiguration) WithNodeSelector(entries map[string]string) *PodSpecOverrideApplyConfiguration
- func (b *PodSpecOverrideApplyConfiguration) WithServiceAccountName(value string) *PodSpecOverrideApplyConfiguration
- func (b *PodSpecOverrideApplyConfiguration) WithTargetJobs(values ...*PodSpecOverrideTargetJobApplyConfiguration) *PodSpecOverrideApplyConfiguration
- func (b *PodSpecOverrideApplyConfiguration) WithTolerations(values ...v1.Toleration) *PodSpecOverrideApplyConfiguration
- func (b *PodSpecOverrideApplyConfiguration) WithVolumes(values ...v1.Volume) *PodSpecOverrideApplyConfiguration
- type PodSpecOverrideTargetJobApplyConfiguration
- type RuntimeRefApplyConfiguration
- type TorchElasticPolicyApplyConfiguration
- func (b *TorchElasticPolicyApplyConfiguration) WithMaxNodes(value int32) *TorchElasticPolicyApplyConfiguration
- func (b *TorchElasticPolicyApplyConfiguration) WithMaxRestarts(value int32) *TorchElasticPolicyApplyConfiguration
- func (b *TorchElasticPolicyApplyConfiguration) WithMetrics(values ...v2.MetricSpec) *TorchElasticPolicyApplyConfiguration
- func (b *TorchElasticPolicyApplyConfiguration) WithMinNodes(value int32) *TorchElasticPolicyApplyConfiguration
- type TorchMLPolicySourceApplyConfiguration
- type TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) GetName() *string
- func (b *TrainJobApplyConfiguration) WithAPIVersion(value string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithAnnotations(entries map[string]string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithFinalizers(values ...string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithGenerateName(value string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithGeneration(value int64) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithKind(value string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithLabels(entries map[string]string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithName(value string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithNamespace(value string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithResourceVersion(value string) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithSpec(value *TrainJobSpecApplyConfiguration) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithStatus(value *TrainJobStatusApplyConfiguration) *TrainJobApplyConfiguration
- func (b *TrainJobApplyConfiguration) WithUID(value types.UID) *TrainJobApplyConfiguration
- type TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithAnnotations(entries map[string]string) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithDatasetConfig(value *DatasetConfigApplyConfiguration) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithLabels(entries map[string]string) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithManagedBy(value string) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithModelConfig(value *ModelConfigApplyConfiguration) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithPodSpecOverrides(values ...*PodSpecOverrideApplyConfiguration) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithRuntimeRef(value *RuntimeRefApplyConfiguration) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithSuspend(value bool) *TrainJobSpecApplyConfiguration
- func (b *TrainJobSpecApplyConfiguration) WithTrainer(value *TrainerApplyConfiguration) *TrainJobSpecApplyConfiguration
- type TrainJobStatusApplyConfiguration
- type TrainerApplyConfiguration
- func (b *TrainerApplyConfiguration) WithArgs(values ...string) *TrainerApplyConfiguration
- func (b *TrainerApplyConfiguration) WithCommand(values ...string) *TrainerApplyConfiguration
- func (b *TrainerApplyConfiguration) WithEnv(values ...v1.EnvVar) *TrainerApplyConfiguration
- func (b *TrainerApplyConfiguration) WithImage(value string) *TrainerApplyConfiguration
- func (b *TrainerApplyConfiguration) WithNumNodes(value int32) *TrainerApplyConfiguration
- func (b *TrainerApplyConfiguration) WithNumProcPerNode(value string) *TrainerApplyConfiguration
- func (b *TrainerApplyConfiguration) WithResourcesPerNode(value v1.ResourceRequirements) *TrainerApplyConfiguration
- type TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) GetName() *string
- func (b *TrainingRuntimeApplyConfiguration) WithAPIVersion(value string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithAnnotations(entries map[string]string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithFinalizers(values ...string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithGenerateName(value string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithGeneration(value int64) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithKind(value string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithLabels(entries map[string]string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithName(value string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithNamespace(value string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithResourceVersion(value string) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithSpec(value *TrainingRuntimeSpecApplyConfiguration) *TrainingRuntimeApplyConfiguration
- func (b *TrainingRuntimeApplyConfiguration) WithUID(value types.UID) *TrainingRuntimeApplyConfiguration
- type TrainingRuntimeSpecApplyConfiguration
- func (b *TrainingRuntimeSpecApplyConfiguration) WithMLPolicy(value *MLPolicyApplyConfiguration) *TrainingRuntimeSpecApplyConfiguration
- func (b *TrainingRuntimeSpecApplyConfiguration) WithPodGroupPolicy(value *PodGroupPolicyApplyConfiguration) *TrainingRuntimeSpecApplyConfiguration
- func (b *TrainingRuntimeSpecApplyConfiguration) WithTemplate(value *JobSetTemplateSpecApplyConfiguration) *TrainingRuntimeSpecApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterTrainingRuntimeApplyConfiguration ¶
type ClusterTrainingRuntimeApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *TrainingRuntimeSpecApplyConfiguration `json:"spec,omitempty"` }
ClusterTrainingRuntimeApplyConfiguration represents a declarative configuration of the ClusterTrainingRuntime type for use with apply.
func ClusterTrainingRuntime ¶
func ClusterTrainingRuntime(name string) *ClusterTrainingRuntimeApplyConfiguration
ClusterTrainingRuntime constructs a declarative configuration of the ClusterTrainingRuntime type for use with apply.
func (*ClusterTrainingRuntimeApplyConfiguration) GetName ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*ClusterTrainingRuntimeApplyConfiguration) WithAPIVersion ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithAPIVersion(value string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithAnnotations ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithCreationTimestamp ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithDeletionTimestamp ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithFinalizers ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithFinalizers(values ...string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithGenerateName ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithGenerateName(value string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithGeneration ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithGeneration(value int64) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithKind ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithKind(value string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithLabels ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithName ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithName(value string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithNamespace ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithNamespace(value string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithOwnerReferences ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithResourceVersion ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithResourceVersion(value string) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithSpec ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithSpec(value *TrainingRuntimeSpecApplyConfiguration) *ClusterTrainingRuntimeApplyConfiguration
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 (*ClusterTrainingRuntimeApplyConfiguration) WithUID ¶
func (b *ClusterTrainingRuntimeApplyConfiguration) WithUID(value types.UID) *ClusterTrainingRuntimeApplyConfiguration
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 ContainerOverrideApplyConfiguration ¶
type ContainerOverrideApplyConfiguration struct { Name *string `json:"name,omitempty"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` Env []v1.EnvVar `json:"env,omitempty"` EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty"` VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"` }
ContainerOverrideApplyConfiguration represents a declarative configuration of the ContainerOverride type for use with apply.
func ContainerOverride ¶
func ContainerOverride() *ContainerOverrideApplyConfiguration
ContainerOverrideApplyConfiguration constructs a declarative configuration of the ContainerOverride type for use with apply.
func (*ContainerOverrideApplyConfiguration) WithArgs ¶
func (b *ContainerOverrideApplyConfiguration) WithArgs(values ...string) *ContainerOverrideApplyConfiguration
WithArgs adds the given value to the Args 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 Args field.
func (*ContainerOverrideApplyConfiguration) WithCommand ¶
func (b *ContainerOverrideApplyConfiguration) WithCommand(values ...string) *ContainerOverrideApplyConfiguration
WithCommand adds the given value to the Command 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 Command field.
func (*ContainerOverrideApplyConfiguration) WithEnv ¶
func (b *ContainerOverrideApplyConfiguration) WithEnv(values ...v1.EnvVar) *ContainerOverrideApplyConfiguration
WithEnv adds the given value to the Env 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 Env field.
func (*ContainerOverrideApplyConfiguration) WithEnvFrom ¶
func (b *ContainerOverrideApplyConfiguration) WithEnvFrom(values ...v1.EnvFromSource) *ContainerOverrideApplyConfiguration
WithEnvFrom adds the given value to the EnvFrom 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 EnvFrom field.
func (*ContainerOverrideApplyConfiguration) WithName ¶
func (b *ContainerOverrideApplyConfiguration) WithName(value string) *ContainerOverrideApplyConfiguration
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 (*ContainerOverrideApplyConfiguration) WithVolumeMounts ¶
func (b *ContainerOverrideApplyConfiguration) WithVolumeMounts(values ...v1.VolumeMount) *ContainerOverrideApplyConfiguration
WithVolumeMounts adds the given value to the VolumeMounts 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 VolumeMounts field.
type CoschedulingPodGroupPolicySourceApplyConfiguration ¶
type CoschedulingPodGroupPolicySourceApplyConfiguration struct {
ScheduleTimeoutSeconds *int32 `json:"scheduleTimeoutSeconds,omitempty"`
}
CoschedulingPodGroupPolicySourceApplyConfiguration represents a declarative configuration of the CoschedulingPodGroupPolicySource type for use with apply.
func CoschedulingPodGroupPolicySource ¶
func CoschedulingPodGroupPolicySource() *CoschedulingPodGroupPolicySourceApplyConfiguration
CoschedulingPodGroupPolicySourceApplyConfiguration constructs a declarative configuration of the CoschedulingPodGroupPolicySource type for use with apply.
func (*CoschedulingPodGroupPolicySourceApplyConfiguration) WithScheduleTimeoutSeconds ¶
func (b *CoschedulingPodGroupPolicySourceApplyConfiguration) WithScheduleTimeoutSeconds(value int32) *CoschedulingPodGroupPolicySourceApplyConfiguration
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.
type DatasetConfigApplyConfiguration ¶
type DatasetConfigApplyConfiguration struct { StorageUri *string `json:"storageUri,omitempty"` Env []v1.EnvVar `json:"env,omitempty"` SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"` }
DatasetConfigApplyConfiguration represents a declarative configuration of the DatasetConfig type for use with apply.
func DatasetConfig ¶
func DatasetConfig() *DatasetConfigApplyConfiguration
DatasetConfigApplyConfiguration constructs a declarative configuration of the DatasetConfig type for use with apply.
func (*DatasetConfigApplyConfiguration) WithEnv ¶
func (b *DatasetConfigApplyConfiguration) WithEnv(values ...v1.EnvVar) *DatasetConfigApplyConfiguration
WithEnv adds the given value to the Env 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 Env field.
func (*DatasetConfigApplyConfiguration) WithSecretRef ¶
func (b *DatasetConfigApplyConfiguration) WithSecretRef(value v1.LocalObjectReference) *DatasetConfigApplyConfiguration
WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.
func (*DatasetConfigApplyConfiguration) WithStorageUri ¶
func (b *DatasetConfigApplyConfiguration) WithStorageUri(value string) *DatasetConfigApplyConfiguration
WithStorageUri sets the StorageUri 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 StorageUri field is set to the value of the last call.
type InputModelApplyConfiguration ¶
type InputModelApplyConfiguration struct { StorageUri *string `json:"storageUri,omitempty"` Env []v1.EnvVar `json:"env,omitempty"` SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"` }
InputModelApplyConfiguration represents a declarative configuration of the InputModel type for use with apply.
func InputModel ¶
func InputModel() *InputModelApplyConfiguration
InputModelApplyConfiguration constructs a declarative configuration of the InputModel type for use with apply.
func (*InputModelApplyConfiguration) WithEnv ¶
func (b *InputModelApplyConfiguration) WithEnv(values ...v1.EnvVar) *InputModelApplyConfiguration
WithEnv adds the given value to the Env 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 Env field.
func (*InputModelApplyConfiguration) WithSecretRef ¶
func (b *InputModelApplyConfiguration) WithSecretRef(value v1.LocalObjectReference) *InputModelApplyConfiguration
WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.
func (*InputModelApplyConfiguration) WithStorageUri ¶
func (b *InputModelApplyConfiguration) WithStorageUri(value string) *InputModelApplyConfiguration
WithStorageUri sets the StorageUri 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 StorageUri field is set to the value of the last call.
type JobSetTemplateSpecApplyConfiguration ¶
type JobSetTemplateSpecApplyConfiguration struct { *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *v1alpha2.JobSetSpec `json:"spec,omitempty"` }
JobSetTemplateSpecApplyConfiguration represents a declarative configuration of the JobSetTemplateSpec type for use with apply.
func JobSetTemplateSpec ¶
func JobSetTemplateSpec() *JobSetTemplateSpecApplyConfiguration
JobSetTemplateSpecApplyConfiguration constructs a declarative configuration of the JobSetTemplateSpec type for use with apply.
func (*JobSetTemplateSpecApplyConfiguration) GetName ¶
func (b *JobSetTemplateSpecApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*JobSetTemplateSpecApplyConfiguration) WithAnnotations ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithAnnotations(entries map[string]string) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithCreationTimestamp ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithDeletionTimestamp ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithFinalizers ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithFinalizers(values ...string) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithGenerateName ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithGenerateName(value string) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithGeneration ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithGeneration(value int64) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithLabels ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithLabels(entries map[string]string) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithName ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithName(value string) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithNamespace ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithNamespace(value string) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithOwnerReferences ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithResourceVersion ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithResourceVersion(value string) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithSpec ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithSpec(value v1alpha2.JobSetSpec) *JobSetTemplateSpecApplyConfiguration
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 (*JobSetTemplateSpecApplyConfiguration) WithUID ¶
func (b *JobSetTemplateSpecApplyConfiguration) WithUID(value types.UID) *JobSetTemplateSpecApplyConfiguration
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 JobStatusApplyConfiguration ¶
type JobStatusApplyConfiguration struct { Name *string `json:"name,omitempty"` Ready *int32 `json:"ready,omitempty"` Succeeded *int32 `json:"succeeded,omitempty"` Failed *int32 `json:"failed,omitempty"` Active *int32 `json:"active,omitempty"` Suspended *int32 `json:"suspended,omitempty"` }
JobStatusApplyConfiguration represents a declarative configuration of the JobStatus type for use with apply.
func JobStatus ¶
func JobStatus() *JobStatusApplyConfiguration
JobStatusApplyConfiguration constructs a declarative configuration of the JobStatus type for use with apply.
func (*JobStatusApplyConfiguration) WithActive ¶
func (b *JobStatusApplyConfiguration) WithActive(value int32) *JobStatusApplyConfiguration
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 (*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) WithName ¶
func (b *JobStatusApplyConfiguration) WithName(value string) *JobStatusApplyConfiguration
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 (*JobStatusApplyConfiguration) WithReady ¶
func (b *JobStatusApplyConfiguration) WithReady(value int32) *JobStatusApplyConfiguration
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 (*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) WithSuspended ¶
func (b *JobStatusApplyConfiguration) WithSuspended(value int32) *JobStatusApplyConfiguration
WithSuspended sets the Suspended field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Suspended field is set to the value of the last call.
type MLPolicyApplyConfiguration ¶
type MLPolicyApplyConfiguration struct { NumNodes *int32 `json:"numNodes,omitempty"` MLPolicySourceApplyConfiguration `json:",inline"` }
MLPolicyApplyConfiguration represents a declarative configuration of the MLPolicy type for use with apply.
func MLPolicy ¶
func MLPolicy() *MLPolicyApplyConfiguration
MLPolicyApplyConfiguration constructs a declarative configuration of the MLPolicy type for use with apply.
func (*MLPolicyApplyConfiguration) WithMPI ¶
func (b *MLPolicyApplyConfiguration) WithMPI(value *MPIMLPolicySourceApplyConfiguration) *MLPolicyApplyConfiguration
WithMPI sets the MPI 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 MPI field is set to the value of the last call.
func (*MLPolicyApplyConfiguration) WithNumNodes ¶
func (b *MLPolicyApplyConfiguration) WithNumNodes(value int32) *MLPolicyApplyConfiguration
WithNumNodes sets the NumNodes 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 NumNodes field is set to the value of the last call.
func (*MLPolicyApplyConfiguration) WithTorch ¶
func (b *MLPolicyApplyConfiguration) WithTorch(value *TorchMLPolicySourceApplyConfiguration) *MLPolicyApplyConfiguration
WithTorch sets the Torch 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 Torch field is set to the value of the last call.
type MLPolicySourceApplyConfiguration ¶
type MLPolicySourceApplyConfiguration struct { Torch *TorchMLPolicySourceApplyConfiguration `json:"torch,omitempty"` MPI *MPIMLPolicySourceApplyConfiguration `json:"mpi,omitempty"` }
MLPolicySourceApplyConfiguration represents a declarative configuration of the MLPolicySource type for use with apply.
func MLPolicySource ¶
func MLPolicySource() *MLPolicySourceApplyConfiguration
MLPolicySourceApplyConfiguration constructs a declarative configuration of the MLPolicySource type for use with apply.
func (*MLPolicySourceApplyConfiguration) WithMPI ¶
func (b *MLPolicySourceApplyConfiguration) WithMPI(value *MPIMLPolicySourceApplyConfiguration) *MLPolicySourceApplyConfiguration
WithMPI sets the MPI 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 MPI field is set to the value of the last call.
func (*MLPolicySourceApplyConfiguration) WithTorch ¶
func (b *MLPolicySourceApplyConfiguration) WithTorch(value *TorchMLPolicySourceApplyConfiguration) *MLPolicySourceApplyConfiguration
WithTorch sets the Torch 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 Torch field is set to the value of the last call.
type MPIMLPolicySourceApplyConfiguration ¶
type MPIMLPolicySourceApplyConfiguration struct { NumProcPerNode *int32 `json:"numProcPerNode,omitempty"` MPIImplementation *v2alpha1.MPIImplementation `json:"mpiImplementation,omitempty"` SSHAuthMountPath *string `json:"sshAuthMountPath,omitempty"` RunLauncherAsNode *bool `json:"runLauncherAsNode,omitempty"` }
MPIMLPolicySourceApplyConfiguration represents a declarative configuration of the MPIMLPolicySource type for use with apply.
func MPIMLPolicySource ¶
func MPIMLPolicySource() *MPIMLPolicySourceApplyConfiguration
MPIMLPolicySourceApplyConfiguration constructs a declarative configuration of the MPIMLPolicySource type for use with apply.
func (*MPIMLPolicySourceApplyConfiguration) WithMPIImplementation ¶
func (b *MPIMLPolicySourceApplyConfiguration) WithMPIImplementation(value v2alpha1.MPIImplementation) *MPIMLPolicySourceApplyConfiguration
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 (*MPIMLPolicySourceApplyConfiguration) WithNumProcPerNode ¶
func (b *MPIMLPolicySourceApplyConfiguration) WithNumProcPerNode(value int32) *MPIMLPolicySourceApplyConfiguration
WithNumProcPerNode sets the NumProcPerNode 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 NumProcPerNode field is set to the value of the last call.
func (*MPIMLPolicySourceApplyConfiguration) WithRunLauncherAsNode ¶
func (b *MPIMLPolicySourceApplyConfiguration) WithRunLauncherAsNode(value bool) *MPIMLPolicySourceApplyConfiguration
WithRunLauncherAsNode sets the RunLauncherAsNode 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 RunLauncherAsNode field is set to the value of the last call.
func (*MPIMLPolicySourceApplyConfiguration) WithSSHAuthMountPath ¶
func (b *MPIMLPolicySourceApplyConfiguration) WithSSHAuthMountPath(value string) *MPIMLPolicySourceApplyConfiguration
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.
type ModelConfigApplyConfiguration ¶
type ModelConfigApplyConfiguration struct { Input *InputModelApplyConfiguration `json:"input,omitempty"` Output *OutputModelApplyConfiguration `json:"output,omitempty"` }
ModelConfigApplyConfiguration represents a declarative configuration of the ModelConfig type for use with apply.
func ModelConfig ¶
func ModelConfig() *ModelConfigApplyConfiguration
ModelConfigApplyConfiguration constructs a declarative configuration of the ModelConfig type for use with apply.
func (*ModelConfigApplyConfiguration) WithInput ¶
func (b *ModelConfigApplyConfiguration) WithInput(value *InputModelApplyConfiguration) *ModelConfigApplyConfiguration
WithInput sets the Input 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 Input field is set to the value of the last call.
func (*ModelConfigApplyConfiguration) WithOutput ¶
func (b *ModelConfigApplyConfiguration) WithOutput(value *OutputModelApplyConfiguration) *ModelConfigApplyConfiguration
WithOutput sets the Output 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 Output field is set to the value of the last call.
type OutputModelApplyConfiguration ¶
type OutputModelApplyConfiguration struct { StorageUri *string `json:"storageUri,omitempty"` Env []v1.EnvVar `json:"env,omitempty"` SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"` }
OutputModelApplyConfiguration represents a declarative configuration of the OutputModel type for use with apply.
func OutputModel ¶
func OutputModel() *OutputModelApplyConfiguration
OutputModelApplyConfiguration constructs a declarative configuration of the OutputModel type for use with apply.
func (*OutputModelApplyConfiguration) WithEnv ¶
func (b *OutputModelApplyConfiguration) WithEnv(values ...v1.EnvVar) *OutputModelApplyConfiguration
WithEnv adds the given value to the Env 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 Env field.
func (*OutputModelApplyConfiguration) WithSecretRef ¶
func (b *OutputModelApplyConfiguration) WithSecretRef(value v1.LocalObjectReference) *OutputModelApplyConfiguration
WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.
func (*OutputModelApplyConfiguration) WithStorageUri ¶
func (b *OutputModelApplyConfiguration) WithStorageUri(value string) *OutputModelApplyConfiguration
WithStorageUri sets the StorageUri 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 StorageUri field is set to the value of the last call.
type PodGroupPolicyApplyConfiguration ¶
type PodGroupPolicyApplyConfiguration struct {
PodGroupPolicySourceApplyConfiguration `json:",inline"`
}
PodGroupPolicyApplyConfiguration represents a declarative configuration of the PodGroupPolicy type for use with apply.
func PodGroupPolicy ¶
func PodGroupPolicy() *PodGroupPolicyApplyConfiguration
PodGroupPolicyApplyConfiguration constructs a declarative configuration of the PodGroupPolicy type for use with apply.
func (*PodGroupPolicyApplyConfiguration) WithCoscheduling ¶
func (b *PodGroupPolicyApplyConfiguration) WithCoscheduling(value *CoschedulingPodGroupPolicySourceApplyConfiguration) *PodGroupPolicyApplyConfiguration
WithCoscheduling sets the Coscheduling 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 Coscheduling field is set to the value of the last call.
type PodGroupPolicySourceApplyConfiguration ¶
type PodGroupPolicySourceApplyConfiguration struct {
Coscheduling *CoschedulingPodGroupPolicySourceApplyConfiguration `json:"coscheduling,omitempty"`
}
PodGroupPolicySourceApplyConfiguration represents a declarative configuration of the PodGroupPolicySource type for use with apply.
func PodGroupPolicySource ¶
func PodGroupPolicySource() *PodGroupPolicySourceApplyConfiguration
PodGroupPolicySourceApplyConfiguration constructs a declarative configuration of the PodGroupPolicySource type for use with apply.
func (*PodGroupPolicySourceApplyConfiguration) WithCoscheduling ¶
func (b *PodGroupPolicySourceApplyConfiguration) WithCoscheduling(value *CoschedulingPodGroupPolicySourceApplyConfiguration) *PodGroupPolicySourceApplyConfiguration
WithCoscheduling sets the Coscheduling 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 Coscheduling field is set to the value of the last call.
type PodSpecOverrideApplyConfiguration ¶
type PodSpecOverrideApplyConfiguration struct { TargetJobs []PodSpecOverrideTargetJobApplyConfiguration `json:"targetJobs,omitempty"` Containers []ContainerOverrideApplyConfiguration `json:"containers,omitempty"` InitContainers []ContainerOverrideApplyConfiguration `json:"initContainers,omitempty"` Volumes []v1.Volume `json:"volumes,omitempty"` ServiceAccountName *string `json:"serviceAccountName,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` }
PodSpecOverrideApplyConfiguration represents a declarative configuration of the PodSpecOverride type for use with apply.
func PodSpecOverride ¶
func PodSpecOverride() *PodSpecOverrideApplyConfiguration
PodSpecOverrideApplyConfiguration constructs a declarative configuration of the PodSpecOverride type for use with apply.
func (*PodSpecOverrideApplyConfiguration) WithContainers ¶
func (b *PodSpecOverrideApplyConfiguration) WithContainers(values ...*ContainerOverrideApplyConfiguration) *PodSpecOverrideApplyConfiguration
WithContainers adds the given value to the Containers 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 Containers field.
func (*PodSpecOverrideApplyConfiguration) WithInitContainers ¶
func (b *PodSpecOverrideApplyConfiguration) WithInitContainers(values ...*ContainerOverrideApplyConfiguration) *PodSpecOverrideApplyConfiguration
WithInitContainers adds the given value to the InitContainers 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 InitContainers field.
func (*PodSpecOverrideApplyConfiguration) WithNodeSelector ¶
func (b *PodSpecOverrideApplyConfiguration) WithNodeSelector(entries map[string]string) *PodSpecOverrideApplyConfiguration
WithNodeSelector puts the entries into the NodeSelector 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 NodeSelector field, overwriting an existing map entries in NodeSelector field with the same key.
func (*PodSpecOverrideApplyConfiguration) WithServiceAccountName ¶
func (b *PodSpecOverrideApplyConfiguration) WithServiceAccountName(value string) *PodSpecOverrideApplyConfiguration
WithServiceAccountName sets the ServiceAccountName 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 ServiceAccountName field is set to the value of the last call.
func (*PodSpecOverrideApplyConfiguration) WithTargetJobs ¶
func (b *PodSpecOverrideApplyConfiguration) WithTargetJobs(values ...*PodSpecOverrideTargetJobApplyConfiguration) *PodSpecOverrideApplyConfiguration
WithTargetJobs adds the given value to the TargetJobs 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 TargetJobs field.
func (*PodSpecOverrideApplyConfiguration) WithTolerations ¶
func (b *PodSpecOverrideApplyConfiguration) WithTolerations(values ...v1.Toleration) *PodSpecOverrideApplyConfiguration
WithTolerations adds the given value to the Tolerations 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 Tolerations field.
func (*PodSpecOverrideApplyConfiguration) WithVolumes ¶
func (b *PodSpecOverrideApplyConfiguration) WithVolumes(values ...v1.Volume) *PodSpecOverrideApplyConfiguration
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 PodSpecOverrideTargetJobApplyConfiguration ¶
type PodSpecOverrideTargetJobApplyConfiguration struct {
Name *string `json:"name,omitempty"`
}
PodSpecOverrideTargetJobApplyConfiguration represents a declarative configuration of the PodSpecOverrideTargetJob type for use with apply.
func PodSpecOverrideTargetJob ¶
func PodSpecOverrideTargetJob() *PodSpecOverrideTargetJobApplyConfiguration
PodSpecOverrideTargetJobApplyConfiguration constructs a declarative configuration of the PodSpecOverrideTargetJob type for use with apply.
func (*PodSpecOverrideTargetJobApplyConfiguration) WithName ¶
func (b *PodSpecOverrideTargetJobApplyConfiguration) WithName(value string) *PodSpecOverrideTargetJobApplyConfiguration
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.
type RuntimeRefApplyConfiguration ¶
type RuntimeRefApplyConfiguration struct { Name *string `json:"name,omitempty"` APIGroup *string `json:"apiGroup,omitempty"` Kind *string `json:"kind,omitempty"` }
RuntimeRefApplyConfiguration represents a declarative configuration of the RuntimeRef type for use with apply.
func RuntimeRef ¶
func RuntimeRef() *RuntimeRefApplyConfiguration
RuntimeRefApplyConfiguration constructs a declarative configuration of the RuntimeRef type for use with apply.
func (*RuntimeRefApplyConfiguration) WithAPIGroup ¶
func (b *RuntimeRefApplyConfiguration) WithAPIGroup(value string) *RuntimeRefApplyConfiguration
WithAPIGroup sets the APIGroup 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 APIGroup field is set to the value of the last call.
func (*RuntimeRefApplyConfiguration) WithKind ¶
func (b *RuntimeRefApplyConfiguration) WithKind(value string) *RuntimeRefApplyConfiguration
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 (*RuntimeRefApplyConfiguration) WithName ¶
func (b *RuntimeRefApplyConfiguration) WithName(value string) *RuntimeRefApplyConfiguration
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.
type TorchElasticPolicyApplyConfiguration ¶
type TorchElasticPolicyApplyConfiguration struct { MaxRestarts *int32 `json:"maxRestarts,omitempty"` MinNodes *int32 `json:"minNodes,omitempty"` MaxNodes *int32 `json:"maxNodes,omitempty"` Metrics []v2.MetricSpec `json:"metrics,omitempty"` }
TorchElasticPolicyApplyConfiguration represents a declarative configuration of the TorchElasticPolicy type for use with apply.
func TorchElasticPolicy ¶
func TorchElasticPolicy() *TorchElasticPolicyApplyConfiguration
TorchElasticPolicyApplyConfiguration constructs a declarative configuration of the TorchElasticPolicy type for use with apply.
func (*TorchElasticPolicyApplyConfiguration) WithMaxNodes ¶
func (b *TorchElasticPolicyApplyConfiguration) WithMaxNodes(value int32) *TorchElasticPolicyApplyConfiguration
WithMaxNodes sets the MaxNodes 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 MaxNodes field is set to the value of the last call.
func (*TorchElasticPolicyApplyConfiguration) WithMaxRestarts ¶
func (b *TorchElasticPolicyApplyConfiguration) WithMaxRestarts(value int32) *TorchElasticPolicyApplyConfiguration
WithMaxRestarts sets the MaxRestarts field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxRestarts field is set to the value of the last call.
func (*TorchElasticPolicyApplyConfiguration) WithMetrics ¶
func (b *TorchElasticPolicyApplyConfiguration) WithMetrics(values ...v2.MetricSpec) *TorchElasticPolicyApplyConfiguration
WithMetrics adds the given value to the Metrics 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 Metrics field.
func (*TorchElasticPolicyApplyConfiguration) WithMinNodes ¶
func (b *TorchElasticPolicyApplyConfiguration) WithMinNodes(value int32) *TorchElasticPolicyApplyConfiguration
WithMinNodes sets the MinNodes 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 MinNodes field is set to the value of the last call.
type TorchMLPolicySourceApplyConfiguration ¶
type TorchMLPolicySourceApplyConfiguration struct { NumProcPerNode *string `json:"numProcPerNode,omitempty"` ElasticPolicy *TorchElasticPolicyApplyConfiguration `json:"elasticPolicy,omitempty"` }
TorchMLPolicySourceApplyConfiguration represents a declarative configuration of the TorchMLPolicySource type for use with apply.
func TorchMLPolicySource ¶
func TorchMLPolicySource() *TorchMLPolicySourceApplyConfiguration
TorchMLPolicySourceApplyConfiguration constructs a declarative configuration of the TorchMLPolicySource type for use with apply.
func (*TorchMLPolicySourceApplyConfiguration) WithElasticPolicy ¶
func (b *TorchMLPolicySourceApplyConfiguration) WithElasticPolicy(value *TorchElasticPolicyApplyConfiguration) *TorchMLPolicySourceApplyConfiguration
WithElasticPolicy sets the ElasticPolicy 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 ElasticPolicy field is set to the value of the last call.
func (*TorchMLPolicySourceApplyConfiguration) WithNumProcPerNode ¶
func (b *TorchMLPolicySourceApplyConfiguration) WithNumProcPerNode(value string) *TorchMLPolicySourceApplyConfiguration
WithNumProcPerNode sets the NumProcPerNode 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 NumProcPerNode field is set to the value of the last call.
type TrainJobApplyConfiguration ¶
type TrainJobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *TrainJobSpecApplyConfiguration `json:"spec,omitempty"` Status *TrainJobStatusApplyConfiguration `json:"status,omitempty"` }
TrainJobApplyConfiguration represents a declarative configuration of the TrainJob type for use with apply.
func TrainJob ¶
func TrainJob(name, namespace string) *TrainJobApplyConfiguration
TrainJob constructs a declarative configuration of the TrainJob type for use with apply.
func (*TrainJobApplyConfiguration) GetName ¶
func (b *TrainJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*TrainJobApplyConfiguration) WithAPIVersion ¶
func (b *TrainJobApplyConfiguration) WithAPIVersion(value string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithAnnotations ¶
func (b *TrainJobApplyConfiguration) WithAnnotations(entries map[string]string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithCreationTimestamp ¶
func (b *TrainJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *TrainJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *TrainJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithFinalizers ¶
func (b *TrainJobApplyConfiguration) WithFinalizers(values ...string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithGenerateName ¶
func (b *TrainJobApplyConfiguration) WithGenerateName(value string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithGeneration ¶
func (b *TrainJobApplyConfiguration) WithGeneration(value int64) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithKind ¶
func (b *TrainJobApplyConfiguration) WithKind(value string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithLabels ¶
func (b *TrainJobApplyConfiguration) WithLabels(entries map[string]string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithName ¶
func (b *TrainJobApplyConfiguration) WithName(value string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithNamespace ¶
func (b *TrainJobApplyConfiguration) WithNamespace(value string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithOwnerReferences ¶
func (b *TrainJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithResourceVersion ¶
func (b *TrainJobApplyConfiguration) WithResourceVersion(value string) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithSpec ¶
func (b *TrainJobApplyConfiguration) WithSpec(value *TrainJobSpecApplyConfiguration) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithStatus ¶
func (b *TrainJobApplyConfiguration) WithStatus(value *TrainJobStatusApplyConfiguration) *TrainJobApplyConfiguration
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 (*TrainJobApplyConfiguration) WithUID ¶
func (b *TrainJobApplyConfiguration) WithUID(value types.UID) *TrainJobApplyConfiguration
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 TrainJobSpecApplyConfiguration ¶
type TrainJobSpecApplyConfiguration struct { RuntimeRef *RuntimeRefApplyConfiguration `json:"runtimeRef,omitempty"` Trainer *TrainerApplyConfiguration `json:"trainer,omitempty"` DatasetConfig *DatasetConfigApplyConfiguration `json:"datasetConfig,omitempty"` ModelConfig *ModelConfigApplyConfiguration `json:"modelConfig,omitempty"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` PodSpecOverrides []PodSpecOverrideApplyConfiguration `json:"podSpecOverrides,omitempty"` Suspend *bool `json:"suspend,omitempty"` ManagedBy *string `json:"managedBy,omitempty"` }
TrainJobSpecApplyConfiguration represents a declarative configuration of the TrainJobSpec type for use with apply.
func TrainJobSpec ¶
func TrainJobSpec() *TrainJobSpecApplyConfiguration
TrainJobSpecApplyConfiguration constructs a declarative configuration of the TrainJobSpec type for use with apply.
func (*TrainJobSpecApplyConfiguration) WithAnnotations ¶
func (b *TrainJobSpecApplyConfiguration) WithAnnotations(entries map[string]string) *TrainJobSpecApplyConfiguration
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 (*TrainJobSpecApplyConfiguration) WithDatasetConfig ¶
func (b *TrainJobSpecApplyConfiguration) WithDatasetConfig(value *DatasetConfigApplyConfiguration) *TrainJobSpecApplyConfiguration
WithDatasetConfig sets the DatasetConfig 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 DatasetConfig field is set to the value of the last call.
func (*TrainJobSpecApplyConfiguration) WithLabels ¶
func (b *TrainJobSpecApplyConfiguration) WithLabels(entries map[string]string) *TrainJobSpecApplyConfiguration
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 (*TrainJobSpecApplyConfiguration) WithManagedBy ¶
func (b *TrainJobSpecApplyConfiguration) WithManagedBy(value string) *TrainJobSpecApplyConfiguration
WithManagedBy sets the ManagedBy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ManagedBy field is set to the value of the last call.
func (*TrainJobSpecApplyConfiguration) WithModelConfig ¶
func (b *TrainJobSpecApplyConfiguration) WithModelConfig(value *ModelConfigApplyConfiguration) *TrainJobSpecApplyConfiguration
WithModelConfig sets the ModelConfig 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 ModelConfig field is set to the value of the last call.
func (*TrainJobSpecApplyConfiguration) WithPodSpecOverrides ¶
func (b *TrainJobSpecApplyConfiguration) WithPodSpecOverrides(values ...*PodSpecOverrideApplyConfiguration) *TrainJobSpecApplyConfiguration
WithPodSpecOverrides adds the given value to the PodSpecOverrides 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 PodSpecOverrides field.
func (*TrainJobSpecApplyConfiguration) WithRuntimeRef ¶
func (b *TrainJobSpecApplyConfiguration) WithRuntimeRef(value *RuntimeRefApplyConfiguration) *TrainJobSpecApplyConfiguration
WithRuntimeRef sets the RuntimeRef 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 RuntimeRef field is set to the value of the last call.
func (*TrainJobSpecApplyConfiguration) WithSuspend ¶
func (b *TrainJobSpecApplyConfiguration) WithSuspend(value bool) *TrainJobSpecApplyConfiguration
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 (*TrainJobSpecApplyConfiguration) WithTrainer ¶
func (b *TrainJobSpecApplyConfiguration) WithTrainer(value *TrainerApplyConfiguration) *TrainJobSpecApplyConfiguration
WithTrainer sets the Trainer 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 Trainer field is set to the value of the last call.
type TrainJobStatusApplyConfiguration ¶
type TrainJobStatusApplyConfiguration struct { Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"` JobsStatus []JobStatusApplyConfiguration `json:"jobsStatus,omitempty"` }
TrainJobStatusApplyConfiguration represents a declarative configuration of the TrainJobStatus type for use with apply.
func TrainJobStatus ¶
func TrainJobStatus() *TrainJobStatusApplyConfiguration
TrainJobStatusApplyConfiguration constructs a declarative configuration of the TrainJobStatus type for use with apply.
func (*TrainJobStatusApplyConfiguration) WithConditions ¶
func (b *TrainJobStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *TrainJobStatusApplyConfiguration
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 (*TrainJobStatusApplyConfiguration) WithJobsStatus ¶
func (b *TrainJobStatusApplyConfiguration) WithJobsStatus(values ...*JobStatusApplyConfiguration) *TrainJobStatusApplyConfiguration
WithJobsStatus adds the given value to the JobsStatus 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 JobsStatus field.
type TrainerApplyConfiguration ¶
type TrainerApplyConfiguration struct { Image *string `json:"image,omitempty"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` Env []v1.EnvVar `json:"env,omitempty"` NumNodes *int32 `json:"numNodes,omitempty"` ResourcesPerNode *v1.ResourceRequirements `json:"resourcesPerNode,omitempty"` NumProcPerNode *string `json:"numProcPerNode,omitempty"` }
TrainerApplyConfiguration represents a declarative configuration of the Trainer type for use with apply.
func Trainer ¶
func Trainer() *TrainerApplyConfiguration
TrainerApplyConfiguration constructs a declarative configuration of the Trainer type for use with apply.
func (*TrainerApplyConfiguration) WithArgs ¶
func (b *TrainerApplyConfiguration) WithArgs(values ...string) *TrainerApplyConfiguration
WithArgs adds the given value to the Args 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 Args field.
func (*TrainerApplyConfiguration) WithCommand ¶
func (b *TrainerApplyConfiguration) WithCommand(values ...string) *TrainerApplyConfiguration
WithCommand adds the given value to the Command 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 Command field.
func (*TrainerApplyConfiguration) WithEnv ¶
func (b *TrainerApplyConfiguration) WithEnv(values ...v1.EnvVar) *TrainerApplyConfiguration
WithEnv adds the given value to the Env 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 Env field.
func (*TrainerApplyConfiguration) WithImage ¶
func (b *TrainerApplyConfiguration) WithImage(value string) *TrainerApplyConfiguration
WithImage sets the Image 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 Image field is set to the value of the last call.
func (*TrainerApplyConfiguration) WithNumNodes ¶
func (b *TrainerApplyConfiguration) WithNumNodes(value int32) *TrainerApplyConfiguration
WithNumNodes sets the NumNodes 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 NumNodes field is set to the value of the last call.
func (*TrainerApplyConfiguration) WithNumProcPerNode ¶
func (b *TrainerApplyConfiguration) WithNumProcPerNode(value string) *TrainerApplyConfiguration
WithNumProcPerNode sets the NumProcPerNode 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 NumProcPerNode field is set to the value of the last call.
func (*TrainerApplyConfiguration) WithResourcesPerNode ¶
func (b *TrainerApplyConfiguration) WithResourcesPerNode(value v1.ResourceRequirements) *TrainerApplyConfiguration
WithResourcesPerNode sets the ResourcesPerNode 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 ResourcesPerNode field is set to the value of the last call.
type TrainingRuntimeApplyConfiguration ¶
type TrainingRuntimeApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *TrainingRuntimeSpecApplyConfiguration `json:"spec,omitempty"` }
TrainingRuntimeApplyConfiguration represents a declarative configuration of the TrainingRuntime type for use with apply.
func TrainingRuntime ¶
func TrainingRuntime(name, namespace string) *TrainingRuntimeApplyConfiguration
TrainingRuntime constructs a declarative configuration of the TrainingRuntime type for use with apply.
func (*TrainingRuntimeApplyConfiguration) GetName ¶
func (b *TrainingRuntimeApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*TrainingRuntimeApplyConfiguration) WithAPIVersion ¶
func (b *TrainingRuntimeApplyConfiguration) WithAPIVersion(value string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithAnnotations ¶
func (b *TrainingRuntimeApplyConfiguration) WithAnnotations(entries map[string]string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithCreationTimestamp ¶
func (b *TrainingRuntimeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *TrainingRuntimeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithDeletionTimestamp ¶
func (b *TrainingRuntimeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithFinalizers ¶
func (b *TrainingRuntimeApplyConfiguration) WithFinalizers(values ...string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithGenerateName ¶
func (b *TrainingRuntimeApplyConfiguration) WithGenerateName(value string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithGeneration ¶
func (b *TrainingRuntimeApplyConfiguration) WithGeneration(value int64) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithKind ¶
func (b *TrainingRuntimeApplyConfiguration) WithKind(value string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithLabels ¶
func (b *TrainingRuntimeApplyConfiguration) WithLabels(entries map[string]string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithName ¶
func (b *TrainingRuntimeApplyConfiguration) WithName(value string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithNamespace ¶
func (b *TrainingRuntimeApplyConfiguration) WithNamespace(value string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithOwnerReferences ¶
func (b *TrainingRuntimeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithResourceVersion ¶
func (b *TrainingRuntimeApplyConfiguration) WithResourceVersion(value string) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithSpec ¶
func (b *TrainingRuntimeApplyConfiguration) WithSpec(value *TrainingRuntimeSpecApplyConfiguration) *TrainingRuntimeApplyConfiguration
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 (*TrainingRuntimeApplyConfiguration) WithUID ¶
func (b *TrainingRuntimeApplyConfiguration) WithUID(value types.UID) *TrainingRuntimeApplyConfiguration
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 TrainingRuntimeSpecApplyConfiguration ¶
type TrainingRuntimeSpecApplyConfiguration struct { MLPolicy *MLPolicyApplyConfiguration `json:"mlPolicy,omitempty"` PodGroupPolicy *PodGroupPolicyApplyConfiguration `json:"podGroupPolicy,omitempty"` Template *JobSetTemplateSpecApplyConfiguration `json:"template,omitempty"` }
TrainingRuntimeSpecApplyConfiguration represents a declarative configuration of the TrainingRuntimeSpec type for use with apply.
func TrainingRuntimeSpec ¶
func TrainingRuntimeSpec() *TrainingRuntimeSpecApplyConfiguration
TrainingRuntimeSpecApplyConfiguration constructs a declarative configuration of the TrainingRuntimeSpec type for use with apply.
func (*TrainingRuntimeSpecApplyConfiguration) WithMLPolicy ¶
func (b *TrainingRuntimeSpecApplyConfiguration) WithMLPolicy(value *MLPolicyApplyConfiguration) *TrainingRuntimeSpecApplyConfiguration
WithMLPolicy sets the MLPolicy 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 MLPolicy field is set to the value of the last call.
func (*TrainingRuntimeSpecApplyConfiguration) WithPodGroupPolicy ¶
func (b *TrainingRuntimeSpecApplyConfiguration) WithPodGroupPolicy(value *PodGroupPolicyApplyConfiguration) *TrainingRuntimeSpecApplyConfiguration
WithPodGroupPolicy sets the PodGroupPolicy 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 PodGroupPolicy field is set to the value of the last call.
func (*TrainingRuntimeSpecApplyConfiguration) WithTemplate ¶
func (b *TrainingRuntimeSpecApplyConfiguration) WithTemplate(value *JobSetTemplateSpecApplyConfiguration) *TrainingRuntimeSpecApplyConfiguration
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.
Source Files
¶
- clustertrainingruntime.go
- containeroverride.go
- coschedulingpodgrouppolicysource.go
- datasetconfig.go
- inputmodel.go
- jobsettemplatespec.go
- jobstatus.go
- mlpolicy.go
- mlpolicysource.go
- modelconfig.go
- mpimlpolicysource.go
- outputmodel.go
- podgrouppolicy.go
- podgrouppolicysource.go
- podspecoverride.go
- podspecoverridetargetjob.go
- runtimeref.go
- torchelasticpolicy.go
- torchmlpolicysource.go
- trainer.go
- trainingruntime.go
- trainingruntimespec.go
- trainjob.go
- trainjobspec.go
- trainjobstatus.go