kubernetesk8s.io/kubernetes/test/e2e_node/remote Index | Files

package remote

import "k8s.io/kubernetes/test/e2e_node/remote"

Index

Constants

const (
	CNIRelease   = "07a8a28637e97b22eb8dfe710eeae1344f69d16e"
	CNIDirectory = "cni"
)

Variables

var CNIURL = fmt.Sprintf("https://storage.googleapis.com/kubernetes-release/network-plugins/cni-%s.tar.gz", CNIRelease)

Functions

func AddHostnameIp

func AddHostnameIp(hostname, ip string)

func CreateTestArchive

func CreateTestArchive() (string, error)

CreateTestArchive builds the local source and creates a tar archive e2e_node_test.tar.gz containing the binaries k8s required for node e2e tests

func GetHostnameOrIp

func GetHostnameOrIp(hostname string) string

GetHostnameOrIp converts hostname into ip and apply user if necessary.

func RunRemote

func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string, setupNode bool, testArgs string, ginkgoFlags string) (string, bool, error)

Returns the command output, whether the exit was ok, and any errors

func RunSshCommand

func RunSshCommand(cmd string, args ...string) (string, error)

runSshCommand executes the ssh or scp command, adding the flag provided --ssh-options

Source Files

remote.go

Version
v1.4.8
Published
Jan 12, 2017
Platform
js/wasm
Imports
14 packages
Last checked
3 minutes ago

Tools for package owners.