@@ -29,27 +29,27 @@ type NutanixMachineDetails struct {
29
29
// image identifies the image uploaded to Prism Central (PC). The identifier
30
30
// (uuid or name) can be obtained from the console or API.
31
31
// +kubebuilder:validation:Required
32
- Image NutanixResourceIdentifier `json:"image"`
32
+ Image capxv1. NutanixResourceIdentifier `json:"image"`
33
33
34
34
// cluster identifies the Prism Element in which the machine will be created.
35
35
// The identifier (uuid or name) can be obtained from the console or API.
36
36
// +kubebuilder:validation:Required
37
- Cluster NutanixResourceIdentifier `json:"cluster"`
37
+ Cluster capxv1. NutanixResourceIdentifier `json:"cluster"`
38
38
39
39
// subnet identifies the network subnet to use for the machine.
40
40
// The identifier (uuid or name) can be obtained from the console or API.
41
41
// +kubebuilder:validation:Required
42
- Subnets []NutanixResourceIdentifier `json:"subnets"`
42
+ Subnets []capxv1. NutanixResourceIdentifier `json:"subnets"`
43
43
44
44
// List of categories that need to be added to the machines. Categories must already
45
45
// exist in Prism Central. One category key can have more than one value.
46
46
// +kubebuilder:validation:Optional
47
- AdditionalCategories []NutanixCategoryIdentifier `json:"additionalCategories,omitempty"`
47
+ AdditionalCategories []capxv1. NutanixCategoryIdentifier `json:"additionalCategories,omitempty"`
48
48
49
49
// Defines the boot type of the virtual machine. Only supports UEFI and Legacy
50
50
// +kubebuilder:validation:Optional
51
51
// +kubebuilder:validation:Enum:=legacy;uefi
52
- BootType NutanixBootType `json:"bootType"`
52
+ BootType capxv1. NutanixBootType `json:"bootType"`
53
53
54
54
// systemDiskSize is size (in Quantity format) of the system disk of the VM
55
55
// The minimum systemDiskSize is 20Gi bytes
@@ -59,19 +59,9 @@ type NutanixMachineDetails struct {
59
59
// add the virtual machines to the project defined in Prism Central.
60
60
// The project must already be present in the Prism Central.
61
61
// +kubebuilder:validation:Optional
62
- Project * NutanixResourceIdentifier `json:"project,omitempty"`
62
+ Project * capxv1. NutanixResourceIdentifier `json:"project,omitempty"`
63
63
64
64
// List of GPU devices that need to be added to the machines.
65
65
// +kubebuilder:validation:Optional
66
66
GPUs []capxv1.NutanixGPU `json:"gpus,omitempty"`
67
67
}
68
-
69
- // NutanixIdentifierType is an enumeration of different resource identifier types.
70
- type NutanixIdentifierType capxv1.NutanixIdentifierType
71
-
72
- // NutanixBootType is an enumeration of different boot types.
73
- type NutanixBootType capxv1.NutanixBootType
74
-
75
- type NutanixResourceIdentifier capxv1.NutanixResourceIdentifier
76
-
77
- type NutanixCategoryIdentifier capxv1.NutanixCategoryIdentifier
0 commit comments