constants

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 15

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.9.0"
	RefactoredOcVersion              = "v3.10.0-alpha.0" // From v3.10.0 oc binary is refactored and don't have lot of options by default.
	DefaultMemory                    = "4GB"
	DefaultCPUS                      = 2
	DefaultDiskSize                  = "20GB"
	UpdateMarkerFileName             = "updated"
	DefaultMachineName               = "minishift"
	DefaultProfileName               = "minishift"
)
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")

	DefaultB2dIsoUrl    = "https://github.com/minishift/minishift-b2d-iso/releases/download/" + version.GetB2dIsoVersion() + "/" + "minishift-b2d.iso"
	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 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 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