diff --git a/pkg/apis/kubeflow/v2beta1/zz_generated.deepcopy.go b/pkg/apis/kubeflow/v2beta1/zz_generated.deepcopy.go index 058f0b536..1036b571b 100644 --- a/pkg/apis/kubeflow/v2beta1/zz_generated.deepcopy.go +++ b/pkg/apis/kubeflow/v2beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/internal/internal.go b/pkg/client/applyconfiguration/internal/internal.go index cfa8ded1d..d4bae37d2 100644 --- a/pkg/client/applyconfiguration/internal/internal.go +++ b/pkg/client/applyconfiguration/internal/internal.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/jobcondition.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/jobcondition.go index b8d466dcd..dbedbdd32 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/jobcondition.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/jobcondition.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/jobstatus.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/jobstatus.go index 01d751fed..eb82966a2 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/jobstatus.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/jobstatus.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijob.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijob.go index 1318c6293..33440432f 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijob.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijob.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijobspec.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijobspec.go index fdd7f88a6..c569d5330 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijobspec.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/mpijobspec.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,6 +24,7 @@ import ( // with apply. type MPIJobSpecApplyConfiguration struct { SlotsPerWorker *int32 `json:"slotsPerWorker,omitempty"` + RunLauncherAsWorker *bool `json:"runLauncherAsWorker,omitempty"` RunPolicy *RunPolicyApplyConfiguration `json:"runPolicy,omitempty"` MPIReplicaSpecs map[kubeflowv2beta1.MPIReplicaType]*kubeflowv2beta1.ReplicaSpec `json:"mpiReplicaSpecs,omitempty"` SSHAuthMountPath *string `json:"sshAuthMountPath,omitempty"` @@ -45,6 +46,14 @@ func (b *MPIJobSpecApplyConfiguration) WithSlotsPerWorker(value int32) *MPIJobSp return b } +// WithRunLauncherAsWorker sets the RunLauncherAsWorker field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the RunLauncherAsWorker field is set to the value of the last call. +func (b *MPIJobSpecApplyConfiguration) WithRunLauncherAsWorker(value bool) *MPIJobSpecApplyConfiguration { + b.RunLauncherAsWorker = &value + return b +} + // 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. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/replicaspec.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/replicaspec.go index 3c9e7ab1b..fd66213c5 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/replicaspec.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/replicaspec.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/replicastatus.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/replicastatus.go index f71027fce..8329af227 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/replicastatus.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/replicastatus.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/runpolicy.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/runpolicy.go index 6cf0b0c14..5370cddbb 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/runpolicy.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/runpolicy.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/kubeflow/v2beta1/schedulingpolicy.go b/pkg/client/applyconfiguration/kubeflow/v2beta1/schedulingpolicy.go index e8fe8ef86..31efb5cc5 100644 --- a/pkg/client/applyconfiguration/kubeflow/v2beta1/schedulingpolicy.go +++ b/pkg/client/applyconfiguration/kubeflow/v2beta1/schedulingpolicy.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/applyconfiguration/utils.go b/pkg/client/applyconfiguration/utils.go index cf6806987..f9766680e 100644 --- a/pkg/client/applyconfiguration/utils.go +++ b/pkg/client/applyconfiguration/utils.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go index 6ff1608f3..ddcb299fa 100644 --- a/pkg/client/clientset/versioned/clientset.go +++ b/pkg/client/clientset/versioned/clientset.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go index bfb270520..1acd32dba 100644 --- a/pkg/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/client/clientset/versioned/fake/clientset_generated.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/fake/doc.go b/pkg/client/clientset/versioned/fake/doc.go index 5053e0dc7..90b7845dc 100644 --- a/pkg/client/clientset/versioned/fake/doc.go +++ b/pkg/client/clientset/versioned/fake/doc.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/fake/register.go b/pkg/client/clientset/versioned/fake/register.go index df0645b45..ecb01d82c 100644 --- a/pkg/client/clientset/versioned/fake/register.go +++ b/pkg/client/clientset/versioned/fake/register.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/scheme/doc.go b/pkg/client/clientset/versioned/scheme/doc.go index 190ec2c6f..a9f49ab60 100644 --- a/pkg/client/clientset/versioned/scheme/doc.go +++ b/pkg/client/clientset/versioned/scheme/doc.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/scheme/register.go b/pkg/client/clientset/versioned/scheme/register.go index 0efd654b4..0c28704b1 100644 --- a/pkg/client/clientset/versioned/scheme/register.go +++ b/pkg/client/clientset/versioned/scheme/register.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/doc.go b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/doc.go index b26d69e16..9be95f17e 100644 --- a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/doc.go +++ b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/doc.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/doc.go b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/doc.go index 14877099f..5f1ad32d4 100644 --- a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/doc.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_kubeflow_client.go b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_kubeflow_client.go index d73086bab..7b07f3353 100644 --- a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_kubeflow_client.go +++ b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_kubeflow_client.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_mpijob.go b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_mpijob.go index e728f4eca..013273a9f 100644 --- a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_mpijob.go +++ b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_mpijob.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/generated_expansion.go b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/generated_expansion.go index 50bd2a0c5..54b586cb8 100644 --- a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/generated_expansion.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/kubeflow_client.go b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/kubeflow_client.go index c00a20370..45007d556 100644 --- a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/kubeflow_client.go +++ b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/kubeflow_client.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/mpijob.go b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/mpijob.go index b439ff4ce..ebed3b217 100644 --- a/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/mpijob.go +++ b/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/mpijob.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/factory.go b/pkg/client/informers/externalversions/factory.go index 6cd87526a..71d0f7929 100644 --- a/pkg/client/informers/externalversions/factory.go +++ b/pkg/client/informers/externalversions/factory.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/generic.go b/pkg/client/informers/externalversions/generic.go index 1ff030bac..31bb1e44e 100644 --- a/pkg/client/informers/externalversions/generic.go +++ b/pkg/client/informers/externalversions/generic.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go index d7b361557..3e513389e 100644 --- a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/kubeflow/interface.go b/pkg/client/informers/externalversions/kubeflow/interface.go index 1b2045c4a..bc3bff2ba 100644 --- a/pkg/client/informers/externalversions/kubeflow/interface.go +++ b/pkg/client/informers/externalversions/kubeflow/interface.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/kubeflow/v2beta1/interface.go b/pkg/client/informers/externalversions/kubeflow/v2beta1/interface.go index 77b959c38..3ca58b952 100644 --- a/pkg/client/informers/externalversions/kubeflow/v2beta1/interface.go +++ b/pkg/client/informers/externalversions/kubeflow/v2beta1/interface.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/kubeflow/v2beta1/mpijob.go b/pkg/client/informers/externalversions/kubeflow/v2beta1/mpijob.go index ae57602d8..5237102f0 100644 --- a/pkg/client/informers/externalversions/kubeflow/v2beta1/mpijob.go +++ b/pkg/client/informers/externalversions/kubeflow/v2beta1/mpijob.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/listers/kubeflow/v2beta1/expansion_generated.go b/pkg/client/listers/kubeflow/v2beta1/expansion_generated.go index 98d80fa53..f95269f8b 100644 --- a/pkg/client/listers/kubeflow/v2beta1/expansion_generated.go +++ b/pkg/client/listers/kubeflow/v2beta1/expansion_generated.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/client/listers/kubeflow/v2beta1/mpijob.go b/pkg/client/listers/kubeflow/v2beta1/mpijob.go index d256251c1..da4457239 100644 --- a/pkg/client/listers/kubeflow/v2beta1/mpijob.go +++ b/pkg/client/listers/kubeflow/v2beta1/mpijob.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Kubeflow Authors. +// Copyright 2024 The Kubeflow Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.