Skip to content

Commit b801e15

Browse files
authored
Merge pull request #199 from cobaltcore-dev/add-commit-sha
Expose more fields in OperatingSystemStatus
2 parents 799beb7 + 7faabc9 commit b801e15

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
@@ -150,6 +150,9 @@ type OperatingSystemStatus struct {
150150
// Represents the Operating System version.
151151
Version string `json:"version,omitempty"`
152152

153+
// Identifying a specific variant or edition of the operating system
154+
VariantID string `json:"variantID,omitempty"`
155+
153156
// PrettyVersion
154157
PrettyVersion string `json:"prettyVersion,omitempty"`
155158

@@ -179,6 +182,12 @@ type OperatingSystemStatus struct {
179182

180183
// FirmwareDate
181184
FirmwareDate metav1.Time `json:"firmwareDate,omitempty"`
185+
186+
// Represents the Garden Linux build commit id
187+
GardenLinuxCommitID string `json:"gardenLinuxCommitID,omitempty"`
188+
189+
// Represents the Garden Linux Feature Set
190+
GardenLinuxFeatures []string `json:"gardenLinuxFeatures,omitempty"`
182191
}
183192

184193
// 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
@@ -316,6 +316,14 @@ spec:
316316
firmwareVersion:
317317
description: FirmwareVersion
318318
type: string
319+
gardenLinuxCommitID:
320+
description: Represents the Garden Linux build commit id
321+
type: string
322+
gardenLinuxFeatures:
323+
description: Represents the Garden Linux Feature Set
324+
items:
325+
type: string
326+
type: array
319327
hardwareModel:
320328
description: HardwareModel
321329
type: string
@@ -337,6 +345,10 @@ spec:
337345
prettyVersion:
338346
description: PrettyVersion
339347
type: string
348+
variantID:
349+
description: Identifying a specific variant or edition of the
350+
operating system
351+
type: string
340352
version:
341353
description: Represents the Operating System version.
342354
type: string

0 commit comments

Comments
 (0)