Skip to content

Commit

Permalink
yaml: mark "Env" experimental for now
Browse files Browse the repository at this point in the history
The syntax and the behavior of this field is still under discussion (PR 200),
so this field is treated as experimental in the next upcoming release (v0.6.3).

Probably we can move this out of experimental in v0.6.4.

Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Sep 4, 2021
1 parent f8f3659 commit 0c32b5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/limayaml/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ network:
# hostPortRange: [1024, 65535]
# # Any port still not matched by a rule will not be forwarded (ignored)

# # extra environment variables that will be loaded into the VM at start up
# Extra environment variables that will be loaded into the VM at start up.
# These variables are currently only consumed by internal init scripts, not by the user shell.
# This field is experimental and may change in a future release of Lima.
# https://github.com/lima-vm/lima/pull/200
# env:
# KEY: value

Expand Down
2 changes: 1 addition & 1 deletion pkg/limayaml/limayaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type LimaYAML struct {
Probes []Probe `yaml:"probes,omitempty"`
PortForwards []PortForward `yaml:"portForwards,omitempty"`
Network Network `yaml:"network,omitempty"`
Env map[string]*string `yaml:"env,omitempty"`
Env map[string]*string `yaml:"env,omitempty"` // EXPERIMENAL, see default.yaml
}

type Arch = string
Expand Down

0 comments on commit 0c32b5d

Please sign in to comment.