Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 46f7893

Browse files
committed
fix: reuse resource.Quantity types
1 parent 71c85f8 commit 46f7893

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/v1alpha1/nutanix_node_types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package v1alpha1
55

66
import (
7+
"k8s.io/apimachinery/pkg/api/resource"
78
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
89

910
capxv1 "github.com/d2iq-labs/cluster-api-runtime-extensions-nutanix/api/external/github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1"
@@ -18,7 +19,7 @@ type NutanixNodeSpec struct {
1819
VCPUSockets int32 `json:"vcpuSockets"`
1920

2021
// memorySize is the memory size (in Quantity format) of the VM
21-
MemorySize string `json:"memorySize"`
22+
MemorySize resource.Quantity `json:"memorySize"`
2223

2324
// image is to identify the rhcos image uploaded to the Prism Central (PC)
2425
// The image identifier (uuid or name) can be obtained from the Prism Central console
@@ -41,7 +42,7 @@ type NutanixNodeSpec struct {
4142

4243
// systemDiskSize is size (in Quantity format) of the system disk of the VM
4344
// The minimum systemDiskSize is 20Gi bytes
44-
SystemDiskSize string `json:"systemDiskSize"`
45+
SystemDiskSize resource.Quantity `json:"systemDiskSize"`
4546
}
4647

4748
func (NutanixNodeSpec) VariableSchema() clusterv1.VariableSchema {

0 commit comments

Comments
 (0)