diff --git a/api/v1/hypervisor_types.go b/api/v1/hypervisor_types.go index 714c3105..a9426e42 100644 --- a/api/v1/hypervisor_types.go +++ b/api/v1/hypervisor_types.go @@ -175,6 +175,9 @@ type OperatingSystemStatus struct { // KernelVersion KernelVersion string `json:"kernelVersion,omitempty"` + // KernelCommandLine contains the raw kernel boot parameters from /proc/cmdline. + KernelCommandLine string `json:"kernelCommandLine,omitempty"` + // HardwareVendor HardwareVendor string `json:"hardwareVendor,omitempty"` diff --git a/applyconfigurations/api/v1/operatingsystemstatus.go b/applyconfigurations/api/v1/operatingsystemstatus.go index f616914b..79e398db 100644 --- a/applyconfigurations/api/v1/operatingsystemstatus.go +++ b/applyconfigurations/api/v1/operatingsystemstatus.go @@ -15,6 +15,7 @@ type OperatingSystemStatusApplyConfiguration struct { KernelName *string `json:"kernelName,omitempty"` KernelRelease *string `json:"kernelRelease,omitempty"` KernelVersion *string `json:"kernelVersion,omitempty"` + KernelCommandLine *string `json:"kernelCommandLine,omitempty"` HardwareVendor *string `json:"hardwareVendor,omitempty"` HardwareModel *string `json:"hardwareModel,omitempty"` HardwareSerial *string `json:"hardwareSerial,omitempty"` @@ -79,6 +80,14 @@ func (b *OperatingSystemStatusApplyConfiguration) WithKernelVersion(value string return b } +// WithKernelCommandLine sets the KernelCommandLine field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the KernelCommandLine field is set to the value of the last call. +func (b *OperatingSystemStatusApplyConfiguration) WithKernelCommandLine(value string) *OperatingSystemStatusApplyConfiguration { + b.KernelCommandLine = &value + return b +} + // WithHardwareVendor sets the HardwareVendor field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the HardwareVendor field is set to the value of the last call. diff --git a/config/crd/bases/kvm.cloud.sap_hypervisors.yaml b/config/crd/bases/kvm.cloud.sap_hypervisors.yaml index dad29e56..7e179f82 100644 --- a/config/crd/bases/kvm.cloud.sap_hypervisors.yaml +++ b/config/crd/bases/kvm.cloud.sap_hypervisors.yaml @@ -459,6 +459,10 @@ spec: hardwareVendor: description: HardwareVendor type: string + kernelCommandLine: + description: KernelCommandLine contains the raw kernel boot parameters + from /proc/cmdline. + type: string kernelName: description: KernelName type: string