openshift

package
v4.0.0-0.14.0+incompat... Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDNSPort = 8053
	DefaultSvcCIDR = "172.30.0.0/16"

	// TODO: Figure out why cluster up relies on this name
	OriginContainerName               = "origin"
	EtcdContainerName                 = "etcd"
	BootkubeRenderContainerName       = "bootkube-render"
	OperatorRenderContainerNameSuffix = "-operator-render"
	BootkubeStartContainerName        = "bootkube-start"
	ContainerName                     = "origin"
)

Variables

View Source
var (
	ClusterUpContainers = sets.NewString(
		OriginContainerName,
		EtcdContainerName,
		"kube-apiserver"+OperatorRenderContainerNameSuffix,
		BootkubeRenderContainerName,
		BootkubeStartContainerName,
	)
	BasePorts    = []int{4001, 7001, 6443, 10250, DefaultDNSPort}
	RouterPorts  = []int{80, 443}
	AllPorts     = append(RouterPorts, BasePorts...)
	SocatPidFile = filepath.Join(homedir.HomeDir(), kclientcmd.RecommendedHomeDir, "socat-6443.pid")
)

Functions

func CheckSocat

func CheckSocat() error

func ErrPortsNotAvailable

func ErrPortsNotAvailable(ports []int) error

func IsPortsNotAvailableErr

func IsPortsNotAvailableErr(err error) bool

func KillExistingSocat

func KillExistingSocat() error

func SaveSocatPid

func SaveSocatPid(pid int) error

func UnavailablePorts

func UnavailablePorts(err error) []int

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

Helper contains methods and utilities to help with OpenShift startup

func NewHelper

func NewHelper(dockerHelper *util.Helper, image, containerName string) *Helper

NewHelper creates a new OpenShift helper

func (*Helper) DetermineNodeHost

func (h *Helper) DetermineNodeHost(hostConfigDir string, names ...string) (string, error)

func (*Helper) OtherIPs

func (h *Helper) OtherIPs(excludeIP string) ([]string, error)

OtherIPs tries to find other IPs besides the argument IP for the Docker host

func (*Helper) ServerIP

func (h *Helper) ServerIP() (string, error)

ServerIP retrieves the Server ip through the openshift start command

func (*Helper) StartSocatTunnel

func (h *Helper) StartSocatTunnel(bindIP string) error

func (*Helper) TestIP

func (h *Helper) TestIP(ip string) error

func (*Helper) TestPorts

func (h *Helper) TestPorts(ports []int) error

Jump to

Keyboard shortcuts

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