Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigMap(ns, name, data string, labels map[string]string) kubev1.ConfigMap
- func CreateConfigMap(cm kubev1.ConfigMap) error
- func CreateNs(ns string) error
- func CurlArgs(opts setup.CurlOpts) []string
- func DeleteNs(ns string) error
- func DeployBookInfoAppmesh(namespace string) error
- func DeployBookInfoIstio(namespace string) error
- func DeployBookInfoWithInject(namespace, istioNamespace string) error
- func DeployPrometheus(kube kubernetes.Interface, namespace string) error
- func DeployTestRunner(namespace string) error
- func DeployTestRunnerWithIstioInject(namespace, istioNamespace string) error
- func DeployTestRunnerWithLinkerdInject(namespace string) error
- func DeployTestService(namespace string) error
- func GetBuildInformation() (string, string, string, error)
- func HelmTemplate(args ...string) (string, error)
- func IstioInject(istioNamespace, input string) (string, error)
- func Kubectl(stdin io.Reader, args ...string) error
- func KubectlApply(namespace, yamlStr string) error
- func KubectlApplyFile(path string) error
- func KubectlCtx(ctx context.Context, stdin io.Reader, args ...string) error
- func KubectlDelete(namespace, yamlStr string) error
- func KubectlDeleteFile(path string) error
- func KubectlPortForward(ctx context.Context, namespace, deployment string, port int) error
- func LinkerdInject(input string) (string, error)
- func MustCreateConfigMap(cm kubev1.ConfigMap)
- func MustCreateNs(ns string)
- func MustDeleteNs(ns string)
- func MustProjectRoot() string
- func MustTestFile(filename string) string
- func MustTestFiles() string
- func PodExec(podLabels map[string]string, namespace string, command ...string) (string, error)
- func ProjectRoot() (string, error)
- func TeardownPrometheus(kube kubernetes.Interface, namespace string) error
- func TestGlooIngress(rootCtx context.Context, ...)
- func TestGlooInstall(glooName, superglooNamespace, glooNamespace, meshName string)
- func TestRunnerCurl(namespace string, opts setup.CurlOpts) (string, error)
- func TestRunnerCurlEventuallyShouldRespond(ctx context.Context, testrunnerNamespace string, opts setup.CurlOpts, ...)
Constants ¶
View Source
const (
AppmeshBookInfoYaml = bookinfoYaml + appmeshServices
)
View Source
const TestRunnerYaml = `` /* 981-byte string literal not displayed */
Variables ¶
View Source
var IstioBookInfoYaml = func() string { bookinfoYamlFile := MustTestFile("bookinfo.yaml") b, err := ioutil.ReadFile(bookinfoYamlFile) if err != nil { log.Fatalf("failed to read bookinfo for test: %v", err) } return string(b) }()
loads bookinfo from <root>/test/e2e/files/bookinfo.yaml
View Source
var TestServiceYaml = func() string { file := MustTestFile("test-service.yaml") b, err := ioutil.ReadFile(file) if err != nil { log.Fatalf("failed to read file for test: %v", err) } return string(b) }()
loads test-service from <root>/test/e2e/files/test-service.yaml
Functions ¶
func CreateConfigMap ¶ added in v0.3.8
func DeployBookInfoAppmesh ¶ added in v0.3.8
func DeployBookInfoIstio ¶ added in v0.3.8
func DeployPrometheus ¶ added in v0.3.13
func DeployPrometheus(kube kubernetes.Interface, namespace string) error
func DeployTestRunner ¶
func DeployTestRunnerWithIstioInject ¶ added in v0.3.12
func DeployTestRunnerWithLinkerdInject ¶ added in v0.3.12
func DeployTestService ¶ added in v0.3.12
func GetBuildInformation ¶ added in v0.3.23
Returns: 1. the current BUILD_ID 2. the URL where the helm chart for this build is located 3. prefix of the repository where the images for this build are located (e.g. quay.io/solo-io)
func HelmTemplate ¶ added in v0.3.13
func IstioInject ¶
func KubectlApply ¶
func KubectlApplyFile ¶ added in v0.3.22
func KubectlDelete ¶
func KubectlDeleteFile ¶ added in v0.3.22
func KubectlPortForward ¶
func LinkerdInject ¶ added in v0.3.12
func MustCreateConfigMap ¶ added in v0.3.8
func MustCreateNs ¶ added in v0.3.8
func MustCreateNs(ns string)
func MustDeleteNs ¶ added in v0.3.8
func MustDeleteNs(ns string)
func MustProjectRoot ¶ added in v0.3.8
func MustProjectRoot() string
func MustTestFile ¶ added in v0.3.8
func MustTestFiles ¶ added in v0.3.8
func MustTestFiles() string
func ProjectRoot ¶ added in v0.3.8
returns absolute path of project root
func TeardownPrometheus ¶ added in v0.3.13
func TeardownPrometheus(kube kubernetes.Interface, namespace string) error
func TestGlooIngress ¶ added in v0.3.17
func TestGlooInstall ¶ added in v0.3.17
func TestGlooInstall(glooName, superglooNamespace, glooNamespace, meshName string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.