constants

package
v1.34.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIServerPort                    = 8443             // Port that the API server should listen on
	MiniShiftEnvPrefix               = "MINISHIFT"      // Prefix for the environmental variables
	MiniShiftHomeEnv                 = "MINISHIFT_HOME" // Environment variable used to change the Minishift home directory
	VersionPrefix                    = "v"
	MinimumSupportedOpenShiftVersion = "v3.10.0"
	DefaultMemory                    = "4GB"
	DefaultCPUS                      = 2
	DefaultDiskSize                  = "20GB"
	UpdateMarkerFileName             = "updated"
	DefaultMachineName               = "minishift"
	DefaultProfileName               = "minishift"
	DefaultTimeZone                  = "UTC" // This is what we have in our ISO kickstart template.
)
View Source
const DefaultVMDriver = "kvm"
View Source
const OC_BINARY_NAME = "oc"

Variables

View Source
var (
	// Fix for windows
	Minipath    = GetMinishiftHomeDir()
	ProfileName = DefaultProfileName
	MachineName = DefaultMachineName // Name to use for the VM

	KubeConfigPath        = filepath.Join(Minipath, "machines", MachineName+"_kubeconfig")
	ConfigFile            = MakeMiniPath("config", "config.json")
	GlobalConfigFile      = filepath.Join(Minipath, "config", "global.json")
	AllInstanceConfigPath = filepath.Join(Minipath, "config", "allinstances.json")

	DefaultCentOsIsoUrl = "https://github.com/minishift/minishift-centos-iso/releases/download/" + version.GetCentOsIsoVersion() + "/" + "minishift-centos7.iso"
)
View Source
var SupportedVMDrivers = [...]string{
	"virtualbox",
	"kvm",
	"generic",
}

Functions

func GetHomeDir added in v1.26.0

func GetHomeDir() string

GetHomeDir returns the home directory for the current user

func GetMinishiftHomeDir added in v1.6.0

func GetMinishiftHomeDir() string

getMinishiftHomeDir determines the Minishift home directory where all state information is kept. The default directory is .minishift in the users HOME directory which can be overwritten by the MINISHIFT_HOME environment variable

func GetMinishiftProfilesDir added in v1.31.0

func GetMinishiftProfilesDir() string

GetMinishiftProfilesDir returns the path MINISHIFT_HOME/profiles

func GetProfileConfigFile added in v1.32.0

func GetProfileConfigFile(profile string) string

func GetProfileHomeDir added in v1.6.0

func GetProfileHomeDir(profile string) string

GetProfileHomeDir determines the base directory for the specified profile name

func MakeMiniPath

func MakeMiniPath(fileName ...string) string

MakeMiniPath is a utility to calculate a relative path to our directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL