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 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 KubectlCtx(ctx context.Context, stdin io.Reader, args ...string) error
- func KubectlDelete(namespace, yamlStr 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 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 HelmTemplate ¶ added in v0.3.13
func IstioInject ¶
func KubectlApply ¶
func KubectlDelete ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.