-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add machine table to containers.conf
Add machine teable to configure podman machine options. Move machine_image to the machine table, and add disk size to the machine table. Signed-off-by: Ashley Cui <[email protected]>
- Loading branch information
1 parent
458d21c
commit 0ee6047
Showing
6 changed files
with
66 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,8 @@ type Config struct { | |
Containers ContainersConfig `toml:"containers"` | ||
// Engine specifies how the container engine based on Engine will run | ||
Engine EngineConfig `toml:"engine"` | ||
// Machine specifies configurations of podman machine VMs | ||
Machine MachineConfig `toml:"machine"` | ||
// Network section defines the configuration of CNI Plugins | ||
Network NetworkConfig `toml:"network"` | ||
// Secret section defines configurations for the secret management | ||
|
@@ -281,9 +283,6 @@ type EngineConfig struct { | |
// MachineEnabled indicates if Podman is running in a podman-machine VM | ||
MachineEnabled bool `toml:"machine_enabled,omitempty"` | ||
|
||
// MachineImage is the image used when creating a podman-machine VM | ||
MachineImage string `toml:"machine_image,omitempty"` | ||
|
||
// MultiImageArchive - if true, the container engine allows for storing | ||
// archives (e.g., of the docker-archive transport) with multiple | ||
// images. By default, Podman creates single-image archives. | ||
|
@@ -490,6 +489,14 @@ type SecretConfig struct { | |
Opts map[string]string `toml:"opts,omitempty"` | ||
} | ||
|
||
// MachineConfig represents the "machine" TOML config table | ||
type MachineConfig struct { | ||
// DiskSize is the size of the disk in GB created when init-ing a podman-machine VM | ||
DiskSize uint64 `toml:"disk_size,omitempty"` | ||
// MachineImage is the image used when init-ing a podman-machine VM | ||
Image string `toml:"image,omitempty"` | ||
} | ||
|
||
// Destination represents destination for remote service | ||
type Destination struct { | ||
// URI, required. Example: ssh://[email protected]:22/run/podman/podman.sock | ||
|
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