@@ -7,32 +7,32 @@ import (
7
7
)
8
8
9
9
type LimaYAML struct {
10
- VMType * VMType `yaml:"vmType,omitempty" json:"vmType,omitempty"`
11
- Arch * Arch `yaml:"arch,omitempty" json:"arch,omitempty"`
12
- Images []Image `yaml:"images" json:"images"` // REQUIRED
13
- CPUType map [Arch ]string `yaml:"cpuType,omitempty" json:"cpuType,omitempty"`
14
- CPUs * int `yaml:"cpus,omitempty" json:"cpus,omitempty"`
15
- Memory * string `yaml:"memory,omitempty" json:"memory,omitempty"` // go-units.RAMInBytes
16
- Disk * string `yaml:"disk,omitempty" json:"disk,omitempty"` // go-units.RAMInBytes
17
- AdditionalDisks []Disk `yaml:"additionalDisks,omitempty" json:"additionalDisks,omitempty"`
18
- Mounts []Mount `yaml:"mounts,omitempty" json:"mounts,omitempty"`
19
- MountType * MountType `yaml:"mountType,omitempty" json:"mountType,omitempty"`
20
- SSH SSH `yaml:"ssh,omitempty" json:"ssh,omitempty"` // REQUIRED (FIXME)
21
- Firmware Firmware `yaml:"firmware,omitempty" json:"firmware,omitempty"`
22
- Video Video `yaml:"video,omitempty" json:"video,omitempty"`
23
- Provision []Provision `yaml:"provision,omitempty" json:"provision,omitempty"`
24
- Containerd Containerd `yaml:"containerd,omitempty" json:"containerd,omitempty"`
25
- Probes []Probe `yaml:"probes,omitempty" json:"probes,omitempty"`
26
- PortForwards []PortForward `yaml:"portForwards,omitempty" json:"portForwards,omitempty"`
27
- Message string `yaml:"message,omitempty" json:"message,omitempty"`
28
- Networks []Network `yaml:"networks,omitempty" json:"networks,omitempty"`
29
- Network NetworkDeprecated `yaml:"network,omitempty" json:"network,omitempty"` // DEPRECATED, use ` networks` instead
30
- Env map [string ]string `yaml:"env,omitempty" json:"env,omitempty"`
31
- DNS []net.IP `yaml:"dns,omitempty" json:"dns,omitempty"`
32
- HostResolver HostResolver `yaml:"hostResolver,omitempty" json:"hostResolver,omitempty"`
33
- UseHostResolver * bool `yaml:"useHostResolver,omitempty" json:"useHostResolver,omitempty"` // DEPRECATED, use `HostResolver.Enabled ` instead
34
- PropagateProxyEnv * bool `yaml:"propagateProxyEnv,omitempty" json:"propagateProxyEnv,omitempty"`
35
- CACertificates CACertificates `yaml:"caCerts,omitempty" json:"caCerts,omitempty"`
10
+ VMType * VMType `yaml:"vmType,omitempty" json:"vmType,omitempty"`
11
+ Arch * Arch `yaml:"arch,omitempty" json:"arch,omitempty"`
12
+ Images []Image `yaml:"images" json:"images"` // REQUIRED
13
+ CPUType map [Arch ]string `yaml:"cpuType,omitempty" json:"cpuType,omitempty"`
14
+ CPUs * int `yaml:"cpus,omitempty" json:"cpus,omitempty"`
15
+ Memory * string `yaml:"memory,omitempty" json:"memory,omitempty"` // go-units.RAMInBytes
16
+ Disk * string `yaml:"disk,omitempty" json:"disk,omitempty"` // go-units.RAMInBytes
17
+ AdditionalDisks []Disk `yaml:"additionalDisks,omitempty" json:"additionalDisks,omitempty"`
18
+ Mounts []Mount `yaml:"mounts,omitempty" json:"mounts,omitempty"`
19
+ MountType * MountType `yaml:"mountType,omitempty" json:"mountType,omitempty"`
20
+ SSH SSH `yaml:"ssh,omitempty" json:"ssh,omitempty"` // REQUIRED (FIXME)
21
+ Firmware Firmware `yaml:"firmware,omitempty" json:"firmware,omitempty"`
22
+ Video Video `yaml:"video,omitempty" json:"video,omitempty"`
23
+ Provision []Provision `yaml:"provision,omitempty" json:"provision,omitempty"`
24
+ Containerd Containerd `yaml:"containerd,omitempty" json:"containerd,omitempty"`
25
+ Probes []Probe `yaml:"probes,omitempty" json:"probes,omitempty"`
26
+ PortForwards []PortForward `yaml:"portForwards,omitempty" json:"portForwards,omitempty"`
27
+ Message string `yaml:"message,omitempty" json:"message,omitempty"`
28
+ Networks []Network `yaml:"networks,omitempty" json:"networks,omitempty"`
29
+ // `network` was deprecated in Lima v0.7.0, removed in Lima v0.14.0. Use ` networks` instead.
30
+ Env map [string ]string `yaml:"env,omitempty" json:"env,omitempty"`
31
+ DNS []net.IP `yaml:"dns,omitempty" json:"dns,omitempty"`
32
+ HostResolver HostResolver `yaml:"hostResolver,omitempty" json:"hostResolver,omitempty"`
33
+ // `useHostResolver` was deprecated in Lima v0.8.1, removed in Lima v0.14.0. Use `hostResolver.enabled ` instead.
34
+ PropagateProxyEnv * bool `yaml:"propagateProxyEnv,omitempty" json:"propagateProxyEnv,omitempty"`
35
+ CACertificates CACertificates `yaml:"caCerts,omitempty" json:"caCerts,omitempty"`
36
36
}
37
37
38
38
type Arch = string
@@ -204,12 +204,6 @@ type CACertificates struct {
204
204
// Types have been renamed to turn all references to the old names into compiler errors,
205
205
// and to avoid accidental usage in new code.
206
206
207
- type NetworkDeprecated struct {
208
- VDEDeprecated []VDEDeprecated `yaml:"vde,omitempty" json:"vde,omitempty"`
209
- // migrate will be true when `network.VDE` has been copied to `networks` by FillDefaults()
210
- migrated bool
211
- }
212
-
213
207
type VDEDeprecated struct {
214
208
VNL string `yaml:"vnl,omitempty" json:"vnl,omitempty"`
215
209
SwitchPort uint16 `yaml:"switchPort,omitempty" json:"switchPort,omitempty"` // VDE Switch port, not TCP/UDP port
0 commit comments