feat: Add short options for kernel and os versions #255
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change makes it easier/lazier for people to configure their kernel
and os images. If users do not care about the specifics, and do not need
to bring custom images, they can simply set the following:
In the manifest:
Via the command line:
And we work out the rest. Long form, this is:
Or via env vars:
The previously existing fields will continue to exist and can be used if desired.
If both the short form options and the long-form fields are set, the
short-form values are what will be used. (Or I can make it the long-form
whichever people prefer.)
The previously required kernel and root volume fields are now optional so, the machine webhook has been updated to ensure that at least one of the options are provided.
Part of liquidmetal-dev/image-builder#49
Depends on liquidmetal-dev/controller-pkg#3 and liquidmetal-dev/controller-pkg#2 requiring a mod bump here after those 2 are merged.