This repository was archived by the owner on Apr 11, 2024. It is now read-only.
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
8
8
9
9
capxv1 "github.com/d2iq-labs/cluster-api-runtime-extensions-nutanix/api/external/github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1"
10
+ "github.com/d2iq-labs/cluster-api-runtime-extensions-nutanix/api/variables"
10
11
)
11
12
12
13
type NutanixNodeSpec struct {
@@ -82,6 +83,10 @@ func (NutanixIdentifierType) VariableSchema() clusterv1.VariableSchema {
82
83
OpenAPIV3Schema : clusterv1.JSONSchemaProps {
83
84
Type : "string" ,
84
85
Description : "NutanixIdentifierType is an enumeration of different resource identifier types" ,
86
+ Enum : variables .MustMarshalValuesToEnumJSON (
87
+ capxv1 .NutanixIdentifierUUID ,
88
+ capxv1 .NutanixIdentifierName ,
89
+ ),
85
90
},
86
91
}
87
92
}
@@ -94,6 +99,10 @@ func (NutanixBootType) VariableSchema() clusterv1.VariableSchema {
94
99
OpenAPIV3Schema : clusterv1.JSONSchemaProps {
95
100
Type : "string" ,
96
101
Description : "NutanixBootType is an enumeration of different boot types." ,
102
+ Enum : variables .MustMarshalValuesToEnumJSON (
103
+ capxv1 .NutanixBootTypeLegacy ,
104
+ capxv1 .NutanixBootTypeUEFI ,
105
+ ),
97
106
},
98
107
}
99
108
}
You can’t perform that action at this time.
0 commit comments