constants

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 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"
	MinOpenshiftSupportedVersion = "v1.4.1"
	DefaultMemory                = "2GB"
	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")
	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"
	DefaultMinikubeIsoURL = "https://storage.googleapis.com/minikube/iso/minikube-" + version.GetMinikubeIsoVersion() + ".iso"
)
View Source
var SupportedVMDrivers = [...]string{
	"virtualbox",
	"kvm",
}

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() string

GetProfileHomeDir determines the Minishift home directory for the profile.

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