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 DeployTestRunner(namespace string) error
- func DeployTestRunnerWithInject(namespace, istioNamespace 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 MustCreateConfigMap(cm kubev1.ConfigMap)
- func MustCreateNs(ns string)
- func MustDeleteNs(ns string)
- func MustProjectRoot() string
- func MustTestFile(filename string) string
- func MustTestFiles() string
- func ProjectRoot() (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 BookinfoYaml = `` /* 4193-byte string literal not displayed */
View Source
const TestRunnerYaml = `` /* 561-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/istio/files/bookinfo.yaml
Functions ¶
func CreateConfigMap ¶ added in v0.3.8
func DeployBookInfoAppmesh ¶ added in v0.3.8
func DeployBookInfoIstio ¶ added in v0.3.8
func DeployTestRunner ¶
func IstioInject ¶
func KubectlApply ¶
func KubectlDelete ¶
func KubectlPortForward ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.