Documentation ¶
Index ¶
- Constants
- func BuildDockerImage(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func ClusterName(ctx context.Context) string
- func ConsulCA(ctx context.Context) string
- func ConsulClient(ctx context.Context) consul.Client
- func ConsulGRPCPort(ctx context.Context) int
- func ConsulHTTPPort(ctx context.Context) int
- func ConsulIP(ctx context.Context) string
- func ConsulInitialManagementToken(ctx context.Context) string
- func ConsulNamespace(ctx context.Context) string
- func CreateConsulACLPolicy(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func CreateConsulAuthMethod() env.Func
- func CreateKindCluster(clusterName string) env.Func
- func CreateServiceAccount(namespace, accountName, clusterRolePath string) env.Func
- func CreateTestConsulContainer(name, namespace string) env.Func
- func CreateTestGatewayServer(namespace string) env.Func
- func CrossCompileProject(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func DeployHTTPMeshService(ctx context.Context, cfg *envconf.Config, consulNamespace ...string) (*core.Service, error)
- func DeployTCPMeshService(ctx context.Context, cfg *envconf.Config, consulNamespace ...string) (*core.Service, error)
- func DestroyTestGatewayServer(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func DockerImage(ctx context.Context) string
- func ExtraDockerImages() []string
- func ExtraTCPTLSPort(ctx context.Context) int
- func HTTPFlattenedPort(ctx context.Context) int
- func HTTPPort(ctx context.Context) int
- func HTTPReferenceGrantPort(ctx context.Context) int
- func HostRoute(ctx context.Context) string
- func InstallCRDs(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func IsEnterprise() bool
- func K8sConsulGatewayServiceToken(ctx context.Context) string
- func K8sConsulServiceToken(ctx context.Context) string
- func LoadKindDockerImage(clusterName string) env.Func
- func Namespace(ctx context.Context) string
- func NamespaceMirroring(ctx context.Context) bool
- func ParentRefChangeFirstGatewayPort(ctx context.Context) int
- func ParentRefChangeSecondGatewayPort(ctx context.Context) int
- func SetClusterName(name string) env.Func
- func SetConsulNamespace(namespace *string) env.Func
- func SetHostRoute(ctx context.Context, hostRoute string) context.Context
- func SetNamespace(namespace string) env.Func
- func SetNamespaceMirroring(namespaceMirroring bool) env.Func
- func SetUpStack(hostRoute string) env.Func
- func TCPPort(ctx context.Context) int
- func TCPReferenceGrantPort(ctx context.Context) int
- func TCPTLSPort(ctx context.Context) int
- func TearDownStack(ctx context.Context, cfg *envconf.Config) (context.Context, error)
Constants ¶
View Source
const (
EnvoyImage = "envoyproxy/envoy:v1.24-latest"
)
Variables ¶
This section is empty.
Functions ¶
func BuildDockerImage ¶
func ClusterName ¶
func ConsulGRPCPort ¶
func ConsulHTTPPort ¶
func ConsulNamespace ¶
func CreateConsulACLPolicy ¶
func CreateConsulAuthMethod ¶
func CreateKindCluster ¶
func CreateServiceAccount ¶
func CreateTestGatewayServer ¶
func CrossCompileProject ¶
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 DockerImage ¶
func ExtraDockerImages ¶
func ExtraDockerImages() []string
func ExtraTCPTLSPort ¶
func HTTPFlattenedPort ¶ added in v0.2.0
func HTTPReferenceGrantPort ¶ added in v0.4.0
func InstallCRDs ¶ added in v0.4.0
func IsEnterprise ¶
func IsEnterprise() bool
func K8sConsulGatewayServiceToken ¶ added in v0.5.2
func K8sConsulServiceToken ¶ added in v0.5.2
func LoadKindDockerImage ¶
func NamespaceMirroring ¶ added in v0.5.2
func ParentRefChangeFirstGatewayPort ¶ added in v0.3.0
func ParentRefChangeSecondGatewayPort ¶ added in v0.3.0
func SetClusterName ¶
func SetConsulNamespace ¶ added in v0.5.2
func SetNamespace ¶
func SetNamespaceMirroring ¶ added in v0.5.2
func SetUpStack ¶
func TCPReferenceGrantPort ¶ added in v0.4.0
func TCPTLSPort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.