Skip to content

Commit 7faabc9

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

File tree

4 files changed

+66
-11
lines changed

4 files changed

+66
-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.

api/v1/zz_generated.deepcopy.go

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

applyconfigurations/api/v1/operatingsystemstatus.go

Lines changed: 40 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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ 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+
items:
324+
type: string
325+
type: array
318326
hardwareModel:
319327
description: HardwareModel
320328
type: string
@@ -336,6 +344,10 @@ spec:
336344
prettyVersion:
337345
description: PrettyVersion
338346
type: string
347+
variantID:
348+
description: Identifying a specific variant or edition of the
349+
operating system
350+
type: string
339351
version:
340352
description: Represents the Operating System version.
341353
type: string

0 commit comments

Comments
 (0)