-
Notifications
You must be signed in to change notification settings - Fork 595
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
refactor: extract platform metadata into Talos machinery #10173
Conversation
|
||
// NotOnlyDiskImage is true if the platform supports boot methods other than disk-image. | ||
func (p Platform) NotOnlyDiskImage() bool { | ||
if len(p.BootMethods) == 1 && p.BootMethods[0] == BootMethodDiskImage { |
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.
is the BootMethods
slice deterministic?, since MetalPlatform
has pxe as the first boot method, shouldn't the second condition be slices.Contains
?
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.
This method basically checks BootMethods != {BootMethodDiskImage}
, it has nothing to do with the order specifically.
If only disk image is used, we can skip installer.
It will be used across Image Factory, Terraform Provider and Omni. Fixes siderolabs#10108 See siderolabs/image-factory#189 Signed-off-by: Andrey Smirnov <[email protected]>
9c96052
to
e1efbf6
Compare
/m |
See siderolabs/talos#10173 Signed-off-by: Andrey Smirnov <[email protected]>
See siderolabs/talos#10173 Signed-off-by: Andrey Smirnov <[email protected]>
It will be used across Image Factory, Terraform Provider and Omni.
Fixes #10108
See siderolabs/image-factory#189