mirror of
https://github.com/hanzo-ml/trainer.git
synced 2026-09-24 00:31:34 +00:00
* chore(scripts): add copyright boilerplate verification system Signed-off-by: tariq-hasan <[email protected]> * chore(ci): add boilerplate verification to CI pipeline Signed-off-by: tariq-hasan <[email protected]> * chore: regenerate files with year-less copyright headers Signed-off-by: tariq-hasan <[email protected]> * refactor(boilerplate): simplify verification logic Signed-off-by: tariq-hasan <[email protected]> * chore(boilerplate): add missing copyright headers Signed-off-by: tariq-hasan <[email protected]> * ci(boilerplate): move verifier to code-quality workflow and run unit tests Signed-off-by: tariq-hasan <[email protected]> * feat(boilerplate): accept license headers with any year and remove year validation logic Signed-off-by: tariq-hasan <[email protected]> * feat(boilerplate): add copyright headers to generated Python API Signed-off-by: tariq-hasan <[email protected]> * refactor(boilerplate): use block-comment header for generated Go files Signed-off-by: tariq-hasan <[email protected]> * feat(boilerplate): verify copyright headers in Rust files Signed-off-by: tariq-hasan <[email protected]> --------- Signed-off-by: tariq-hasan <[email protected]>
109 lines
5.5 KiB
Go
Generated
109 lines
5.5 KiB
Go
Generated
/*
|
|
Copyright 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.
|
|
*/
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package applyconfiguration
|
|
|
|
import (
|
|
v1alpha1 "github.com/kubeflow/trainer/v2/pkg/apis/trainer/v1alpha1"
|
|
internal "github.com/kubeflow/trainer/v2/pkg/client/applyconfiguration/internal"
|
|
trainerv1alpha1 "github.com/kubeflow/trainer/v2/pkg/client/applyconfiguration/trainer/v1alpha1"
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
|
)
|
|
|
|
// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
|
|
// apply configuration type exists for the given GroupVersionKind.
|
|
func ForKind(kind schema.GroupVersionKind) interface{} {
|
|
switch kind {
|
|
// Group=trainer.kubeflow.org, Version=v1alpha1
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ClusterTrainingRuntime"):
|
|
return &trainerv1alpha1.ClusterTrainingRuntimeApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ContainerPatch"):
|
|
return &trainerv1alpha1.ContainerPatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("CoschedulingPodGroupPolicySource"):
|
|
return &trainerv1alpha1.CoschedulingPodGroupPolicySourceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("DatasetInitializer"):
|
|
return &trainerv1alpha1.DatasetInitializerApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("FluxMLPolicySource"):
|
|
return &trainerv1alpha1.FluxMLPolicySourceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("Initializer"):
|
|
return &trainerv1alpha1.InitializerApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("JobSetSpecPatch"):
|
|
return &trainerv1alpha1.JobSetSpecPatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("JobSetTemplatePatch"):
|
|
return &trainerv1alpha1.JobSetTemplatePatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("JobSetTemplateSpec"):
|
|
return &trainerv1alpha1.JobSetTemplateSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("JobSpecPatch"):
|
|
return &trainerv1alpha1.JobSpecPatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("JobStatus"):
|
|
return &trainerv1alpha1.JobStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("JobTemplatePatch"):
|
|
return &trainerv1alpha1.JobTemplatePatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("Metric"):
|
|
return &trainerv1alpha1.MetricApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("MLPolicy"):
|
|
return &trainerv1alpha1.MLPolicyApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("MLPolicySource"):
|
|
return &trainerv1alpha1.MLPolicySourceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ModelInitializer"):
|
|
return &trainerv1alpha1.ModelInitializerApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("MPIMLPolicySource"):
|
|
return &trainerv1alpha1.MPIMLPolicySourceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("PodGroupPolicy"):
|
|
return &trainerv1alpha1.PodGroupPolicyApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("PodGroupPolicySource"):
|
|
return &trainerv1alpha1.PodGroupPolicySourceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("PodSpecPatch"):
|
|
return &trainerv1alpha1.PodSpecPatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("PodTemplatePatch"):
|
|
return &trainerv1alpha1.PodTemplatePatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ReplicatedJobPatch"):
|
|
return &trainerv1alpha1.ReplicatedJobPatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("RuntimePatch"):
|
|
return &trainerv1alpha1.RuntimePatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("RuntimeRef"):
|
|
return &trainerv1alpha1.RuntimeRefApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("Trainer"):
|
|
return &trainerv1alpha1.TrainerApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("TrainerStatus"):
|
|
return &trainerv1alpha1.TrainerStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("TrainingRuntime"):
|
|
return &trainerv1alpha1.TrainingRuntimeApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("TrainingRuntimeSpec"):
|
|
return &trainerv1alpha1.TrainingRuntimeSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("TrainingRuntimeSpecPatch"):
|
|
return &trainerv1alpha1.TrainingRuntimeSpecPatchApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("TrainJob"):
|
|
return &trainerv1alpha1.TrainJobApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("TrainJobSpec"):
|
|
return &trainerv1alpha1.TrainJobSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("TrainJobStatus"):
|
|
return &trainerv1alpha1.TrainJobStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("VolcanoPodGroupPolicySource"):
|
|
return &trainerv1alpha1.VolcanoPodGroupPolicySourceApplyConfiguration{}
|
|
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
|
|
return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
|
|
}
|