forked from llm-d/llm-d-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.go
More file actions
52 lines (47 loc) · 2.5 KB
/
Copy pathutils.go
File metadata and controls
52 lines (47 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package applyconfiguration
import (
v1alpha2 "github.com/llm-d/llm-d-router/apix/v1alpha2"
apixv1alpha2 "github.com/llm-d/llm-d-router/client-go/applyconfiguration/apix/v1alpha2"
internal "github.com/llm-d/llm-d-router/client-go/applyconfiguration/internal"
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=llm-d.ai, Version=v1alpha2
case v1alpha2.SchemeGroupVersion.WithKind("InferenceModelRewrite"):
return &apixv1alpha2.InferenceModelRewriteApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("InferenceModelRewriteRule"):
return &apixv1alpha2.InferenceModelRewriteRuleApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("InferenceModelRewriteSpec"):
return &apixv1alpha2.InferenceModelRewriteSpecApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("InferenceModelRewriteStatus"):
return &apixv1alpha2.InferenceModelRewriteStatusApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("InferenceObjective"):
return &apixv1alpha2.InferenceObjectiveApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("InferenceObjectiveSpec"):
return &apixv1alpha2.InferenceObjectiveSpecApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("InferenceObjectiveStatus"):
return &apixv1alpha2.InferenceObjectiveStatusApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("Match"):
return &apixv1alpha2.MatchApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("ModelMatch"):
return &apixv1alpha2.ModelMatchApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("PoolObjectReference"):
return &apixv1alpha2.PoolObjectReferenceApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("SLORangeMs"):
return &apixv1alpha2.SLORangeMsApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("SLOSpec"):
return &apixv1alpha2.SLOSpecApplyConfiguration{}
case v1alpha2.SchemeGroupVersion.WithKind("TargetModel"):
return &apixv1alpha2.TargetModelApplyConfiguration{}
}
return nil
}
func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
}