-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KEP-2170: Add TrainJob and TrainingRuntime APIs (#2223)
* KEP-2170: Add TrainJob and TrainingRuntime APIs Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Fix TrainJobList Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Register APIs with scheme Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Add SchemeGroupVersion Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Fix TrainingRuntimeSpec omitempty Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Generate manifests only for v1 Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Fix pointers for APIs Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Run code-gen Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Use pointer for MPIImplementation Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Update the JobSetTemplate API Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Rename PodGroupPolicy and MLPolicy APIs Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * Update comments Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> --------- Signed-off-by: Andrey Velichkevich <andrey.velichkevich@gmail.com>
- Loading branch information
1 parent
25b8a5b
commit 181191e
Showing
7 changed files
with
1,326 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
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. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// Package v2alpha1 contains API Schema definitions for the kubeflow.org v2alpha1 API group | ||
// +kubebuilder:object:generate=true | ||
// +groupName=kubeflow.org | ||
package v2alpha1 | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
"sigs.k8s.io/controller-runtime/pkg/scheme" | ||
) | ||
|
||
var ( | ||
// GroupVersion is group version used to register these objects. | ||
GroupVersion = schema.GroupVersion{Group: "kubeflow.org", Version: "v2alpha1"} | ||
|
||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme. | ||
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} | ||
|
||
// SchemeGroupVersion is alias to GroupVersion for client-go libraries. | ||
SchemeGroupVersion = GroupVersion | ||
|
||
// AddToScheme adds the types in this group-version to the given scheme. | ||
AddToScheme = SchemeBuilder.AddToScheme | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.