-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
limayaml: add a
param
field for defining variables used to customiz…
…e scripts and other elements within `lima.yaml`. The defined variables can be referenced within `lima.yaml` as `{{.Param.Key}}`. The fields where this can be utilized are as follows: - `provision[%d].script` - `probes[%d].script` - `copyToHost[%d].{guest,host}` - `portForwards[%d].{guestSocket,hostSocket}` Signed-off-by: Norio Nomura <[email protected]> limayaml: add a check to verify whether the variables defined in `param` are actually used This check needs to be performed before the template is expanded, so it should be added before calling `FillDefault()`. Signed-off-by: Norio Nomura <[email protected]> limayaml: add `{{if .Param.rootful}}{{else}}{{end}}` pattern to `TestValidateParamIsUsed` Signed-off-by: Norio Nomura <[email protected]> default.yaml: add a comment on the `probes` that supports variable substitution Signed-off-by: Norio Nomura <[email protected]>
- Loading branch information
1 parent
be93284
commit 6331b56
Showing
11 changed files
with
183 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.