Skip to content

Commit d92bfa2

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

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
@@ -5,6 +5,7 @@ package v1alpha1
55

66
import (
77
"k8s.io/apimachinery/pkg/api/resource"
8+
"k8s.io/utils/ptr"
89
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
910

1011
capxv1 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/external/github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1"
@@ -88,6 +89,12 @@ func (NutanixMachineDetails) VariableSchema() clusterv1.VariableSchema {
8889
"image": NutanixResourceIdentifier{}.VariableSchema().OpenAPIV3Schema,
8990
"cluster": NutanixResourceIdentifier{}.VariableSchema().OpenAPIV3Schema,
9091
"subnets": NutanixResourceIdentifiers{}.VariableSchema().OpenAPIV3Schema,
92+
"additionalCategories": {
93+
Type: "array",
94+
//nolint:lll // Description is long.
95+
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.",
96+
Items: ptr.To(NutanixCategoryIdentifier{}.VariableSchema().OpenAPIV3Schema),
97+
},
9198
"bootType": NutanixBootType(
9299
capxv1.NutanixBootTypeLegacy,
93100
).VariableSchema().

0 commit comments

Comments
 (0)