From 0c32b5dcf7fde7ecb9779fe62797177db86b0bd5 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Sun, 5 Sep 2021 06:38:09 +0900 Subject: [PATCH] yaml: mark "Env" experimental for now 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 --- pkg/limayaml/default.yaml | 5 ++++- pkg/limayaml/limayaml.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/limayaml/default.yaml b/pkg/limayaml/default.yaml index 075fb8c06b4..88c0b5931dd 100644 --- a/pkg/limayaml/default.yaml +++ b/pkg/limayaml/default.yaml @@ -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 diff --git a/pkg/limayaml/limayaml.go b/pkg/limayaml/limayaml.go index 21b9d5788a2..56f7b6e976c 100644 --- a/pkg/limayaml/limayaml.go +++ b/pkg/limayaml/limayaml.go @@ -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