-
-
Notifications
You must be signed in to change notification settings - Fork 730
feat: cluster create qemu presets #11906
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
624687c
to
2f942dd
Compare
d2adff8
to
fdf393a
Compare
Will there be an omni preset to join machines to an omni instance? |
@rothgar probably not in this pr, but yes, it's on the readmap! |
3754ed6
to
1ef2f02
Compare
qemu.StringVar(&cqOps.imageFactoryURL, "image-factory-url", "https://factory.talos.dev/", "image factory url") | ||
qemu.StringVar(&presetOptions.schematicID, "schematic-id", "", "image factory schematic id (defaults to an empty schematic)") | ||
qemu.StringVar(&presetOptions.imageFactoryURL, "image-factory-url", constants.ImageFactoryURL, "image factory url") | ||
qemu.StringSliceVar(&presetOptions.presets, "presets", []string{preset.ISO{}.Name()}, "list of presets to apply") |
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.
if we only accept a single preset, why make this option a slice?
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.
ahh I see, we support merging, ignore comment then, thought I'm not sure if we should do iso,secureboot
or have just iso
and iso-secureboot
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.
Good point! I've simplified it to just iso-secureboot
and it's much nicer this way
cmd/talosctl/cmd/mgmt/cluster/create/clusterops/configmaker/preset/disk_image_preset.go
Outdated
Show resolved
Hide resolved
cmd/talosctl/cmd/mgmt/cluster/create/clusterops/configmaker/preset/disk_image_preset.go
Outdated
Show resolved
Hide resolved
--kubernetes-version string desired kubernetes version to run (default "1.34.1") | ||
--memory-controlplanes string(mb,gb) the limit on memory usage for each control plane/VM (default 2.0GiB) | ||
--memory-workers string(mb,gb) the limit on memory usage for each worker/VM (default 2.0GiB) | ||
--presets strings list of presets to apply (default [iso]) |
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.
--presets=iso,omni=https://omni.com/siderolink?jointoken=foo
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.
I went with just adding a --omni-api-endpoint
flag after some though as it seems like the most intuitive way to go about it. Also allows to add it to the existing dev command.
1ef2f02
to
eefa5e1
Compare
@rothgar I went ahead and also added a |
eefa5e1
to
d4e52d2
Compare
d4e52d2
to
5e59515
Compare
* add 'iso', 'pxe', 'disk-image', 'maintenance' and 'secureboot' presets * swith the image-factory e2e test to use the create qemu command with presets * add a '--omni-api-endpoint' to simplify connecting machines to omni Signed-off-by: Orzelius <[email protected]>
5e59515
to
1351784
Compare
part of #11404
closes #11686
closes #11689