clusterup

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterUp added in v1.1.0

func ClusterUp(config *ClusterUpConfig, clusterUpParams map[string]string, runner util.Runner) error

ClusterUp downloads and installs the oc binary in order to run 'cluster up'

func DetermineOcVersion added in v1.2.0

func DetermineOcVersion(requestedVersion string) string

DetermineOcVersion returns the oc version to use. If the requested version is < the base line version we use baseline oc to provision the requested OpenShift version. If the requested OpenShift version is >= the baseline, we align the oc version with the requested OpenShift version.

func EnsureHostDirectoriesExist

func EnsureHostDirectoriesExist(host *host.Host, dirs []string) error

EnsureHostDirectoriesExist ensures that the specified directories exist on the VM and creates them if not.

func GetExecutionContext added in v1.1.0

func GetExecutionContext(ip string, routingSuffix string, addOnEnv []string, ocRunner *oc.OcRunner, sshCommander provision.SSHCommander) (*command.ExecutionContext, error)

GetExecutionContext creates an ExecutionContext used for variable interpolation during add-on application. The context contains variables to interpolate during add-on execution, as well as the means to communicate with the VM (SSHCommander) and OpenShift (OcRunner).

func PostClusterUp added in v1.1.0

func PostClusterUp(clusterUpConfig *ClusterUpConfig, sshCommander provision.SSHCommander, addOnManager *manager.AddOnManager) error

PostClusterUp runs the Minishift specific provisioning after 'cluster up' has run

func ValidateOpenshiftMinVersion added in v1.1.0

func ValidateOpenshiftMinVersion(version string, minVersion string) (bool, error)

Types

type ClusterUpConfig added in v1.1.0

type ClusterUpConfig struct {
	OpenShiftVersion string
	MachineName      string
	Ip               string
	Port             int
	RoutingSuffix    string
	HostPvDir        string
	User             string
	Project          string
	KubeConfigPath   string
	OcPath           string
	AddonEnv         []string
	PublicHostname   string
}

Jump to

Keyboard shortcuts

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