Skip to content

Commit 78046b4

Browse files
[cortex] Rename cpuArch to arch in hv crd
1 parent 768f631 commit 78046b4

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

api/v1/hypervisor_types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,13 @@ type OperatingSystemStatus struct {
191191
}
192192

193193
// Current capabilities reported by libvirt.
194+
//
195+
// The keys provided here should correspond to the capabilities expected
196+
// by openstack's flavor extra specs, like 'capabilities:arch'.
194197
type CapabilitiesStatus struct {
195198
// +kubebuilder:default:=unknown
196199
// The hosts CPU architecture (not the guests).
197-
HostCpuArch string `json:"cpuArch,omitempty"`
200+
HostCpuArch string `json:"arch,omitempty"`
198201
// Total host memory available as a sum of memory over all numa cells.
199202
HostMemory resource.Quantity `json:"memory,omitempty"`
200203
// Total host cpus available as a sum of cpus over all numa cells.

applyconfigurations/api/v1/capabilitiesstatus.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ spec:
186186
capabilities:
187187
description: The capabilities of the hypervisors as reported by libvirt.
188188
properties:
189-
cpuArch:
189+
arch:
190190
default: unknown
191191
description: The hosts CPU architecture (not the guests).
192192
type: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ spec:
187187
capabilities:
188188
description: The capabilities of the hypervisors as reported by libvirt.
189189
properties:
190-
cpuArch:
190+
arch:
191191
default: unknown
192192
description: The hosts CPU architecture (not the guests).
193193
type: string

0 commit comments

Comments
 (0)