-
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 image and repo defaults for podman machine
Signed-off-by: Jason T. Greene <[email protected]>
- Loading branch information
Showing
7 changed files
with
75 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package config | ||
|
||
// getDefaultImage returns the default machine image stream | ||
// On Windows this refers to the Fedora major release number | ||
func getDefaultMachineImage() string { | ||
return "35" | ||
} | ||
|
||
// getDefaultMachineUser returns the user to use for rootless podman | ||
func getDefaultMachineUser() string { | ||
return "user" | ||
} | ||
|
||
// getDefaultRootlessNetwork returns the default rootless network configuration. | ||
// It is "cni" for non-Linux OSes (to better support `podman-machine` usecases). | ||
func getDefaultRootlessNetwork() string { | ||
return "cni" | ||
} | ||
|
||
// isCgroup2UnifiedMode returns whether we are running in cgroup2 mode. | ||
func isCgroup2UnifiedMode() (isUnified bool, isUnifiedErr error) { | ||
return false, nil | ||
} | ||
|
||
// getDefaultProcessLimits returns the nofile and nproc for the current process in ulimits format | ||
func getDefaultProcessLimits() []string { | ||
return []string{} | ||
} |