e2e

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvoyImage = "envoyproxy/envoy:v1.24-latest"
)

Variables

This section is empty.

Functions

func BuildDockerImage

func BuildDockerImage(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func ClusterName

func ClusterName(ctx context.Context) string

func ConsulCA

func ConsulCA(ctx context.Context) string

func ConsulClient

func ConsulClient(ctx context.Context) consul.Client

func ConsulGRPCPort

func ConsulGRPCPort(ctx context.Context) int

func ConsulHTTPPort

func ConsulHTTPPort(ctx context.Context) int

func ConsulIP

func ConsulIP(ctx context.Context) string

func ConsulInitialManagementToken

func ConsulInitialManagementToken(ctx context.Context) string

func ConsulNamespace

func ConsulNamespace(ctx context.Context) string

func CreateConsulACLPolicy

func CreateConsulACLPolicy(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func CreateConsulAuthMethod

func CreateConsulAuthMethod() env.Func

func CreateServiceAccount

func CreateServiceAccount(namespace, accountName, clusterRolePath string) env.Func

func CreateTestConsulContainer

func CreateTestConsulContainer(name, namespace string) env.Func

func CreateTestGatewayServer

func CreateTestGatewayServer(namespace string) env.Func

func CrossCompileProject

func CrossCompileProject(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func DeployHTTPMeshService

func DeployHTTPMeshService(ctx context.Context, cfg *envconf.Config, consulNamespace ...string) (*core.Service, error)

DeployHTTPMeshService deploys an envoy proxy with roughly the same logic that consul-k8s uses in its connect-inject registration

func DeployTCPMeshService

func DeployTCPMeshService(ctx context.Context, cfg *envconf.Config, consulNamespace ...string) (*core.Service, error)

DeployTCPMeshService deploys an envoy proxy with roughly the same logic that consul-k8s uses in its connect-inject registration

func DestroyTestGatewayServer

func DestroyTestGatewayServer(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func DockerImage

func DockerImage(ctx context.Context) string

func ExtraDockerImages

func ExtraDockerImages() []string

func ExtraTCPTLSPort

func ExtraTCPTLSPort(ctx context.Context) int

func HTTPFlattenedPort added in v0.2.0

func HTTPFlattenedPort(ctx context.Context) int

func HTTPPort

func HTTPPort(ctx context.Context) int

func HTTPReferenceGrantPort added in v0.4.0

func HTTPReferenceGrantPort(ctx context.Context) int

func HostRoute

func HostRoute(ctx context.Context) string

func InstallCRDs added in v0.4.0

func InstallCRDs(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func IsEnterprise

func IsEnterprise() bool

func K8sConsulGatewayServiceToken added in v0.5.2

func K8sConsulGatewayServiceToken(ctx context.Context) string

func K8sConsulServiceToken added in v0.5.2

func K8sConsulServiceToken(ctx context.Context) string

func LoadKindDockerImage

func LoadKindDockerImage(clusterName string) env.Func

func Namespace

func Namespace(ctx context.Context) string

func NamespaceMirroring added in v0.5.2

func NamespaceMirroring(ctx context.Context) bool

func ParentRefChangeFirstGatewayPort added in v0.3.0

func ParentRefChangeFirstGatewayPort(ctx context.Context) int

func ParentRefChangeSecondGatewayPort added in v0.3.0

func ParentRefChangeSecondGatewayPort(ctx context.Context) int

func SetClusterName

func SetClusterName(name string) env.Func

func SetConsulNamespace added in v0.5.2

func SetConsulNamespace(namespace *string) env.Func

func SetHostRoute

func SetHostRoute(ctx context.Context, hostRoute string) context.Context

func SetNamespace

func SetNamespace(namespace string) env.Func

func SetNamespaceMirroring added in v0.5.2

func SetNamespaceMirroring(namespaceMirroring bool) env.Func

func SetUpStack

func SetUpStack(hostRoute string) env.Func

func TCPPort

func TCPPort(ctx context.Context) int

func TCPReferenceGrantPort added in v0.4.0

func TCPReferenceGrantPort(ctx context.Context) int

func TCPTLSPort

func TCPTLSPort(ctx context.Context) int

func TearDownStack

func TearDownStack(ctx context.Context, cfg *envconf.Config) (context.Context, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL