Skip to content

Commit 7e2b421

Browse files
committed
add hypervisor id and service id to hypervisor-crd
1 parent c5e08e1 commit 7e2b421

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

api/v1alpha1/hypervisor_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ type HypervisorStatus struct {
168168
// Represent the num of instances
169169
NumInstances int `json:"numInstances"`
170170

171+
// HypervisorID is the unique identifier of the hypervisor in OpenStack.
172+
HypervisorID string `json:"hypervisorId,omitempty"`
173+
174+
// ServiceID is the unique identifier of the compute service in OpenStack.
175+
ServiceID string `json:"serviceId,omitempty"`
176+
171177
// Represents the Hypervisor node conditions.
172178
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
173179

charts/kvm-node-agent/crds/hypervisor-crd.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ spec:
206206
- type
207207
type: object
208208
type: array
209+
hypervisorId:
210+
description: HypervisorID is the unique identifier of the hypervisor
211+
in OpenStack.
212+
type: string
209213
instances:
210214
description: Represents the Hypervisor hosted Virtual Machines
211215
items:
@@ -274,6 +278,10 @@ spec:
274278
description: Represents the Operating System version.
275279
type: string
276280
type: object
281+
serviceId:
282+
description: ServiceID is the unique identifier of the compute service
283+
in OpenStack.
284+
type: string
277285
specHash:
278286
type: string
279287
updateStatus:

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ spec:
207207
- type
208208
type: object
209209
type: array
210+
hypervisorId:
211+
description: HypervisorID is the unique identifier of the hypervisor
212+
in OpenStack.
213+
type: string
210214
instances:
211215
description: Represents the Hypervisor hosted Virtual Machines
212216
items:
@@ -275,6 +279,10 @@ spec:
275279
description: Represents the Operating System version.
276280
type: string
277281
type: object
282+
serviceId:
283+
description: ServiceID is the unique identifier of the compute service
284+
in OpenStack.
285+
type: string
278286
specHash:
279287
type: string
280288
updateStatus:

0 commit comments

Comments
 (0)