infra

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PublisherRuby = `` /* 441-byte string literal not displayed */

PublisherRuby contains fixed response to be changed by tests

Variables

This section is empty.

Functions

func AllPodsReady added in v0.0.2

func AllPodsReady(ns string) func() bool

AllPodsReady checks whether all the pods (and their containers) in the given namespace are in Ready state

func BuildOperator

func BuildOperator() (registry string)

BuildOperator builds istio-workspace operator and pushes it to specified registry

func BuildTestService

func BuildTestService(namespace string) (registry string)

BuildTestService builds istio-workspace-test service and pushes it to specified registry

func BuildTestServicePreparedImage added in v0.0.2

func BuildTestServicePreparedImage(callerName, namespace string) (registry string)

BuildTestServicePreparedImage builds istio-workspace-test-prepared service and pushes it to specified registry

func CleanupTestScenario added in v0.0.2

func CleanupTestScenario(namespace string)

func ClientVersion added in v0.0.2

func ClientVersion() int

func CreateFile

func CreateFile(filePath, content string)

CreateFile creates file under defined path with a given content

func CreateNewApp

func CreateNewApp(name string)

CreateNewApp creates new project with a given name, deploys simple datawire/hello-world app and exposes route to it service

func DeleteFile added in v0.0.2

func DeleteFile(filePath string)

DeleteFile deletes file under defined path

func DeleteProjectCmd added in v0.0.2

func DeleteProjectCmd(name string) string

func DeployHelloWorldCmd added in v0.0.2

func DeployHelloWorldCmd(name, ns string) string

func DeployTestScenario

func DeployTestScenario(scenario, namespace string)

DeployTestScenario deploys a test scenario into the specified namespace

func DumpTelepresenceLog added in v0.0.2

func DumpTelepresenceLog(dir string)

DumpTelepresenceLog dumps telepresence log if exists

func GetAllPods added in v0.0.2

func GetAllPods(ns string) []string

GetAllPods returns names of all pods from a given namespace

func GetClusterHost added in v0.0.2

func GetClusterHost() string

func GetDockerRegistryInternal added in v0.0.2

func GetDockerRegistryInternal() string

GetDockerRegistryInternal returns the internal address for the docker registry

func GetEvents added in v0.0.2

func GetEvents(ns string)

GetEvents returns all events which occurred for a given namespace

func GetGatewayHost added in v0.0.2

func GetGatewayHost(namespace string) string

GetGatewayHost returns the host the Gateway in the scenario is bound to (http header Host)

func GetIstioIngressHostname added in v0.0.2

func GetIstioIngressHostname() string

func GetIstioNamespace added in v0.0.2

func GetIstioNamespace() string

func GetProjectLabels added in v0.0.2

func GetProjectLabels(namespace string) string

GetProjectLabels returns labels for a given namespace as a string

func InstallLocalOperator added in v0.0.2

func InstallLocalOperator(namespace string)

func LoadIstio

func LoadIstio()

LoadIstio calls make load-istio target and waits until operator sets up the mesh

func LoginAsTestPowerUser added in v0.0.2

func LoginAsTestPowerUser()

func LogsOf added in v0.0.2

func LogsOf(ns, pod string) string

LogsOf returns logs of all containers in the pod

func ModifyServerCodeIn

func ModifyServerCodeIn(tmpDir string)

ModifyServerCodeIn changes the code base of a simple python-based web server and puts it in the defined directory

func NewProjectCmd added in v0.0.2

func NewProjectCmd(name string) string

func OriginalServerCodeIn

func OriginalServerCodeIn(tmpDir string)

OriginalServerCodeIn puts the original code base of a simple python-based web server in the defined directory

func PushOperatorImage added in v0.0.2

func PushOperatorImage(namespace string)

PushOperatorImage deploys istio-workspace operator into specified namespace

func StateOf added in v0.0.2

func StateOf(ns, pod string)

StateOf returns state of the pod

func UpdateSecurityConstraintsFor

func UpdateSecurityConstraintsFor(namespace string)

UpdateSecurityConstraintsFor applies anyuid and privileged constraints to a given namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳