MCPcopy
hub / github.com/koderover/zadig / FindResourceRequestType

Method FindResourceRequestType

pkg/setting/types.go:51–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (spec RequestSpec) FindResourceRequestType() Request {
52 if spec.GpuLimit != "" {
53 return DefineRequest
54 }
55
56 if spec.Equal(HighRequestSpec) {
57 return HighRequest
58 }
59
60 if spec.Equal(MediumRequestSpec) {
61 return MediumRequest
62 }
63
64 if spec.Equal(LowRequestSpec) {
65 return LowRequest
66 }
67
68 if spec.Equal(DefaultRequestSpec) {
69 return DefaultRequest
70 }
71
72 if spec.Equal(MinRequestSpec) {
73 return MinRequest
74 }
75
76 return DefineRequest
77}
78
79var (
80 // HighRequestSpec 16 CPU 32 G

Callers 1

Calls 1

EqualMethod · 0.95

Tested by

no test coverage detected