Skip to content

Commit d5a279c

Browse files
committed
fix: use type
1 parent a9be666 commit d5a279c

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@ spec:
285285
type:
286286
description: Type is the identifier type to use
287287
for this resource.
288-
enum:
289-
- deviceID
290-
- name
291288
type: string
292289
required:
293290
- type

api/v1alpha1/crds/caren.nutanix.com_nutanixnodeconfigs.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ spec:
103103
type:
104104
description: Type is the identifier type to use for
105105
this resource.
106-
enum:
107-
- deviceID
108-
- name
109106
type: string
110107
required:
111108
- type

api/v1alpha1/nutanix_node_types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ type NutanixGPU struct {
7272
Type NutanixGPUIdentifierType `json:"type"`
7373

7474
// DeviceID is the id of the GPU entity.
75-
// +optional
75+
// +kubebuilder:validation:Optional
7676
DeviceID *int64 `json:"deviceID,omitempty"`
7777

7878
// Name is the GPU name
79-
// +optional
79+
// +kubebuilder:validation:Optional
8080
Name *string `json:"name,omitempty"`
8181
}
8282

0 commit comments

Comments
 (0)