Skip to content

Commit ff6a8a0

Browse files
committed
fixup! feat: Add additionalCategories field to Nutanix machine details patch
Add additionalCategories to variable schema
1 parent f685796 commit ff6a8a0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api/v1alpha1/nutanix_node_types.go

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package v1alpha1
66
import (
77
"k8s.io/apimachinery/pkg/api/resource"
88
"k8s.io/utils/ptr"
9+
"k8s.io/utils/ptr"
910
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
1011

1112
capxv1 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/external/github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1"
@@ -99,6 +100,12 @@ func (NutanixMachineDetails) VariableSchema() clusterv1.VariableSchema {
99100
"subnet identifies the network subnet to use for the machine. The identifier (uuid or name) can be obtained from the console or API.",
100101
).OpenAPIV3Schema),
101102
},
103+
"additionalCategories": {
104+
Type: "array",
105+
//nolint:lll // Description is long.
106+
Description: "List of categories that need to be added to the machines. Categories must already exist in Prism Central. One category key can have more than one value.",
107+
Items: ptr.To(NutanixCategoryIdentifier{}.VariableSchema().OpenAPIV3Schema),
108+
},
102109
"bootType": NutanixBootType(
103110
capxv1.NutanixBootTypeLegacy,
104111
).VariableSchema().

0 commit comments

Comments
 (0)