Skip to content

Commit 906a154

Browse files
Use default field feature of kubebuilder correctly
1 parent 5c49ce7 commit 906a154

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

api/v1/hypervisor_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,13 @@ type Capabilities struct {
205205
// +kubebuilder:default:=unknown
206206
// The supported type of virtualization for domains, such as "ch".
207207
HypervisorType string `json:"hypervisorType,omitempty"`
208-
// +kubebuilder:default:=[]
208+
// +kubebuilder:default:={}
209209
// Supported devices for domains, such as "video".
210210
SupportedDevices []string `json:"supportedDevices,omitempty"`
211-
// +kubebuilder:default:=[]
211+
// +kubebuilder:default:={}
212212
// Supported cpu modes for domains, such as "host-passthrough".
213213
SupportedCpuModes []string `json:"supportedCpuModes,omitempty"`
214-
// +kubebuilder:default:=[]
214+
// +kubebuilder:default:={}
215215
// Supported features for domains, such as "sev" or "sgx".
216216
SupportedFeatures []string `json:"supportedFeatures,omitempty"`
217217
}

charts/openstack-hypervisor-operator/crds/hypervisor-crd.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,19 +220,19 @@ spec:
220220
such as "ch".
221221
type: string
222222
supportedCpuModes:
223-
default: '[]'
223+
default: []
224224
description: Supported cpu modes for domains, such as "host-passthrough".
225225
items:
226226
type: string
227227
type: array
228228
supportedDevices:
229-
default: '[]'
229+
default: []
230230
description: Supported devices for domains, such as "video".
231231
items:
232232
type: string
233233
type: array
234234
supportedFeatures:
235-
default: '[]'
235+
default: []
236236
description: Supported features for domains, such as "sev" or
237237
"sgx".
238238
items:

config/crd/bases/kvm.cloud.sap_hypervisors.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,19 @@ spec:
221221
such as "ch".
222222
type: string
223223
supportedCpuModes:
224-
default: '[]'
224+
default: []
225225
description: Supported cpu modes for domains, such as "host-passthrough".
226226
items:
227227
type: string
228228
type: array
229229
supportedDevices:
230-
default: '[]'
230+
default: []
231231
description: Supported devices for domains, such as "video".
232232
items:
233233
type: string
234234
type: array
235235
supportedFeatures:
236-
default: '[]'
236+
default: []
237237
description: Supported features for domains, such as "sev" or
238238
"sgx".
239239
items:

0 commit comments

Comments
 (0)