Documentation
¶
Index ¶
- func ApplyFile(ctx context.Context, k8s client.Client, filepath string) (result []string, err error)
- func CreateKubernetesCluster(ctx context.Context, t *testing.T) (*k3s.K3sContainer, error)
- func CreateSecretForTraefikHub(ctx context.Context, t *testing.T, k8s client.Client)
- func Delete(ctx context.Context, k8s client.Client, kind, name, ns, group, version string) error
- func HasNotHeader(header string) try.ResponseCondition
- func InstallTraefikHubAPIGW(ctx context.Context, t *testing.T, k8s client.Client) (string, error)
- func InstallTraefikHubAPIM(ctx context.Context, t *testing.T, k8s client.Client) (string, error)
- func InstallTraefikProxy(ctx context.Context, t *testing.T, k8s client.Client) (string, error)
- func LaunchHelmCommand(t *testing.T, arg ...string)
- func LaunchHelmUpgradeCommand(t *testing.T, arg ...string)
- func LaunchKubectl(t *testing.T, arg ...string) *bytes.Buffer
- func RestartDeployment(ctx context.Context, t *testing.T, k8s client.Client, name, ns string) error
- func WaitForJobCompleted(ctx context.Context, t *testing.T, k8s client.Client, interval time.Duration, ...) error
- func WaitForPodsReady(ctx context.Context, t *testing.T, k8s client.Client, interval time.Duration, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFile ¶
func ApplyFile(ctx context.Context, k8s client.Client, filepath string) (result []string, err error)
ApplyFile applies a yaml on k8s client
func CreateKubernetesCluster ¶
func HasNotHeader ¶
func HasNotHeader(header string) try.ResponseCondition
func InstallTraefikHubAPIGW ¶
InstallTraefikHubAPIGW install Traefik Hub with Helm and return LB IP
func InstallTraefikHubAPIM ¶
InstallTraefikHubAPIM install Traefik Hub API Management with Helm and return LB IP
func InstallTraefikProxy ¶
InstallTraefikProxy install Traefik Proxy with Helm and return LB IP
func LaunchHelmCommand ¶
LaunchHelmCommand execute `helm` CLI with arg and display stdout+stder with testcontainer logger
func LaunchHelmUpgradeCommand ¶
LaunchHelmUpgradeCommand execute `helm` CLI with arg and display stdout+stder with testcontainer logger
func LaunchKubectl ¶
LaunchKubectl execute `kubectl` CLI with arg and return stdout+stderr in a single string
func RestartDeployment ¶
func WaitForJobCompleted ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.