@@ -35,21 +35,12 @@ type NutanixNodeSpec struct {
35
35
// or using the prism_central API.
36
36
Subnets NutanixResourceIdentifiers `json:"subnet"`
37
37
38
- // List of categories that need to be added to the machines. Categories must already exist in Prism Central
39
- AdditionalCategories []NutanixCategoryIdentifier `json:"additionalCategories,omitempty"`
40
-
41
- // Add the machine resources to a Prism Central project
42
- Project NutanixResourceIdentifier `json:"project,omitempty"`
43
-
44
38
// Defines the boot type of the virtual machine. Only supports UEFI and Legacy
45
39
BootType NutanixBootType `json:"bootType,omitempty"`
46
40
47
41
// systemDiskSize is size (in Quantity format) of the system disk of the VM
48
42
// The minimum systemDiskSize is 20Gi bytes
49
43
SystemDiskSize string `json:"systemDiskSize"`
50
-
51
- // List of GPU devices that need to be added to the machines.
52
- GPUs []NutanixGPU `json:"gpus,omitempty"`
53
44
}
54
45
55
46
func (NutanixNodeSpec ) VariableSchema () clusterv1.VariableSchema {
@@ -78,9 +69,6 @@ func (NutanixNodeSpec) VariableSchema() clusterv1.VariableSchema {
78
69
Description : "systemDiskSize is size (in Quantity format) of the system disk of the VM eg. 20Gi" ,
79
70
Type : "string" ,
80
71
},
81
- "project" : NutanixResourceIdentifier {}.VariableSchema ().OpenAPIV3Schema ,
82
- "additionalCategories" : NutanixCategoryIdentifiers {}.VariableSchema ().OpenAPIV3Schema ,
83
- "gpus" : NutanixGPUs {}.VariableSchema ().OpenAPIV3Schema ,
84
72
},
85
73
},
86
74
}
@@ -110,18 +98,6 @@ func (NutanixBootType) VariableSchema() clusterv1.VariableSchema {
110
98
}
111
99
}
112
100
113
- // NutanixGPUIdentifierType is an enumeration of different resource identifier types for GPU entities.
114
- type NutanixGPUIdentifierType capxv1.NutanixGPUIdentifierType
115
-
116
- func (NutanixGPUIdentifierType ) VariableSchema () clusterv1.VariableSchema {
117
- return clusterv1.VariableSchema {
118
- OpenAPIV3Schema : clusterv1.JSONSchemaProps {
119
- Type : "string" ,
120
- Description : "NutanixGPUIdentifierType is an enumeration of different resource identifier types for GPU entities." ,
121
- },
122
- }
123
- }
124
-
125
101
type NutanixResourceIdentifier capxv1.NutanixResourceIdentifier
126
102
127
103
func (NutanixResourceIdentifier ) VariableSchema () clusterv1.VariableSchema {
@@ -144,71 +120,14 @@ func (NutanixResourceIdentifier) VariableSchema() clusterv1.VariableSchema {
144
120
}
145
121
}
146
122
147
- type NutanixCategoryIdentifier capxv1.NutanixCategoryIdentifier
148
-
149
- func (NutanixCategoryIdentifier ) VariableSchema () clusterv1.VariableSchema {
150
- return clusterv1.VariableSchema {
151
- OpenAPIV3Schema : clusterv1.JSONSchemaProps {
152
- Description : "Nutanix Category Identifier" ,
153
- Type : "object" ,
154
- Properties : map [string ]clusterv1.JSONSchemaProps {
155
- "key" : {
156
- Type : "string" ,
157
- Description : "key is the Key of category in PC." ,
158
- },
159
- "value" : {
160
- Type : "string" ,
161
- Description : "value is the category value linked to the category key in PC" ,
162
- },
163
- },
164
- },
165
- }
166
- }
167
-
168
- type NutanixCategoryIdentifiers []NutanixCategoryIdentifier
169
-
170
- func (NutanixCategoryIdentifiers ) VariableSchema () clusterv1.VariableSchema {
171
- resourceSchema := NutanixCategoryIdentifier {}.VariableSchema ().OpenAPIV3Schema
172
-
173
- return clusterv1.VariableSchema {
174
- OpenAPIV3Schema : clusterv1.JSONSchemaProps {
175
- Description : "Nutanix category identifier" ,
176
- Type : "array" ,
177
- Items : & resourceSchema ,
178
- },
179
- }
180
- }
181
-
182
- type NutanixGPU capxv1.NutanixGPU
183
-
184
- func (NutanixGPU ) VariableSchema () clusterv1.VariableSchema {
185
- return clusterv1.VariableSchema {
186
- OpenAPIV3Schema : clusterv1.JSONSchemaProps {
187
- Description : "Nutanix GPU type" ,
188
- Type : "object" ,
189
- Properties : map [string ]clusterv1.JSONSchemaProps {
190
- "type" : NutanixGPUIdentifierType ("name" ).VariableSchema ().OpenAPIV3Schema ,
191
- "deviceID" : {
192
- Type : "int64" ,
193
- Description : "deviceID is the id of the GPU entity." ,
194
- },
195
- "name" : {
196
- Type : "string" ,
197
- Description : "name is the GPU name." ,
198
- },
199
- },
200
- },
201
- }
202
- }
203
-
204
- type NutanixGPUs []NutanixGPU
123
+ type NutanixResourceIdentifiers []NutanixResourceIdentifier
205
124
206
- func (NutanixGPUs ) VariableSchema () clusterv1.VariableSchema {
207
- resourceSchema := NutanixGPU {}.VariableSchema ().OpenAPIV3Schema
125
+ func (NutanixResourceIdentifiers ) VariableSchema () clusterv1.VariableSchema {
126
+ resourceSchema := NutanixResourceIdentifier {}.VariableSchema ().OpenAPIV3Schema
208
127
209
128
return clusterv1.VariableSchema {
210
129
OpenAPIV3Schema : clusterv1.JSONSchemaProps {
211
- Description : "Nutanix GPU identifier" ,
130
+ Description : "Nutanix resource identifier" ,
212
131
Type : "array" ,
213
132
Items : & resourceSchema ,
214
133
},
0 commit comments