@@ -36,54 +36,9 @@ func makeDefaultInstanceTypePrice(amount string, currencyCode string) currency.A
3636 return instanceTypePrice
3737}
3838
39- func (c * SFCClient ) GetInstanceTypes (ctx context.Context , args v1.GetInstanceTypeArgs ) ([]v1.InstanceType , error ) {
40- c .logger .Debug (ctx , "sfc: GetInstanceTypes start" ,
41- v1 .LogField ("location" , c .location ),
42- v1 .LogField ("args" , fmt .Sprintf ("%+v" , args )),
43- )
44-
45- // Fetch all available zones
46- includeUnavailable := false
47- zones , err := c .getZones (ctx , includeUnavailable )
48- if err != nil {
49- return nil , err
50- }
51-
52- c .logger .Debug (ctx , "sfc: GetInstanceTypes zones list" ,
53- v1 .LogField ("zone count" , len (zones )),
54- )
55-
56- instanceTypes := make ([]v1.InstanceType , 0 , len (zones ))
57- for _ , zone := range zones {
58- gpuType := strings .ToLower (string (zone .HardwareType ))
59-
60- if ! gpuTypeIsAllowed (gpuType ) {
61- c .logger .Debug (ctx , "sfc: GetInstanceTypes gpu type not allowed" ,
62- v1 .LogField ("gpuType" , gpuType ),
63- )
64- continue
65- }
66-
67- instanceType , err := getInstanceTypeForZone (zone )
68- if err != nil {
69- return nil , err
70- }
71-
72- if ! v1 .IsSelectedByArgs (* instanceType , args ) {
73- c .logger .Debug (ctx , "sfc: GetInstanceTypes instance type not selected by args" ,
74- v1 .LogField ("instanceType" , instanceType .Type ),
75- )
76- continue
77- }
78-
79- instanceTypes = append (instanceTypes , * instanceType )
80- }
81-
82- c .logger .Debug (ctx , "sfc: GetInstanceTypes end" ,
83- v1 .LogField ("instanceType count" , len (instanceTypes )),
84- )
85-
86- return instanceTypes , nil
39+ func (c * SFCClient ) GetInstanceTypes (_ context.Context , _ v1.GetInstanceTypeArgs ) ([]v1.InstanceType , error ) {
40+ // Artificially set capacity to 0 for all instance types
41+ return []v1.InstanceType {}, nil
8742}
8843
8944func getInstanceTypeForZone (zone sfcnodes.ZoneListResponseData ) (* v1.InstanceType , error ) {
@@ -148,10 +103,6 @@ func getInstanceTypeForZone(zone sfcnodes.ZoneListResponseData) (*v1.InstanceTyp
148103 return & instanceType , nil
149104}
150105
151- func gpuTypeIsAllowed (gpuType string ) bool {
152- return gpuType == gpuTypeH100 || gpuType == gpuTypeH200
153- }
154-
155106func makeInstanceTypeName (zone sfcnodes.ZoneListResponseData ) string {
156107 interconnect := ""
157108 if strings .ToLower (zone .InterconnectType ) == interconnectInfiniband {
0 commit comments