api_conversion

package
v1.18.0-beta18 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeprecatedMetadataServiceName = "deprecated_metadata"
	UndefinedMetadataServiceName  = "undefined_gateway"
	UnkownMetadataServiceName     = "unknown_metadata"
)
View Source
const MatchingNamespaceEnv = "HEADER_SECRET_REF_NS_MATCHES_US"

Variables

This section is empty.

Functions

func CheckForbiddenCustomHeaders added in v1.14.14

func CheckForbiddenCustomHeaders(header envoycore_sk.HeaderValue) error

CheckForbiddenCustomHeaders checks whether the custom header is allowed to be modified as per https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#custom-request-response-headers

func GetGatewayNameFromParent added in v1.17.0

func GetGatewayNameFromParent(ctx context.Context, parent *gloov1.Listener) string

GetGatewayNameFromParent returns the name of the gateway that the listener is associated with. This is used by the otel plugin to set the service name. It requires that the gateway populate the listener's SourceMetadata with the gateway's data. The resource_kind field is a string, and different gateways may use different strings to represent their kind. In the case of unexpected metadata format (eg, no gateways or multiple gateways), we will log a warning and return a service.name string to help identify the issue.

func ToEnvoyDatadogConfiguration

func ToEnvoyDatadogConfiguration(glooDatadogConfig *envoytracegloo.DatadogConfig, clusterName string) (*envoytrace.DatadogConfig, error)

func ToEnvoyHeaderValueOptionList

func ToEnvoyHeaderValueOptionList(option []*envoycore_sk.HeaderValueOption, secrets *v1.SecretList, secretOptions HeaderSecretOptions) ([]*envoy_config_core_v3.HeaderValueOption, error)

func ToEnvoyHeaderValueOptions

func ToEnvoyHeaderValueOptions(option *envoycore_sk.HeaderValueOption, secrets *v1.SecretList, secretOptions HeaderSecretOptions) ([]*envoy_config_core_v3.HeaderValueOption, error)

func ToEnvoyHealthCheck

func ToEnvoyHealthCheck(check *envoycore_gloo.HealthCheck, secrets *v1.SecretList, secretOptions HeaderSecretOptions) (*envoy_config_core_v3.HealthCheck, error)

func ToEnvoyHealthCheckList

func ToEnvoyHealthCheckList(check []*envoycore_gloo.HealthCheck, secrets *v1.SecretList, secretOptions HeaderSecretOptions) ([]*envoy_config_core_v3.HealthCheck, error)

func ToEnvoyInt64Range

func ToEnvoyInt64Range(int64Range *envoytype_gloo.Int64Range) *envoy_type_v3.Int64Range

func ToEnvoyInt64RangeList

func ToEnvoyInt64RangeList(int64Range []*envoytype_gloo.Int64Range) []*envoy_type_v3.Int64Range

func ToEnvoyOpenCensusConfiguration added in v1.12.37

func ToEnvoyOpenCensusConfiguration(glooOpenCensusConfig *envoytracegloo.OpenCensusConfig) (*envoytrace.OpenCensusConfig, error)

func ToEnvoyOpenTelemetryConfiguration added in v1.17.0

func ToEnvoyOpenTelemetryConfiguration(clusterName, serviceName string) *envoytrace.OpenTelemetryConfig

ToEnvoyOpenTelemetryConfiguration converts a Gloo OpenTelemetryConfig to an Envoy OpenTelemetryConfig

func ToEnvoyZipkinConfiguration

func ToEnvoyZipkinConfiguration(glooZipkinConfig *envoytracegloo.ZipkinConfig, clusterName string) (*envoytrace.ZipkinConfig, error)

func ToGlooHealthCheckList

func ToGlooHealthCheckList(check []*envoy_config_core_v3.HealthCheck) ([]*envoycore_gloo.HealthCheck, error)

func ToGlooInt64Range

func ToGlooInt64Range(int64Range *envoy_type_v3.Int64Range) *envoytype_gloo.Int64Range

func ToGlooInt64RangeList

func ToGlooInt64RangeList(int64Range []*envoy_type_v3.Int64Range) []*envoytype_gloo.Int64Range

func ToGlooQueryParameterMatchers

func ToGlooQueryParameterMatchers(queryParamMatchers []*envoy_config_route_v3.QueryParameterMatcher) []*envoyroute_gloo.QueryParameterMatcher

func ToGlooRouteMatch

func ToGlooRouteMatch(routeMatch *envoy_config_route_v3.RouteMatch) *envoyroute_gloo.RouteMatch

todo consider movinng this to solo-projects used in enterprise code

Types

type HeaderSecretOptions added in v1.14.13

type HeaderSecretOptions struct {
	EnforceNamespaceMatch bool
	// this will be ignored unless EnforceNamespaceMatch is true
	UpstreamNamespace string
}

HeaderSecretOptions is used to pass around information about whether/how to enforce that secrets and upstream namespace must match

Jump to

Keyboard shortcuts

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