Skip to content

Commit 77e78a9

Browse files
committed
Add KernelCommandLine to OperatingSystemStatus
Store the raw /proc/cmdline content as a string in the hypervisor status.
1 parent 8267927 commit 77e78a9

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

api/v1/hypervisor_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ type OperatingSystemStatus struct {
175175
// KernelVersion
176176
KernelVersion string `json:"kernelVersion,omitempty"`
177177

178+
// KernelCommandLine contains the raw kernel boot parameters from /proc/cmdline.
179+
KernelCommandLine string `json:"kernelCommandLine,omitempty"`
180+
178181
// HardwareVendor
179182
HardwareVendor string `json:"hardwareVendor,omitempty"`
180183

applyconfigurations/api/v1/operatingsystemstatus.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
@@ -459,6 +459,10 @@ spec:
459459
hardwareVendor:
460460
description: HardwareVendor
461461
type: string
462+
kernelCommandLine:
463+
description: KernelCommandLine contains the raw kernel boot parameters
464+
from /proc/cmdline.
465+
type: string
462466
kernelName:
463467
description: KernelName
464468
type: string

0 commit comments

Comments
 (0)