Skip to content

Commit

Permalink
Add schema changes to include KernelBoot container definitions
Browse files Browse the repository at this point in the history
Add KernelBoot definition to VMI's Firmware.

Signed-off-by: Itamar Holder <[email protected]>
  • Loading branch information
iholder101 committed May 21, 2021
1 parent f9b2e9c commit eead144
Show file tree
Hide file tree
Showing 7 changed files with 459 additions and 2 deletions.
47 changes: 47 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -9853,6 +9853,10 @@
"description": "Settings to control the bootloader that is used.",
"$ref": "#/definitions/v1.Bootloader"
},
"kernelBoot": {
"description": "Settings to set the kernel for booting.",
"$ref": "#/definitions/v1.KernelBoot"
},
"serial": {
"description": "The system-serial-number in SMBIOS",
"type": "string"
Expand Down Expand Up @@ -10184,6 +10188,49 @@
}
}
},
"v1.KernelBoot": {
"description": "Represents the firmware blob used to assist in the kernel boot process. Used for setting the kernel, initrd and command line arguments",
"type": "object",
"properties": {
"container": {
"description": "Container defines the container that containes kernel artifacts",
"$ref": "#/definitions/v1.KernelBootContainer"
},
"kernelArgs": {
"description": "Arguments to be passed to the kernel at boot time",
"type": "string"
}
}
},
"v1.KernelBootContainer": {
"description": "If set, the VM will be booted from the defined kernel / initrd.",
"type": "object",
"required": [
"image"
],
"properties": {
"image": {
"description": "Image that container initrd / kernel files.",
"type": "string"
},
"imagePullPolicy": {
"description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images",
"type": "string"
},
"imagePullSecret": {
"description": "ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.",
"type": "string"
},
"initrdPath": {
"description": "the fully-qualified path to the ramdisk image in the host OS",
"type": "string"
},
"kernelPath": {
"description": "The fully-qualified path to the kernel image in the host OS",
"type": "string"
}
}
},
"v1.KubeVirt": {
"description": "KubeVirt represents the object deploying all KubeVirt resources",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4236,6 +4236,34 @@ var CRDsValidation map[string]string = map[string]string{
type: boolean
type: object
type: object
kernelBoot:
description: Settings to set the kernel for booting.
properties:
container:
description: Container defines the container that containes kernel artifacts
properties:
image:
description: Image that container initrd / kernel files.
type: string
imagePullPolicy:
description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images'
type: string
imagePullSecret:
description: ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
type: string
initrdPath:
description: the fully-qualified path to the ramdisk image in the host OS
type: string
kernelPath:
description: The fully-qualified path to the kernel image in the host OS
type: string
required:
- image
type: object
kernelArgs:
description: Arguments to be passed to the kernel at boot time
type: string
type: object
serial:
description: The system-serial-number in SMBIOS
type: string
Expand Down Expand Up @@ -6769,6 +6797,34 @@ var CRDsValidation map[string]string = map[string]string{
type: boolean
type: object
type: object
kernelBoot:
description: Settings to set the kernel for booting.
properties:
container:
description: Container defines the container that containes kernel artifacts
properties:
image:
description: Image that container initrd / kernel files.
type: string
imagePullPolicy:
description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images'
type: string
imagePullSecret:
description: ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
type: string
initrdPath:
description: the fully-qualified path to the ramdisk image in the host OS
type: string
kernelPath:
description: The fully-qualified path to the kernel image in the host OS
type: string
required:
- image
type: object
kernelArgs:
description: Arguments to be passed to the kernel at boot time
type: string
type: object
serial:
description: The system-serial-number in SMBIOS
type: string
Expand Down Expand Up @@ -8566,6 +8622,34 @@ var CRDsValidation map[string]string = map[string]string{
type: boolean
type: object
type: object
kernelBoot:
description: Settings to set the kernel for booting.
properties:
container:
description: Container defines the container that containes kernel artifacts
properties:
image:
description: Image that container initrd / kernel files.
type: string
imagePullPolicy:
description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images'
type: string
imagePullSecret:
description: ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
type: string
initrdPath:
description: the fully-qualified path to the ramdisk image in the host OS
type: string
kernelPath:
description: The fully-qualified path to the kernel image in the host OS
type: string
required:
- image
type: object
kernelArgs:
description: Arguments to be passed to the kernel at boot time
type: string
type: object
serial:
description: The system-serial-number in SMBIOS
type: string
Expand Down Expand Up @@ -10317,6 +10401,34 @@ var CRDsValidation map[string]string = map[string]string{
type: boolean
type: object
type: object
kernelBoot:
description: Settings to set the kernel for booting.
properties:
container:
description: Container defines the container that containes kernel artifacts
properties:
image:
description: Image that container initrd / kernel files.
type: string
imagePullPolicy:
description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images'
type: string
imagePullSecret:
description: ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
type: string
initrdPath:
description: the fully-qualified path to the ramdisk image in the host OS
type: string
kernelPath:
description: The fully-qualified path to the kernel image in the host OS
type: string
required:
- image
type: object
kernelArgs:
description: Arguments to be passed to the kernel at boot time
type: string
type: object
serial:
description: The system-serial-number in SMBIOS
type: string
Expand Down Expand Up @@ -13678,6 +13790,34 @@ var CRDsValidation map[string]string = map[string]string{
type: boolean
type: object
type: object
kernelBoot:
description: Settings to set the kernel for booting.
properties:
container:
description: Container defines the container that containes kernel artifacts
properties:
image:
description: Image that container initrd / kernel files.
type: string
imagePullPolicy:
description: 'Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images'
type: string
imagePullSecret:
description: ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
type: string
initrdPath:
description: the fully-qualified path to the ramdisk image in the host OS
type: string
kernelPath:
description: The fully-qualified path to the kernel image in the host OS
type: string
required:
- image
type: object
kernelArgs:
description: Arguments to be passed to the kernel at boot time
type: string
type: object
serial:
description: The system-serial-number in SMBIOS
type: string
Expand Down
42 changes: 42 additions & 0 deletions staging/src/kubevirt.io/client-go/api/v1/deepcopy_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eead144

Please sign in to comment.