mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-09-24 00:31:27 +00:00
* chore: update Makefile and go.mod Signed-off-by: Electronic-Waste <[email protected]> * chore: make generate. Signed-off-by: Electronic-Waste <[email protected]> * chore(ci): update k8s version. Signed-off-by: Electronic-Waste <[email protected]> * chore(trail): Update UTs to remove version related logic. Signed-off-by: Electronic-Waste <[email protected]> * fix(ci): update setup-minkube version. Signed-off-by: Electronic-Waste <[email protected]> --------- Signed-off-by: Electronic-Waste <[email protected]>
97 lines
5.0 KiB
Go
97 lines
5.0 KiB
Go
/*
|
|
Copyright 2022 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 (
|
|
v1beta1 "github.com/kubeflow/katib/pkg/apis/controller/experiments/v1beta1"
|
|
suggestionsv1beta1 "github.com/kubeflow/katib/pkg/apis/controller/suggestions/v1beta1"
|
|
trialsv1beta1 "github.com/kubeflow/katib/pkg/apis/controller/trials/v1beta1"
|
|
experimentsv1beta1 "github.com/kubeflow/katib/pkg/client/controller/applyconfiguration/experiments/v1beta1"
|
|
internal "github.com/kubeflow/katib/pkg/client/controller/applyconfiguration/internal"
|
|
applyconfigurationsuggestionsv1beta1 "github.com/kubeflow/katib/pkg/client/controller/applyconfiguration/suggestions/v1beta1"
|
|
applyconfigurationtrialsv1beta1 "github.com/kubeflow/katib/pkg/client/controller/applyconfiguration/trials/v1beta1"
|
|
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=experiment.kubeflow.org, Version=v1beta1
|
|
case v1beta1.SchemeGroupVersion.WithKind("ConfigMapSource"):
|
|
return &experimentsv1beta1.ConfigMapSourceApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("Experiment"):
|
|
return &experimentsv1beta1.ExperimentApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("ExperimentCondition"):
|
|
return &experimentsv1beta1.ExperimentConditionApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("ExperimentSpec"):
|
|
return &experimentsv1beta1.ExperimentSpecApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("ExperimentStatus"):
|
|
return &experimentsv1beta1.ExperimentStatusApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("FeasibleSpace"):
|
|
return &experimentsv1beta1.FeasibleSpaceApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("GraphConfig"):
|
|
return &experimentsv1beta1.GraphConfigApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("NasConfig"):
|
|
return &experimentsv1beta1.NasConfigApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("Operation"):
|
|
return &experimentsv1beta1.OperationApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("OptimalTrial"):
|
|
return &experimentsv1beta1.OptimalTrialApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("ParameterSpec"):
|
|
return &experimentsv1beta1.ParameterSpecApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("TrialParameterSpec"):
|
|
return &experimentsv1beta1.TrialParameterSpecApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("TrialSource"):
|
|
return &experimentsv1beta1.TrialSourceApplyConfiguration{}
|
|
case v1beta1.SchemeGroupVersion.WithKind("TrialTemplate"):
|
|
return &experimentsv1beta1.TrialTemplateApplyConfiguration{}
|
|
|
|
// Group=suggestion.kubeflow.org, Version=v1beta1
|
|
case suggestionsv1beta1.SchemeGroupVersion.WithKind("Suggestion"):
|
|
return &applyconfigurationsuggestionsv1beta1.SuggestionApplyConfiguration{}
|
|
case suggestionsv1beta1.SchemeGroupVersion.WithKind("SuggestionCondition"):
|
|
return &applyconfigurationsuggestionsv1beta1.SuggestionConditionApplyConfiguration{}
|
|
case suggestionsv1beta1.SchemeGroupVersion.WithKind("SuggestionSpec"):
|
|
return &applyconfigurationsuggestionsv1beta1.SuggestionSpecApplyConfiguration{}
|
|
case suggestionsv1beta1.SchemeGroupVersion.WithKind("SuggestionStatus"):
|
|
return &applyconfigurationsuggestionsv1beta1.SuggestionStatusApplyConfiguration{}
|
|
case suggestionsv1beta1.SchemeGroupVersion.WithKind("TrialAssignment"):
|
|
return &applyconfigurationsuggestionsv1beta1.TrialAssignmentApplyConfiguration{}
|
|
|
|
// Group=trial.kubeflow.org, Version=v1beta1
|
|
case trialsv1beta1.SchemeGroupVersion.WithKind("Trial"):
|
|
return &applyconfigurationtrialsv1beta1.TrialApplyConfiguration{}
|
|
case trialsv1beta1.SchemeGroupVersion.WithKind("TrialCondition"):
|
|
return &applyconfigurationtrialsv1beta1.TrialConditionApplyConfiguration{}
|
|
case trialsv1beta1.SchemeGroupVersion.WithKind("TrialSpec"):
|
|
return &applyconfigurationtrialsv1beta1.TrialSpecApplyConfiguration{}
|
|
case trialsv1beta1.SchemeGroupVersion.WithKind("TrialStatus"):
|
|
return &applyconfigurationtrialsv1beta1.TrialStatusApplyConfiguration{}
|
|
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
|
|
return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
|
|
}
|