Skip to content

Commit f5e3254

Browse files
authored
Merge pull request #239 from cobaltcore-dev/feature/add-hypervisor-version-field
Add HypervisorVersion field to HypervisorStatus
2 parents 3ba6ef7 + f1db049 commit f5e3254

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

api/v1/hypervisor_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SPDX-FileCopyrightText: Copyright 2024 SAP SE or an SAP affiliate company and cobaltcore-dev contributors
33
SPDX-License-Identifier: Apache-2.0
44
5-
Licensed under the Apache License, LibVirtVersion 2.0 (the "License");
5+
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
77
You may obtain a copy of the License at
88
@@ -288,6 +288,10 @@ type HypervisorStatus struct {
288288
// Represents the LibVirt version.
289289
LibVirtVersion string `json:"libVirtVersion,omitempty"`
290290

291+
// +kubebuilder:default:=unknown
292+
// Represents the Hypervisor version
293+
HypervisorVersion string `json:"hypervisorVersion,omitempty"`
294+
291295
// Represents the Operating System status.
292296
OperatingSystem OperatingSystemStatus `json:"operatingSystem,omitempty"`
293297

applyconfigurations/api/v1/hypervisorstatus.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ spec:
399399
description: HypervisorID is the unique identifier of the hypervisor
400400
in OpenStack.
401401
type: string
402+
hypervisorVersion:
403+
default: unknown
404+
description: Represents the Hypervisor version.
405+
type: string
402406
instances:
403407
description: Represents the Hypervisor hosted Virtual Machines
404408
items:

0 commit comments

Comments
 (0)