Skip to content

Commit 944fd73

Browse files
committed
Expose more fields in OperatingSystemStatus
Exposes the following additional fields * GardenLinuxCommitID * GardenLinuxFeatures * VariantID to share more detals on a Garden Linux based installation
1 parent f488c71 commit 944fd73

File tree

3 files changed

+57
-11
lines changed

3 files changed

+57
-11
lines changed

api/v1/hypervisor_types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ type OperatingSystemStatus struct {
123123
// Represents the Operating System version.
124124
Version string `json:"version,omitempty"`
125125

126+
// Identifying a specific variant or edition of the operating system
127+
VariantID string `json:"variantID,omitempty"`
128+
126129
// PrettyVersion
127130
PrettyVersion string `json:"prettyVersion,omitempty"`
128131

@@ -152,6 +155,12 @@ type OperatingSystemStatus struct {
152155

153156
// FirmwareDate
154157
FirmwareDate metav1.Time `json:"firmwareDate,omitempty"`
158+
159+
// Represents the Garden Linux build commit id
160+
GardenLinuxCommitID string `json:"gardenLinuxCommitID,omitempty"`
161+
162+
// Represents the Garden Linux Feature Set
163+
GardenLinuxFeatures string `json:"gardenLinuxFeatures,omitempty"`
155164
}
156165

157166
// Current capabilities reported by libvirt.

applyconfigurations/api/v1/operatingsystemstatus.go

Lines changed: 38 additions & 11 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,12 @@ spec:
315315
firmwareVersion:
316316
description: FirmwareVersion
317317
type: string
318+
gardenLinuxCommitID:
319+
description: Represents the Garden Linux build commit id
320+
type: string
321+
gardenLinuxFeatures:
322+
description: Represents the Garden Linux Feature Set
323+
type: string
318324
hardwareModel:
319325
description: HardwareModel
320326
type: string
@@ -336,6 +342,10 @@ spec:
336342
prettyVersion:
337343
description: PrettyVersion
338344
type: string
345+
variantID:
346+
description: Identifying a specific variant or edition of the
347+
operating system
348+
type: string
339349
version:
340350
description: Represents the Operating System version.
341351
type: string

0 commit comments

Comments
 (0)