Skip to content
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

Create limactl template command #3

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Create limactl template command #3

wants to merge 9 commits into from

Conversation

jandubois
Copy link
Owner

It takes a single template locator argument, loads the template, and writes it to STDOUT.

This is currently not very interesting; it is in preparation of implementing composable (multi-file) templates.

@jandubois jandubois force-pushed the based-on branch 19 times, most recently from 55a0b42 to fa9ae4f Compare November 25, 2024 07:18
@jandubois jandubois force-pushed the based-on branch 11 times, most recently from 5cb087d to 0ba1f7c Compare November 30, 2024 06:44
@jandubois jandubois force-pushed the based-on branch 5 times, most recently from 5b9a842 to 2cd96bc Compare December 13, 2024 01:09
@jandubois jandubois force-pushed the based-on branch 7 times, most recently from d651d02 to f3fbd7f Compare December 28, 2024 07:56
@jandubois jandubois force-pushed the based-on branch 5 times, most recently from 757d8f3 to 4303fd9 Compare January 1, 2025 07:08
alexandear and others added 8 commits February 7, 2025 17:17
Signed-off-by: Oleksandr Redko <[email protected]>
It allows a template to be constructed by merging values from
one or more base templates together. This merge process will
maintain all comments from both the template and the bases.

The template is assembled before an instance is created, and
only the combined template is stored as lima.yaml in the instance
directory.

There merging semantics are otherwise similar to how lima.yaml
is combined with override.yaml, defaults.yaml, and the builtin
default values.

Signed-off-by: Jan Dubois <[email protected]>
Signed-off-by: Jan Dubois <[email protected]>
The default `copy --embed` option will no longer embed template:// urls.

Signed-off-by: Jan Dubois <[email protected]>
@jandubois jandubois force-pushed the based-on branch 2 times, most recently from 05a151c to c9d9c92 Compare February 10, 2025 01:34
Instead of `base: template.yaml` the user can write:

```yaml
base:
- url: template.yaml
  digest: decafbad
```

Same thing for `file` properties of provisoning scripts and probes.

The digest values are currently being ignored; verification will happen
in a later PR.

Signed-off-by: Jan Dubois <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants