-
Notifications
You must be signed in to change notification settings - Fork 52
[DRAFT] Define boot options in vm spec #967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @abaruni , I know it's a draft so I won't mark this as "Request changes," but there are a few places I left comments. FYI, the "kube API conventions" I reference in the feedback is located at https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md. I find it to be helpful.
api/v1alpha4/virtualmachine_types.go
Outdated
type VirtualMachineBootOptionsBootableDevice string | ||
|
||
const ( | ||
VirtualMachineBootOptionsBootableDiskDevice VirtualMachineBootOptionsBootableDevice = "disk" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kube API conventions wants enums to be CamelCased, ex. Disk
, Network
, CDRom
.
api/v1alpha4/virtualmachine_types.go
Outdated
type VirtualMachineBootOptionsNetworkBootProtocol string | ||
|
||
const ( | ||
VirtualMachineBootOptionsNetworkBootProtocolIPv4 VirtualMachineBootOptionsNetworkBootProtocol = "ipv4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be IP4
and IP6
to be consistent with how we do not use the v
in the other locations in our spec either.
api/v1alpha4/virtualmachine_types.go
Outdated
// will refuse to start any images which do not pass those signature checks. | ||
// | ||
// Please note, this field will not be honored unless the value of spec.firmware | ||
// is "efi". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the comment, spec.firmware
would be set to EFI
as proper acronyms are capitalized for Kube enums.
a75582f
to
0f32832
Compare
Minimum allowed line rate is |
What does this PR do, and why is it needed?
Which issue(s) is/are addressed by this PR? (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Are there any special notes for your reviewer:
Please add a release note if necessary: