Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion api/v1/hypervisor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SPDX-FileCopyrightText: Copyright 2024 SAP SE or an SAP affiliate company and cobaltcore-dev contributors
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, LibVirtVersion 2.0 (the "License");
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Expand Down Expand Up @@ -288,6 +288,10 @@ type HypervisorStatus struct {
// Represents the LibVirt version.
LibVirtVersion string `json:"libVirtVersion,omitempty"`

// +kubebuilder:default:=unknown
// Represents the Hypervisor version
HypervisorVersion string `json:"hypervisorVersion,omitempty"`

// Represents the Operating System status.
OperatingSystem OperatingSystemStatus `json:"operatingSystem,omitempty"`

Expand Down
9 changes: 9 additions & 0 deletions applyconfigurations/api/v1/hypervisorstatus.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions config/crd/bases/kvm.cloud.sap_hypervisors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ spec:
description: HypervisorID is the unique identifier of the hypervisor
in OpenStack.
type: string
hypervisorVersion:
default: unknown
description: Represents the Hypervisor version.
type: string
instances:
description: Represents the Hypervisor hosted Virtual Machines
items:
Expand Down