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

Commit

Permalink
fix: reuse resource.Quantity types
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Apr 1, 2024
1 parent 206d982 commit 06c094f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/v1alpha1/nutanix_node_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package v1alpha1

import (
"k8s.io/apimachinery/pkg/api/resource"
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"

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

// memorySize is the memory size (in Quantity format) of the VM
MemorySize string `json:"memorySize"`
MemorySize resource.Quantity `json:"memorySize"`

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

// systemDiskSize is size (in Quantity format) of the system disk of the VM
// The minimum systemDiskSize is 20Gi bytes
SystemDiskSize string `json:"systemDiskSize"`
SystemDiskSize resource.Quantity `json:"systemDiskSize"`
}

func (NutanixNodeSpec) VariableSchema() clusterv1.VariableSchema {
Expand Down

0 comments on commit 06c094f

Please sign in to comment.