Documentation
¶
Index ¶
- type ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithMaxReplicas(value int32) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithMaxRestarts(value int32) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithMetrics(values ...v2.MetricSpec) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithMinReplicas(value int32) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithNProcPerNode(value int32) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithRDZVBackend(value v1.RDZVBackend) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithRDZVConf(values ...*RDZVConfApplyConfiguration) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithRDZVHost(value string) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithRDZVID(value string) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithRDZVPort(value int32) *ElasticPolicyApplyConfiguration
- func (b *ElasticPolicyApplyConfiguration) WithStandalone(value bool) *ElasticPolicyApplyConfiguration
- type JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) GetName() *string
- func (b *JAXJobApplyConfiguration) WithAPIVersion(value string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithAnnotations(entries map[string]string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithFinalizers(values ...string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithGenerateName(value string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithGeneration(value int64) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithKind(value string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithLabels(entries map[string]string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithName(value string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithNamespace(value string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithResourceVersion(value string) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithSpec(value *JAXJobSpecApplyConfiguration) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *JAXJobApplyConfiguration
- func (b *JAXJobApplyConfiguration) WithUID(value types.UID) *JAXJobApplyConfiguration
- type JAXJobSpecApplyConfiguration
- type JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithLastTransitionTime(value metav1.Time) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithLastUpdateTime(value metav1.Time) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithMessage(value string) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithReason(value string) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *JobConditionApplyConfiguration
- func (b *JobConditionApplyConfiguration) WithType(value v1.JobConditionType) *JobConditionApplyConfiguration
- type JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithCompletionTime(value metav1.Time) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithConditions(values ...*JobConditionApplyConfiguration) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithLastReconcileTime(value metav1.Time) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithReplicaStatuses(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaStatus) *JobStatusApplyConfiguration
- func (b *JobStatusApplyConfiguration) WithStartTime(value metav1.Time) *JobStatusApplyConfiguration
- type MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) GetName() *string
- func (b *MPIJobApplyConfiguration) WithAPIVersion(value string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithAnnotations(entries map[string]string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithFinalizers(values ...string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithGenerateName(value string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithGeneration(value int64) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithKind(value string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithLabels(entries map[string]string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithName(value string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithNamespace(value string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithResourceVersion(value string) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithSpec(value *MPIJobSpecApplyConfiguration) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *MPIJobApplyConfiguration
- func (b *MPIJobApplyConfiguration) WithUID(value types.UID) *MPIJobApplyConfiguration
- type MPIJobSpecApplyConfiguration
- func (b *MPIJobSpecApplyConfiguration) WithCleanPodPolicy(value v1.CleanPodPolicy) *MPIJobSpecApplyConfiguration
- func (b *MPIJobSpecApplyConfiguration) WithMPIReplicaSpecs(entries map[v1.ReplicaType]*v1.ReplicaSpec) *MPIJobSpecApplyConfiguration
- func (b *MPIJobSpecApplyConfiguration) WithMainContainer(value string) *MPIJobSpecApplyConfiguration
- func (b *MPIJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *MPIJobSpecApplyConfiguration
- func (b *MPIJobSpecApplyConfiguration) WithSlotsPerWorker(value int32) *MPIJobSpecApplyConfiguration
- type PaddleElasticPolicyApplyConfiguration
- func (b *PaddleElasticPolicyApplyConfiguration) WithMaxReplicas(value int32) *PaddleElasticPolicyApplyConfiguration
- func (b *PaddleElasticPolicyApplyConfiguration) WithMaxRestarts(value int32) *PaddleElasticPolicyApplyConfiguration
- func (b *PaddleElasticPolicyApplyConfiguration) WithMetrics(values ...v2.MetricSpec) *PaddleElasticPolicyApplyConfiguration
- func (b *PaddleElasticPolicyApplyConfiguration) WithMinReplicas(value int32) *PaddleElasticPolicyApplyConfiguration
- type PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) GetName() *string
- func (b *PaddleJobApplyConfiguration) WithAPIVersion(value string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithAnnotations(entries map[string]string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithFinalizers(values ...string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithGenerateName(value string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithGeneration(value int64) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithKind(value string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithLabels(entries map[string]string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithName(value string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithNamespace(value string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithResourceVersion(value string) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithSpec(value *PaddleJobSpecApplyConfiguration) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *PaddleJobApplyConfiguration
- func (b *PaddleJobApplyConfiguration) WithUID(value types.UID) *PaddleJobApplyConfiguration
- type PaddleJobSpecApplyConfiguration
- func (b *PaddleJobSpecApplyConfiguration) WithElasticPolicy(value *PaddleElasticPolicyApplyConfiguration) *PaddleJobSpecApplyConfiguration
- func (b *PaddleJobSpecApplyConfiguration) WithPaddleReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *PaddleJobSpecApplyConfiguration
- func (b *PaddleJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *PaddleJobSpecApplyConfiguration
- type PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) GetName() *string
- func (b *PyTorchJobApplyConfiguration) WithAPIVersion(value string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithAnnotations(entries map[string]string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithFinalizers(values ...string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithGenerateName(value string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithGeneration(value int64) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithKind(value string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithLabels(entries map[string]string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithName(value string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithNamespace(value string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithResourceVersion(value string) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithSpec(value *PyTorchJobSpecApplyConfiguration) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *PyTorchJobApplyConfiguration
- func (b *PyTorchJobApplyConfiguration) WithUID(value types.UID) *PyTorchJobApplyConfiguration
- type PyTorchJobSpecApplyConfiguration
- func (b *PyTorchJobSpecApplyConfiguration) WithElasticPolicy(value *ElasticPolicyApplyConfiguration) *PyTorchJobSpecApplyConfiguration
- func (b *PyTorchJobSpecApplyConfiguration) WithNprocPerNode(value string) *PyTorchJobSpecApplyConfiguration
- func (b *PyTorchJobSpecApplyConfiguration) WithPyTorchReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *PyTorchJobSpecApplyConfiguration
- func (b *PyTorchJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *PyTorchJobSpecApplyConfiguration
- type RDZVConfApplyConfiguration
- type ReplicaSpecApplyConfiguration
- func (b *ReplicaSpecApplyConfiguration) WithReplicas(value int32) *ReplicaSpecApplyConfiguration
- func (b *ReplicaSpecApplyConfiguration) WithRestartPolicy(value kubefloworgv1.RestartPolicy) *ReplicaSpecApplyConfiguration
- func (b *ReplicaSpecApplyConfiguration) WithTemplate(value v1.PodTemplateSpec) *ReplicaSpecApplyConfiguration
- type ReplicaStatusApplyConfiguration
- func (b *ReplicaStatusApplyConfiguration) WithActive(value int32) *ReplicaStatusApplyConfiguration
- func (b *ReplicaStatusApplyConfiguration) WithFailed(value int32) *ReplicaStatusApplyConfiguration
- func (b *ReplicaStatusApplyConfiguration) WithLabelSelector(value *v1.LabelSelectorApplyConfiguration) *ReplicaStatusApplyConfiguration
- func (b *ReplicaStatusApplyConfiguration) WithSelector(value string) *ReplicaStatusApplyConfiguration
- func (b *ReplicaStatusApplyConfiguration) WithSucceeded(value int32) *ReplicaStatusApplyConfiguration
- type RunPolicyApplyConfiguration
- func (b *RunPolicyApplyConfiguration) WithActiveDeadlineSeconds(value int64) *RunPolicyApplyConfiguration
- func (b *RunPolicyApplyConfiguration) WithBackoffLimit(value int32) *RunPolicyApplyConfiguration
- func (b *RunPolicyApplyConfiguration) WithCleanPodPolicy(value v1.CleanPodPolicy) *RunPolicyApplyConfiguration
- func (b *RunPolicyApplyConfiguration) WithManagedBy(value string) *RunPolicyApplyConfiguration
- func (b *RunPolicyApplyConfiguration) WithSchedulingPolicy(value *SchedulingPolicyApplyConfiguration) *RunPolicyApplyConfiguration
- func (b *RunPolicyApplyConfiguration) WithSuspend(value bool) *RunPolicyApplyConfiguration
- func (b *RunPolicyApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *RunPolicyApplyConfiguration
- type SchedulingPolicyApplyConfiguration
- func (b *SchedulingPolicyApplyConfiguration) WithMinAvailable(value int32) *SchedulingPolicyApplyConfiguration
- func (b *SchedulingPolicyApplyConfiguration) WithMinResources(value map[v1.ResourceName]resource.Quantity) *SchedulingPolicyApplyConfiguration
- func (b *SchedulingPolicyApplyConfiguration) WithPriorityClass(value string) *SchedulingPolicyApplyConfiguration
- func (b *SchedulingPolicyApplyConfiguration) WithQueue(value string) *SchedulingPolicyApplyConfiguration
- func (b *SchedulingPolicyApplyConfiguration) WithScheduleTimeoutSeconds(value int32) *SchedulingPolicyApplyConfiguration
- type TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) GetName() *string
- func (b *TFJobApplyConfiguration) WithAPIVersion(value string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithAnnotations(entries map[string]string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithFinalizers(values ...string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithGenerateName(value string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithGeneration(value int64) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithKind(value string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithLabels(entries map[string]string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithName(value string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithNamespace(value string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithResourceVersion(value string) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithSpec(value *TFJobSpecApplyConfiguration) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *TFJobApplyConfiguration
- func (b *TFJobApplyConfiguration) WithUID(value types.UID) *TFJobApplyConfiguration
- type TFJobSpecApplyConfiguration
- func (b *TFJobSpecApplyConfiguration) WithEnableDynamicWorker(value bool) *TFJobSpecApplyConfiguration
- func (b *TFJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *TFJobSpecApplyConfiguration
- func (b *TFJobSpecApplyConfiguration) WithSuccessPolicy(value kubefloworgv1.SuccessPolicy) *TFJobSpecApplyConfiguration
- func (b *TFJobSpecApplyConfiguration) WithTFReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *TFJobSpecApplyConfiguration
- type XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) GetName() *string
- func (b *XGBoostJobApplyConfiguration) WithAPIVersion(value string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithAnnotations(entries map[string]string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithFinalizers(values ...string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithGenerateName(value string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithGeneration(value int64) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithKind(value string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithLabels(entries map[string]string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithName(value string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithNamespace(value string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithResourceVersion(value string) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithSpec(value *XGBoostJobSpecApplyConfiguration) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *XGBoostJobApplyConfiguration
- func (b *XGBoostJobApplyConfiguration) WithUID(value types.UID) *XGBoostJobApplyConfiguration
- type XGBoostJobSpecApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticPolicyApplyConfiguration ¶
type ElasticPolicyApplyConfiguration struct { MinReplicas *int32 `json:"minReplicas,omitempty"` MaxReplicas *int32 `json:"maxReplicas,omitempty"` RDZVBackend *v1.RDZVBackend `json:"rdzvBackend,omitempty"` RDZVPort *int32 `json:"rdzvPort,omitempty"` RDZVHost *string `json:"rdzvHost,omitempty"` RDZVID *string `json:"rdzvId,omitempty"` RDZVConf []RDZVConfApplyConfiguration `json:"rdzvConf,omitempty"` Standalone *bool `json:"standalone,omitempty"` NProcPerNode *int32 `json:"nProcPerNode,omitempty"` MaxRestarts *int32 `json:"maxRestarts,omitempty"` Metrics []v2.MetricSpec `json:"metrics,omitempty"` }
ElasticPolicyApplyConfiguration represents a declarative configuration of the ElasticPolicy type for use with apply.
func ElasticPolicy ¶
func ElasticPolicy() *ElasticPolicyApplyConfiguration
ElasticPolicyApplyConfiguration constructs a declarative configuration of the ElasticPolicy type for use with apply.
func (*ElasticPolicyApplyConfiguration) WithMaxReplicas ¶
func (b *ElasticPolicyApplyConfiguration) WithMaxReplicas(value int32) *ElasticPolicyApplyConfiguration
WithMaxReplicas sets the MaxReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxReplicas field is set to the value of the last call.
func (*ElasticPolicyApplyConfiguration) WithMaxRestarts ¶
func (b *ElasticPolicyApplyConfiguration) WithMaxRestarts(value int32) *ElasticPolicyApplyConfiguration
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 (*ElasticPolicyApplyConfiguration) WithMetrics ¶
func (b *ElasticPolicyApplyConfiguration) WithMetrics(values ...v2.MetricSpec) *ElasticPolicyApplyConfiguration
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 (*ElasticPolicyApplyConfiguration) WithMinReplicas ¶
func (b *ElasticPolicyApplyConfiguration) WithMinReplicas(value int32) *ElasticPolicyApplyConfiguration
WithMinReplicas sets the MinReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinReplicas field is set to the value of the last call.
func (*ElasticPolicyApplyConfiguration) WithNProcPerNode ¶
func (b *ElasticPolicyApplyConfiguration) WithNProcPerNode(value int32) *ElasticPolicyApplyConfiguration
WithNProcPerNode sets the NProcPerNode field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NProcPerNode field is set to the value of the last call.
func (*ElasticPolicyApplyConfiguration) WithRDZVBackend ¶
func (b *ElasticPolicyApplyConfiguration) WithRDZVBackend(value v1.RDZVBackend) *ElasticPolicyApplyConfiguration
WithRDZVBackend sets the RDZVBackend field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RDZVBackend field is set to the value of the last call.
func (*ElasticPolicyApplyConfiguration) WithRDZVConf ¶
func (b *ElasticPolicyApplyConfiguration) WithRDZVConf(values ...*RDZVConfApplyConfiguration) *ElasticPolicyApplyConfiguration
WithRDZVConf adds the given value to the RDZVConf 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 RDZVConf field.
func (*ElasticPolicyApplyConfiguration) WithRDZVHost ¶
func (b *ElasticPolicyApplyConfiguration) WithRDZVHost(value string) *ElasticPolicyApplyConfiguration
WithRDZVHost sets the RDZVHost field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RDZVHost field is set to the value of the last call.
func (*ElasticPolicyApplyConfiguration) WithRDZVID ¶
func (b *ElasticPolicyApplyConfiguration) WithRDZVID(value string) *ElasticPolicyApplyConfiguration
WithRDZVID sets the RDZVID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RDZVID field is set to the value of the last call.
func (*ElasticPolicyApplyConfiguration) WithRDZVPort ¶
func (b *ElasticPolicyApplyConfiguration) WithRDZVPort(value int32) *ElasticPolicyApplyConfiguration
WithRDZVPort sets the RDZVPort field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RDZVPort field is set to the value of the last call.
func (*ElasticPolicyApplyConfiguration) WithStandalone ¶
func (b *ElasticPolicyApplyConfiguration) WithStandalone(value bool) *ElasticPolicyApplyConfiguration
WithStandalone sets the Standalone field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Standalone field is set to the value of the last call.
type JAXJobApplyConfiguration ¶
type JAXJobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *JAXJobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
JAXJobApplyConfiguration represents a declarative configuration of the JAXJob type for use with apply.
func JAXJob ¶
func JAXJob(name, namespace string) *JAXJobApplyConfiguration
JAXJob constructs a declarative configuration of the JAXJob type for use with apply.
func (*JAXJobApplyConfiguration) GetName ¶
func (b *JAXJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*JAXJobApplyConfiguration) WithAPIVersion ¶
func (b *JAXJobApplyConfiguration) WithAPIVersion(value string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithAnnotations ¶
func (b *JAXJobApplyConfiguration) WithAnnotations(entries map[string]string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithCreationTimestamp ¶
func (b *JAXJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *JAXJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *JAXJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithFinalizers ¶
func (b *JAXJobApplyConfiguration) WithFinalizers(values ...string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithGenerateName ¶
func (b *JAXJobApplyConfiguration) WithGenerateName(value string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithGeneration ¶
func (b *JAXJobApplyConfiguration) WithGeneration(value int64) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithKind ¶
func (b *JAXJobApplyConfiguration) WithKind(value string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithLabels ¶
func (b *JAXJobApplyConfiguration) WithLabels(entries map[string]string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithName ¶
func (b *JAXJobApplyConfiguration) WithName(value string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithNamespace ¶
func (b *JAXJobApplyConfiguration) WithNamespace(value string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithOwnerReferences ¶
func (b *JAXJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithResourceVersion ¶
func (b *JAXJobApplyConfiguration) WithResourceVersion(value string) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithSpec ¶
func (b *JAXJobApplyConfiguration) WithSpec(value *JAXJobSpecApplyConfiguration) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithStatus ¶
func (b *JAXJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *JAXJobApplyConfiguration
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 (*JAXJobApplyConfiguration) WithUID ¶
func (b *JAXJobApplyConfiguration) WithUID(value types.UID) *JAXJobApplyConfiguration
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 JAXJobSpecApplyConfiguration ¶
type JAXJobSpecApplyConfiguration struct { RunPolicy *RunPolicyApplyConfiguration `json:"runPolicy,omitempty"` JAXReplicaSpecs map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec `json:"jaxReplicaSpecs,omitempty"` }
JAXJobSpecApplyConfiguration represents a declarative configuration of the JAXJobSpec type for use with apply.
func JAXJobSpec ¶
func JAXJobSpec() *JAXJobSpecApplyConfiguration
JAXJobSpecApplyConfiguration constructs a declarative configuration of the JAXJobSpec type for use with apply.
func (*JAXJobSpecApplyConfiguration) WithJAXReplicaSpecs ¶
func (b *JAXJobSpecApplyConfiguration) WithJAXReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *JAXJobSpecApplyConfiguration
WithJAXReplicaSpecs puts the entries into the JAXReplicaSpecs 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 JAXReplicaSpecs field, overwriting an existing map entries in JAXReplicaSpecs field with the same key.
func (*JAXJobSpecApplyConfiguration) WithRunPolicy ¶
func (b *JAXJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *JAXJobSpecApplyConfiguration
WithRunPolicy sets the RunPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RunPolicy field is set to the value of the last call.
type JobConditionApplyConfiguration ¶
type JobConditionApplyConfiguration struct { Type *v1.JobConditionType `json:"type,omitempty"` Status *corev1.ConditionStatus `json:"status,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"` LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` }
JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use with apply.
func JobCondition ¶
func JobCondition() *JobConditionApplyConfiguration
JobConditionApplyConfiguration constructs a declarative configuration of the JobCondition type for use with apply.
func (*JobConditionApplyConfiguration) WithLastTransitionTime ¶
func (b *JobConditionApplyConfiguration) WithLastTransitionTime(value metav1.Time) *JobConditionApplyConfiguration
WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithLastUpdateTime ¶
func (b *JobConditionApplyConfiguration) WithLastUpdateTime(value metav1.Time) *JobConditionApplyConfiguration
WithLastUpdateTime sets the LastUpdateTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastUpdateTime field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithMessage ¶
func (b *JobConditionApplyConfiguration) WithMessage(value string) *JobConditionApplyConfiguration
WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithReason ¶
func (b *JobConditionApplyConfiguration) WithReason(value string) *JobConditionApplyConfiguration
WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithStatus ¶
func (b *JobConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *JobConditionApplyConfiguration
WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.
func (*JobConditionApplyConfiguration) WithType ¶
func (b *JobConditionApplyConfiguration) WithType(value v1.JobConditionType) *JobConditionApplyConfiguration
WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.
type JobStatusApplyConfiguration ¶
type JobStatusApplyConfiguration struct { Conditions []JobConditionApplyConfiguration `json:"conditions,omitempty"` ReplicaStatuses map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaStatus `json:"replicaStatuses,omitempty"` StartTime *metav1.Time `json:"startTime,omitempty"` CompletionTime *metav1.Time `json:"completionTime,omitempty"` LastReconcileTime *metav1.Time `json:"lastReconcileTime,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) WithCompletionTime ¶
func (b *JobStatusApplyConfiguration) WithCompletionTime(value metav1.Time) *JobStatusApplyConfiguration
WithCompletionTime sets the CompletionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CompletionTime field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithConditions ¶
func (b *JobStatusApplyConfiguration) WithConditions(values ...*JobConditionApplyConfiguration) *JobStatusApplyConfiguration
WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.
func (*JobStatusApplyConfiguration) WithLastReconcileTime ¶
func (b *JobStatusApplyConfiguration) WithLastReconcileTime(value metav1.Time) *JobStatusApplyConfiguration
WithLastReconcileTime sets the LastReconcileTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastReconcileTime field is set to the value of the last call.
func (*JobStatusApplyConfiguration) WithReplicaStatuses ¶
func (b *JobStatusApplyConfiguration) WithReplicaStatuses(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaStatus) *JobStatusApplyConfiguration
WithReplicaStatuses puts the entries into the ReplicaStatuses field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the ReplicaStatuses field, overwriting an existing map entries in ReplicaStatuses field with the same key.
func (*JobStatusApplyConfiguration) WithStartTime ¶
func (b *JobStatusApplyConfiguration) WithStartTime(value metav1.Time) *JobStatusApplyConfiguration
WithStartTime sets the StartTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the StartTime field is set to the value of the last call.
type MPIJobApplyConfiguration ¶
type MPIJobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *MPIJobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
MPIJobApplyConfiguration represents a declarative configuration of the MPIJob type for use with apply.
func MPIJob ¶
func MPIJob(name, namespace string) *MPIJobApplyConfiguration
MPIJob constructs a declarative configuration of the MPIJob type for use with apply.
func (*MPIJobApplyConfiguration) GetName ¶
func (b *MPIJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*MPIJobApplyConfiguration) WithAPIVersion ¶
func (b *MPIJobApplyConfiguration) WithAPIVersion(value string) *MPIJobApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithAnnotations ¶
func (b *MPIJobApplyConfiguration) WithAnnotations(entries map[string]string) *MPIJobApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*MPIJobApplyConfiguration) WithCreationTimestamp ¶
func (b *MPIJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MPIJobApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *MPIJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MPIJobApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *MPIJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MPIJobApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithFinalizers ¶
func (b *MPIJobApplyConfiguration) WithFinalizers(values ...string) *MPIJobApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*MPIJobApplyConfiguration) WithGenerateName ¶
func (b *MPIJobApplyConfiguration) WithGenerateName(value string) *MPIJobApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithGeneration ¶
func (b *MPIJobApplyConfiguration) WithGeneration(value int64) *MPIJobApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithKind ¶
func (b *MPIJobApplyConfiguration) WithKind(value string) *MPIJobApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithLabels ¶
func (b *MPIJobApplyConfiguration) WithLabels(entries map[string]string) *MPIJobApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*MPIJobApplyConfiguration) WithName ¶
func (b *MPIJobApplyConfiguration) WithName(value string) *MPIJobApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithNamespace ¶
func (b *MPIJobApplyConfiguration) WithNamespace(value string) *MPIJobApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithOwnerReferences ¶
func (b *MPIJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MPIJobApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*MPIJobApplyConfiguration) WithResourceVersion ¶
func (b *MPIJobApplyConfiguration) WithResourceVersion(value string) *MPIJobApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithSpec ¶
func (b *MPIJobApplyConfiguration) WithSpec(value *MPIJobSpecApplyConfiguration) *MPIJobApplyConfiguration
WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithStatus ¶
func (b *MPIJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *MPIJobApplyConfiguration
WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.
func (*MPIJobApplyConfiguration) WithUID ¶
func (b *MPIJobApplyConfiguration) WithUID(value types.UID) *MPIJobApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type MPIJobSpecApplyConfiguration ¶
type MPIJobSpecApplyConfiguration struct { SlotsPerWorker *int32 `json:"slotsPerWorker,omitempty"` CleanPodPolicy *v1.CleanPodPolicy `json:"cleanPodPolicy,omitempty"` MPIReplicaSpecs map[v1.ReplicaType]*v1.ReplicaSpec `json:"mpiReplicaSpecs,omitempty"` MainContainer *string `json:"mainContainer,omitempty"` RunPolicy *RunPolicyApplyConfiguration `json:"runPolicy,omitempty"` }
MPIJobSpecApplyConfiguration represents a declarative configuration of the MPIJobSpec type for use with apply.
func MPIJobSpec ¶
func MPIJobSpec() *MPIJobSpecApplyConfiguration
MPIJobSpecApplyConfiguration constructs a declarative configuration of the MPIJobSpec type for use with apply.
func (*MPIJobSpecApplyConfiguration) WithCleanPodPolicy ¶
func (b *MPIJobSpecApplyConfiguration) WithCleanPodPolicy(value v1.CleanPodPolicy) *MPIJobSpecApplyConfiguration
WithCleanPodPolicy sets the CleanPodPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CleanPodPolicy field is set to the value of the last call.
func (*MPIJobSpecApplyConfiguration) WithMPIReplicaSpecs ¶
func (b *MPIJobSpecApplyConfiguration) WithMPIReplicaSpecs(entries map[v1.ReplicaType]*v1.ReplicaSpec) *MPIJobSpecApplyConfiguration
WithMPIReplicaSpecs puts the entries into the MPIReplicaSpecs field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the MPIReplicaSpecs field, overwriting an existing map entries in MPIReplicaSpecs field with the same key.
func (*MPIJobSpecApplyConfiguration) WithMainContainer ¶
func (b *MPIJobSpecApplyConfiguration) WithMainContainer(value string) *MPIJobSpecApplyConfiguration
WithMainContainer sets the MainContainer field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MainContainer field is set to the value of the last call.
func (*MPIJobSpecApplyConfiguration) WithRunPolicy ¶
func (b *MPIJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *MPIJobSpecApplyConfiguration
WithRunPolicy sets the RunPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RunPolicy field is set to the value of the last call.
func (*MPIJobSpecApplyConfiguration) WithSlotsPerWorker ¶
func (b *MPIJobSpecApplyConfiguration) WithSlotsPerWorker(value int32) *MPIJobSpecApplyConfiguration
WithSlotsPerWorker sets the SlotsPerWorker field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SlotsPerWorker field is set to the value of the last call.
type PaddleElasticPolicyApplyConfiguration ¶
type PaddleElasticPolicyApplyConfiguration struct { MinReplicas *int32 `json:"minReplicas,omitempty"` MaxReplicas *int32 `json:"maxReplicas,omitempty"` MaxRestarts *int32 `json:"maxRestarts,omitempty"` Metrics []v2.MetricSpec `json:"metrics,omitempty"` }
PaddleElasticPolicyApplyConfiguration represents a declarative configuration of the PaddleElasticPolicy type for use with apply.
func PaddleElasticPolicy ¶
func PaddleElasticPolicy() *PaddleElasticPolicyApplyConfiguration
PaddleElasticPolicyApplyConfiguration constructs a declarative configuration of the PaddleElasticPolicy type for use with apply.
func (*PaddleElasticPolicyApplyConfiguration) WithMaxReplicas ¶
func (b *PaddleElasticPolicyApplyConfiguration) WithMaxReplicas(value int32) *PaddleElasticPolicyApplyConfiguration
WithMaxReplicas sets the MaxReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxReplicas field is set to the value of the last call.
func (*PaddleElasticPolicyApplyConfiguration) WithMaxRestarts ¶
func (b *PaddleElasticPolicyApplyConfiguration) WithMaxRestarts(value int32) *PaddleElasticPolicyApplyConfiguration
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 (*PaddleElasticPolicyApplyConfiguration) WithMetrics ¶
func (b *PaddleElasticPolicyApplyConfiguration) WithMetrics(values ...v2.MetricSpec) *PaddleElasticPolicyApplyConfiguration
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 (*PaddleElasticPolicyApplyConfiguration) WithMinReplicas ¶
func (b *PaddleElasticPolicyApplyConfiguration) WithMinReplicas(value int32) *PaddleElasticPolicyApplyConfiguration
WithMinReplicas sets the MinReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinReplicas field is set to the value of the last call.
type PaddleJobApplyConfiguration ¶
type PaddleJobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *PaddleJobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
PaddleJobApplyConfiguration represents a declarative configuration of the PaddleJob type for use with apply.
func PaddleJob ¶
func PaddleJob(name, namespace string) *PaddleJobApplyConfiguration
PaddleJob constructs a declarative configuration of the PaddleJob type for use with apply.
func (*PaddleJobApplyConfiguration) GetName ¶
func (b *PaddleJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*PaddleJobApplyConfiguration) WithAPIVersion ¶
func (b *PaddleJobApplyConfiguration) WithAPIVersion(value string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithAnnotations ¶
func (b *PaddleJobApplyConfiguration) WithAnnotations(entries map[string]string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithCreationTimestamp ¶
func (b *PaddleJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *PaddleJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *PaddleJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithFinalizers ¶
func (b *PaddleJobApplyConfiguration) WithFinalizers(values ...string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithGenerateName ¶
func (b *PaddleJobApplyConfiguration) WithGenerateName(value string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithGeneration ¶
func (b *PaddleJobApplyConfiguration) WithGeneration(value int64) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithKind ¶
func (b *PaddleJobApplyConfiguration) WithKind(value string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithLabels ¶
func (b *PaddleJobApplyConfiguration) WithLabels(entries map[string]string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithName ¶
func (b *PaddleJobApplyConfiguration) WithName(value string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithNamespace ¶
func (b *PaddleJobApplyConfiguration) WithNamespace(value string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithOwnerReferences ¶
func (b *PaddleJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithResourceVersion ¶
func (b *PaddleJobApplyConfiguration) WithResourceVersion(value string) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithSpec ¶
func (b *PaddleJobApplyConfiguration) WithSpec(value *PaddleJobSpecApplyConfiguration) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithStatus ¶
func (b *PaddleJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *PaddleJobApplyConfiguration
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 (*PaddleJobApplyConfiguration) WithUID ¶
func (b *PaddleJobApplyConfiguration) WithUID(value types.UID) *PaddleJobApplyConfiguration
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 PaddleJobSpecApplyConfiguration ¶
type PaddleJobSpecApplyConfiguration struct { RunPolicy *RunPolicyApplyConfiguration `json:"runPolicy,omitempty"` ElasticPolicy *PaddleElasticPolicyApplyConfiguration `json:"elasticPolicy,omitempty"` PaddleReplicaSpecs map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec `json:"paddleReplicaSpecs,omitempty"` }
PaddleJobSpecApplyConfiguration represents a declarative configuration of the PaddleJobSpec type for use with apply.
func PaddleJobSpec ¶
func PaddleJobSpec() *PaddleJobSpecApplyConfiguration
PaddleJobSpecApplyConfiguration constructs a declarative configuration of the PaddleJobSpec type for use with apply.
func (*PaddleJobSpecApplyConfiguration) WithElasticPolicy ¶
func (b *PaddleJobSpecApplyConfiguration) WithElasticPolicy(value *PaddleElasticPolicyApplyConfiguration) *PaddleJobSpecApplyConfiguration
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 (*PaddleJobSpecApplyConfiguration) WithPaddleReplicaSpecs ¶
func (b *PaddleJobSpecApplyConfiguration) WithPaddleReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *PaddleJobSpecApplyConfiguration
WithPaddleReplicaSpecs puts the entries into the PaddleReplicaSpecs 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 PaddleReplicaSpecs field, overwriting an existing map entries in PaddleReplicaSpecs field with the same key.
func (*PaddleJobSpecApplyConfiguration) WithRunPolicy ¶
func (b *PaddleJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *PaddleJobSpecApplyConfiguration
WithRunPolicy sets the RunPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RunPolicy field is set to the value of the last call.
type PyTorchJobApplyConfiguration ¶
type PyTorchJobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *PyTorchJobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
PyTorchJobApplyConfiguration represents a declarative configuration of the PyTorchJob type for use with apply.
func PyTorchJob ¶
func PyTorchJob(name, namespace string) *PyTorchJobApplyConfiguration
PyTorchJob constructs a declarative configuration of the PyTorchJob type for use with apply.
func (*PyTorchJobApplyConfiguration) GetName ¶
func (b *PyTorchJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*PyTorchJobApplyConfiguration) WithAPIVersion ¶
func (b *PyTorchJobApplyConfiguration) WithAPIVersion(value string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithAnnotations ¶
func (b *PyTorchJobApplyConfiguration) WithAnnotations(entries map[string]string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithCreationTimestamp ¶
func (b *PyTorchJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *PyTorchJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *PyTorchJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithFinalizers ¶
func (b *PyTorchJobApplyConfiguration) WithFinalizers(values ...string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithGenerateName ¶
func (b *PyTorchJobApplyConfiguration) WithGenerateName(value string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithGeneration ¶
func (b *PyTorchJobApplyConfiguration) WithGeneration(value int64) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithKind ¶
func (b *PyTorchJobApplyConfiguration) WithKind(value string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithLabels ¶
func (b *PyTorchJobApplyConfiguration) WithLabels(entries map[string]string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithName ¶
func (b *PyTorchJobApplyConfiguration) WithName(value string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithNamespace ¶
func (b *PyTorchJobApplyConfiguration) WithNamespace(value string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithOwnerReferences ¶
func (b *PyTorchJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithResourceVersion ¶
func (b *PyTorchJobApplyConfiguration) WithResourceVersion(value string) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithSpec ¶
func (b *PyTorchJobApplyConfiguration) WithSpec(value *PyTorchJobSpecApplyConfiguration) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithStatus ¶
func (b *PyTorchJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *PyTorchJobApplyConfiguration
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 (*PyTorchJobApplyConfiguration) WithUID ¶
func (b *PyTorchJobApplyConfiguration) WithUID(value types.UID) *PyTorchJobApplyConfiguration
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 PyTorchJobSpecApplyConfiguration ¶
type PyTorchJobSpecApplyConfiguration struct { RunPolicy *RunPolicyApplyConfiguration `json:"runPolicy,omitempty"` ElasticPolicy *ElasticPolicyApplyConfiguration `json:"elasticPolicy,omitempty"` PyTorchReplicaSpecs map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec `json:"pytorchReplicaSpecs,omitempty"` NprocPerNode *string `json:"nprocPerNode,omitempty"` }
PyTorchJobSpecApplyConfiguration represents a declarative configuration of the PyTorchJobSpec type for use with apply.
func PyTorchJobSpec ¶
func PyTorchJobSpec() *PyTorchJobSpecApplyConfiguration
PyTorchJobSpecApplyConfiguration constructs a declarative configuration of the PyTorchJobSpec type for use with apply.
func (*PyTorchJobSpecApplyConfiguration) WithElasticPolicy ¶
func (b *PyTorchJobSpecApplyConfiguration) WithElasticPolicy(value *ElasticPolicyApplyConfiguration) *PyTorchJobSpecApplyConfiguration
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 (*PyTorchJobSpecApplyConfiguration) WithNprocPerNode ¶
func (b *PyTorchJobSpecApplyConfiguration) WithNprocPerNode(value string) *PyTorchJobSpecApplyConfiguration
WithNprocPerNode sets the NprocPerNode field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NprocPerNode field is set to the value of the last call.
func (*PyTorchJobSpecApplyConfiguration) WithPyTorchReplicaSpecs ¶
func (b *PyTorchJobSpecApplyConfiguration) WithPyTorchReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *PyTorchJobSpecApplyConfiguration
WithPyTorchReplicaSpecs puts the entries into the PyTorchReplicaSpecs 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 PyTorchReplicaSpecs field, overwriting an existing map entries in PyTorchReplicaSpecs field with the same key.
func (*PyTorchJobSpecApplyConfiguration) WithRunPolicy ¶
func (b *PyTorchJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *PyTorchJobSpecApplyConfiguration
WithRunPolicy sets the RunPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RunPolicy field is set to the value of the last call.
type RDZVConfApplyConfiguration ¶
type RDZVConfApplyConfiguration struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` }
RDZVConfApplyConfiguration represents a declarative configuration of the RDZVConf type for use with apply.
func RDZVConf ¶
func RDZVConf() *RDZVConfApplyConfiguration
RDZVConfApplyConfiguration constructs a declarative configuration of the RDZVConf type for use with apply.
func (*RDZVConfApplyConfiguration) WithKey ¶
func (b *RDZVConfApplyConfiguration) WithKey(value string) *RDZVConfApplyConfiguration
WithKey sets the Key field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Key field is set to the value of the last call.
func (*RDZVConfApplyConfiguration) WithValue ¶
func (b *RDZVConfApplyConfiguration) WithValue(value string) *RDZVConfApplyConfiguration
WithValue sets the Value field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Value field is set to the value of the last call.
type ReplicaSpecApplyConfiguration ¶
type ReplicaSpecApplyConfiguration struct { Replicas *int32 `json:"replicas,omitempty"` Template *v1.PodTemplateSpec `json:"template,omitempty"` RestartPolicy *kubefloworgv1.RestartPolicy `json:"restartPolicy,omitempty"` }
ReplicaSpecApplyConfiguration represents a declarative configuration of the ReplicaSpec type for use with apply.
func ReplicaSpec ¶
func ReplicaSpec() *ReplicaSpecApplyConfiguration
ReplicaSpecApplyConfiguration constructs a declarative configuration of the ReplicaSpec type for use with apply.
func (*ReplicaSpecApplyConfiguration) WithReplicas ¶
func (b *ReplicaSpecApplyConfiguration) WithReplicas(value int32) *ReplicaSpecApplyConfiguration
WithReplicas sets the Replicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Replicas field is set to the value of the last call.
func (*ReplicaSpecApplyConfiguration) WithRestartPolicy ¶
func (b *ReplicaSpecApplyConfiguration) WithRestartPolicy(value kubefloworgv1.RestartPolicy) *ReplicaSpecApplyConfiguration
WithRestartPolicy sets the RestartPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RestartPolicy field is set to the value of the last call.
func (*ReplicaSpecApplyConfiguration) WithTemplate ¶
func (b *ReplicaSpecApplyConfiguration) WithTemplate(value v1.PodTemplateSpec) *ReplicaSpecApplyConfiguration
WithTemplate sets the Template field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Template field is set to the value of the last call.
type ReplicaStatusApplyConfiguration ¶
type ReplicaStatusApplyConfiguration struct { Active *int32 `json:"active,omitempty"` Succeeded *int32 `json:"succeeded,omitempty"` Failed *int32 `json:"failed,omitempty"` LabelSelector *v1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"` Selector *string `json:"selector,omitempty"` }
ReplicaStatusApplyConfiguration represents a declarative configuration of the ReplicaStatus type for use with apply.
func ReplicaStatus ¶
func ReplicaStatus() *ReplicaStatusApplyConfiguration
ReplicaStatusApplyConfiguration constructs a declarative configuration of the ReplicaStatus type for use with apply.
func (*ReplicaStatusApplyConfiguration) WithActive ¶
func (b *ReplicaStatusApplyConfiguration) WithActive(value int32) *ReplicaStatusApplyConfiguration
WithActive sets the Active field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Active field is set to the value of the last call.
func (*ReplicaStatusApplyConfiguration) WithFailed ¶
func (b *ReplicaStatusApplyConfiguration) WithFailed(value int32) *ReplicaStatusApplyConfiguration
WithFailed sets the Failed field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Failed field is set to the value of the last call.
func (*ReplicaStatusApplyConfiguration) WithLabelSelector ¶
func (b *ReplicaStatusApplyConfiguration) WithLabelSelector(value *v1.LabelSelectorApplyConfiguration) *ReplicaStatusApplyConfiguration
WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LabelSelector field is set to the value of the last call.
func (*ReplicaStatusApplyConfiguration) WithSelector ¶
func (b *ReplicaStatusApplyConfiguration) WithSelector(value string) *ReplicaStatusApplyConfiguration
WithSelector sets the Selector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Selector field is set to the value of the last call.
func (*ReplicaStatusApplyConfiguration) WithSucceeded ¶
func (b *ReplicaStatusApplyConfiguration) WithSucceeded(value int32) *ReplicaStatusApplyConfiguration
WithSucceeded sets the Succeeded field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Succeeded field is set to the value of the last call.
type RunPolicyApplyConfiguration ¶
type RunPolicyApplyConfiguration struct { CleanPodPolicy *v1.CleanPodPolicy `json:"cleanPodPolicy,omitempty"` TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` BackoffLimit *int32 `json:"backoffLimit,omitempty"` SchedulingPolicy *SchedulingPolicyApplyConfiguration `json:"schedulingPolicy,omitempty"` Suspend *bool `json:"suspend,omitempty"` ManagedBy *string `json:"managedBy,omitempty"` }
RunPolicyApplyConfiguration represents a declarative configuration of the RunPolicy type for use with apply.
func RunPolicy ¶
func RunPolicy() *RunPolicyApplyConfiguration
RunPolicyApplyConfiguration constructs a declarative configuration of the RunPolicy type for use with apply.
func (*RunPolicyApplyConfiguration) WithActiveDeadlineSeconds ¶
func (b *RunPolicyApplyConfiguration) WithActiveDeadlineSeconds(value int64) *RunPolicyApplyConfiguration
WithActiveDeadlineSeconds sets the ActiveDeadlineSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ActiveDeadlineSeconds field is set to the value of the last call.
func (*RunPolicyApplyConfiguration) WithBackoffLimit ¶
func (b *RunPolicyApplyConfiguration) WithBackoffLimit(value int32) *RunPolicyApplyConfiguration
WithBackoffLimit sets the BackoffLimit field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the BackoffLimit field is set to the value of the last call.
func (*RunPolicyApplyConfiguration) WithCleanPodPolicy ¶
func (b *RunPolicyApplyConfiguration) WithCleanPodPolicy(value v1.CleanPodPolicy) *RunPolicyApplyConfiguration
WithCleanPodPolicy sets the CleanPodPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CleanPodPolicy field is set to the value of the last call.
func (*RunPolicyApplyConfiguration) WithManagedBy ¶
func (b *RunPolicyApplyConfiguration) WithManagedBy(value string) *RunPolicyApplyConfiguration
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 (*RunPolicyApplyConfiguration) WithSchedulingPolicy ¶
func (b *RunPolicyApplyConfiguration) WithSchedulingPolicy(value *SchedulingPolicyApplyConfiguration) *RunPolicyApplyConfiguration
WithSchedulingPolicy sets the SchedulingPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SchedulingPolicy field is set to the value of the last call.
func (*RunPolicyApplyConfiguration) WithSuspend ¶
func (b *RunPolicyApplyConfiguration) WithSuspend(value bool) *RunPolicyApplyConfiguration
WithSuspend sets the Suspend field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Suspend field is set to the value of the last call.
func (*RunPolicyApplyConfiguration) WithTTLSecondsAfterFinished ¶
func (b *RunPolicyApplyConfiguration) WithTTLSecondsAfterFinished(value int32) *RunPolicyApplyConfiguration
WithTTLSecondsAfterFinished sets the TTLSecondsAfterFinished field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TTLSecondsAfterFinished field is set to the value of the last call.
type SchedulingPolicyApplyConfiguration ¶
type SchedulingPolicyApplyConfiguration struct { MinAvailable *int32 `json:"minAvailable,omitempty"` Queue *string `json:"queue,omitempty"` MinResources *map[v1.ResourceName]resource.Quantity `json:"minResources,omitempty"` PriorityClass *string `json:"priorityClass,omitempty"` ScheduleTimeoutSeconds *int32 `json:"scheduleTimeoutSeconds,omitempty"` }
SchedulingPolicyApplyConfiguration represents a declarative configuration of the SchedulingPolicy type for use with apply.
func SchedulingPolicy ¶
func SchedulingPolicy() *SchedulingPolicyApplyConfiguration
SchedulingPolicyApplyConfiguration constructs a declarative configuration of the SchedulingPolicy type for use with apply.
func (*SchedulingPolicyApplyConfiguration) WithMinAvailable ¶
func (b *SchedulingPolicyApplyConfiguration) WithMinAvailable(value int32) *SchedulingPolicyApplyConfiguration
WithMinAvailable sets the MinAvailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinAvailable field is set to the value of the last call.
func (*SchedulingPolicyApplyConfiguration) WithMinResources ¶
func (b *SchedulingPolicyApplyConfiguration) WithMinResources(value map[v1.ResourceName]resource.Quantity) *SchedulingPolicyApplyConfiguration
WithMinResources sets the MinResources field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinResources field is set to the value of the last call.
func (*SchedulingPolicyApplyConfiguration) WithPriorityClass ¶
func (b *SchedulingPolicyApplyConfiguration) WithPriorityClass(value string) *SchedulingPolicyApplyConfiguration
WithPriorityClass sets the PriorityClass field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PriorityClass field is set to the value of the last call.
func (*SchedulingPolicyApplyConfiguration) WithQueue ¶
func (b *SchedulingPolicyApplyConfiguration) WithQueue(value string) *SchedulingPolicyApplyConfiguration
WithQueue sets the Queue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Queue field is set to the value of the last call.
func (*SchedulingPolicyApplyConfiguration) WithScheduleTimeoutSeconds ¶
func (b *SchedulingPolicyApplyConfiguration) WithScheduleTimeoutSeconds(value int32) *SchedulingPolicyApplyConfiguration
WithScheduleTimeoutSeconds sets the ScheduleTimeoutSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ScheduleTimeoutSeconds field is set to the value of the last call.
type TFJobApplyConfiguration ¶
type TFJobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *TFJobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
TFJobApplyConfiguration represents a declarative configuration of the TFJob type for use with apply.
func TFJob ¶
func TFJob(name, namespace string) *TFJobApplyConfiguration
TFJob constructs a declarative configuration of the TFJob type for use with apply.
func (*TFJobApplyConfiguration) GetName ¶
func (b *TFJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*TFJobApplyConfiguration) WithAPIVersion ¶
func (b *TFJobApplyConfiguration) WithAPIVersion(value string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithAnnotations ¶
func (b *TFJobApplyConfiguration) WithAnnotations(entries map[string]string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithCreationTimestamp ¶
func (b *TFJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *TFJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *TFJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithFinalizers ¶
func (b *TFJobApplyConfiguration) WithFinalizers(values ...string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithGenerateName ¶
func (b *TFJobApplyConfiguration) WithGenerateName(value string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithGeneration ¶
func (b *TFJobApplyConfiguration) WithGeneration(value int64) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithKind ¶
func (b *TFJobApplyConfiguration) WithKind(value string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithLabels ¶
func (b *TFJobApplyConfiguration) WithLabels(entries map[string]string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithName ¶
func (b *TFJobApplyConfiguration) WithName(value string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithNamespace ¶
func (b *TFJobApplyConfiguration) WithNamespace(value string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithOwnerReferences ¶
func (b *TFJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithResourceVersion ¶
func (b *TFJobApplyConfiguration) WithResourceVersion(value string) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithSpec ¶
func (b *TFJobApplyConfiguration) WithSpec(value *TFJobSpecApplyConfiguration) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithStatus ¶
func (b *TFJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *TFJobApplyConfiguration
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 (*TFJobApplyConfiguration) WithUID ¶
func (b *TFJobApplyConfiguration) WithUID(value types.UID) *TFJobApplyConfiguration
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 TFJobSpecApplyConfiguration ¶
type TFJobSpecApplyConfiguration struct { RunPolicy *RunPolicyApplyConfiguration `json:"runPolicy,omitempty"` SuccessPolicy *kubefloworgv1.SuccessPolicy `json:"successPolicy,omitempty"` TFReplicaSpecs map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec `json:"tfReplicaSpecs,omitempty"` EnableDynamicWorker *bool `json:"enableDynamicWorker,omitempty"` }
TFJobSpecApplyConfiguration represents a declarative configuration of the TFJobSpec type for use with apply.
func TFJobSpec ¶
func TFJobSpec() *TFJobSpecApplyConfiguration
TFJobSpecApplyConfiguration constructs a declarative configuration of the TFJobSpec type for use with apply.
func (*TFJobSpecApplyConfiguration) WithEnableDynamicWorker ¶
func (b *TFJobSpecApplyConfiguration) WithEnableDynamicWorker(value bool) *TFJobSpecApplyConfiguration
WithEnableDynamicWorker sets the EnableDynamicWorker field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the EnableDynamicWorker field is set to the value of the last call.
func (*TFJobSpecApplyConfiguration) WithRunPolicy ¶
func (b *TFJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *TFJobSpecApplyConfiguration
WithRunPolicy sets the RunPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RunPolicy field is set to the value of the last call.
func (*TFJobSpecApplyConfiguration) WithSuccessPolicy ¶
func (b *TFJobSpecApplyConfiguration) WithSuccessPolicy(value kubefloworgv1.SuccessPolicy) *TFJobSpecApplyConfiguration
WithSuccessPolicy sets the SuccessPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SuccessPolicy field is set to the value of the last call.
func (*TFJobSpecApplyConfiguration) WithTFReplicaSpecs ¶
func (b *TFJobSpecApplyConfiguration) WithTFReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *TFJobSpecApplyConfiguration
WithTFReplicaSpecs puts the entries into the TFReplicaSpecs 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 TFReplicaSpecs field, overwriting an existing map entries in TFReplicaSpecs field with the same key.
type XGBoostJobApplyConfiguration ¶
type XGBoostJobApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *XGBoostJobSpecApplyConfiguration `json:"spec,omitempty"` Status *JobStatusApplyConfiguration `json:"status,omitempty"` }
XGBoostJobApplyConfiguration represents a declarative configuration of the XGBoostJob type for use with apply.
func XGBoostJob ¶
func XGBoostJob(name, namespace string) *XGBoostJobApplyConfiguration
XGBoostJob constructs a declarative configuration of the XGBoostJob type for use with apply.
func (*XGBoostJobApplyConfiguration) GetName ¶
func (b *XGBoostJobApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*XGBoostJobApplyConfiguration) WithAPIVersion ¶
func (b *XGBoostJobApplyConfiguration) WithAPIVersion(value string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithAnnotations ¶
func (b *XGBoostJobApplyConfiguration) WithAnnotations(entries map[string]string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithCreationTimestamp ¶
func (b *XGBoostJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *XGBoostJobApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithDeletionTimestamp ¶
func (b *XGBoostJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithFinalizers ¶
func (b *XGBoostJobApplyConfiguration) WithFinalizers(values ...string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithGenerateName ¶
func (b *XGBoostJobApplyConfiguration) WithGenerateName(value string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithGeneration ¶
func (b *XGBoostJobApplyConfiguration) WithGeneration(value int64) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithKind ¶
func (b *XGBoostJobApplyConfiguration) WithKind(value string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithLabels ¶
func (b *XGBoostJobApplyConfiguration) WithLabels(entries map[string]string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithName ¶
func (b *XGBoostJobApplyConfiguration) WithName(value string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithNamespace ¶
func (b *XGBoostJobApplyConfiguration) WithNamespace(value string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithOwnerReferences ¶
func (b *XGBoostJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithResourceVersion ¶
func (b *XGBoostJobApplyConfiguration) WithResourceVersion(value string) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithSpec ¶
func (b *XGBoostJobApplyConfiguration) WithSpec(value *XGBoostJobSpecApplyConfiguration) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithStatus ¶
func (b *XGBoostJobApplyConfiguration) WithStatus(value *JobStatusApplyConfiguration) *XGBoostJobApplyConfiguration
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 (*XGBoostJobApplyConfiguration) WithUID ¶
func (b *XGBoostJobApplyConfiguration) WithUID(value types.UID) *XGBoostJobApplyConfiguration
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 XGBoostJobSpecApplyConfiguration ¶
type XGBoostJobSpecApplyConfiguration struct { RunPolicy *RunPolicyApplyConfiguration `json:"runPolicy,omitempty"` XGBReplicaSpecs map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec `json:"xgbReplicaSpecs,omitempty"` }
XGBoostJobSpecApplyConfiguration represents a declarative configuration of the XGBoostJobSpec type for use with apply.
func XGBoostJobSpec ¶
func XGBoostJobSpec() *XGBoostJobSpecApplyConfiguration
XGBoostJobSpecApplyConfiguration constructs a declarative configuration of the XGBoostJobSpec type for use with apply.
func (*XGBoostJobSpecApplyConfiguration) WithRunPolicy ¶
func (b *XGBoostJobSpecApplyConfiguration) WithRunPolicy(value *RunPolicyApplyConfiguration) *XGBoostJobSpecApplyConfiguration
WithRunPolicy sets the RunPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RunPolicy field is set to the value of the last call.
func (*XGBoostJobSpecApplyConfiguration) WithXGBReplicaSpecs ¶
func (b *XGBoostJobSpecApplyConfiguration) WithXGBReplicaSpecs(entries map[kubefloworgv1.ReplicaType]*kubefloworgv1.ReplicaSpec) *XGBoostJobSpecApplyConfiguration
WithXGBReplicaSpecs puts the entries into the XGBReplicaSpecs 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 XGBReplicaSpecs field, overwriting an existing map entries in XGBReplicaSpecs field with the same key.
Source Files
¶
- elasticpolicy.go
- jaxjob.go
- jaxjobspec.go
- jobcondition.go
- jobstatus.go
- mpijob.go
- mpijobspec.go
- paddleelasticpolicy.go
- paddlejob.go
- paddlejobspec.go
- pytorchjob.go
- pytorchjobspec.go
- rdzvconf.go
- replicaspec.go
- replicastatus.go
- runpolicy.go
- schedulingpolicy.go
- tfjob.go
- tfjobspec.go
- xgboostjob.go
- xgboostjobspec.go