constants

package
v0.11.6-merged-prereqs Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ConsulEndpointMetadataMatchTrue  = "1"
	ConsulEndpointMetadataMatchFalse = "0"

	// We use these prefixes to avoid shadowing in case a data center name is the same as a tag name
	ConsulTagKeyPrefix        = "tag_"
	ConsulDataCenterKeyPrefix = "dc_"
)
View Source
const (
	// Env variable that indicates the Istio mtls integration is enabled via istioSDS.enabled on the helm chart.
	// If enabled, an istio-proxy container is assumed to exist alongside the gateway proxy.
	// Note: This value should be inherited at installation time, to determine if the istio sidecar is injected.
	// In the interim, we use an env variable to control the value
	IstioMtlsEnabled = "GG_EXPERIMENTAL_ISTIO_MTLS_SDS_ENABLED"

	// Env variable that indicates the Istio sidecar injection is enabled via istioIntegration.enableIstioSidecarOnGateway
	// on the helm chart. If enabled, the gateway proxy is assumed to have an istio sidecar injected.
	IstioInjectionEnabled = "ENABLE_ISTIO_SIDECAR_ON_GATEWAY"

	// Note: These are coming from istio: https://github.com/istio/istio/blob/fa321ebd2a1186325788b0f461aa9f36a1a8d90e/pilot/pkg/model/service.go#L206
	// IstioCertSecret is the secret that holds the server cert and key for Istio mTLS
	IstioCertSecret = "istio_server_cert"

	// IstioValidationContext is the secret that holds the root cert for Istio mTLS
	IstioValidationContext = "istio_validation_context"

	// IstioTlsModeLabel is the Istio injection label added to workloads in mesh
	IstioTlsModeLabel = "security.istio.io/tlsMode"

	// IstioMutualTLSModeLabel implies that the endpoint is ready to receive Istio mTLS connections.
	IstioMutualTLSModeLabel = "istio"

	// TLSModeLabelShortname name used for determining endpoint level tls transport socket configuration
	TLSModeLabelShortname = "tlsMode"
)
View Source
const (
	SdsClusterName = "gateway_proxy_sds"
	SdsTargetURI   = "127.0.0.1:8234"
)
View Source
const AllowEmpty = "allow_empty"

AllowEmpty is a reusable term to avoid setting defaults. This should be used where gloo decides to set common sense defaults but needs a way to specify a empty set.

View Source
const (
	GlooGatewayEnableK8sGwControllerEnv = "GG_EXPERIMENTAL_K8S_GW_CONTROLLER"
)
View Source
const (
	SoloGeneratedClusterPrefix = "solo_io_generated_" // this is used to identify clusters that are generated by gloo
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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