trafficpolicyutils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsPort

func ContainsPort(
	destKubeServicePorts []*discoveryv1.DestinationSpec_KubeService_KubeServicePort,
	port uint32,
) bool

func ConvertDeprecatedRequestMatchers added in v1.1.0

func ConvertDeprecatedRequestMatchers(deprecated []*v1.DeprecatedHttpMatcher) []*v1.HttpMatcher

conversion function to make it easy to work with the deprecated request matchers

func TranslateCorsPolicy added in v1.1.0

func TranslateCorsPolicy(
	corsPolicy *v1.TrafficPolicySpec_Policy_CorsPolicy,
) (*istiov1alpha3.CorsPolicy, error)

func TranslateFault added in v1.1.0

func TranslateHeaderManipulation added in v1.1.0

func TranslateHeaderManipulation(
	headerManipulation *v1.HeaderManipulation,
) *networkingv1alpha3spec.Headers

func TranslateMirror added in v1.1.0

If federatedClusterName is non-empty, it indicates translation for a federated VirtualService, so use it as the source cluster name.

func TranslateRetries added in v1.1.0

func TranslateRetries(
	retries *v1.TrafficPolicySpec_Policy_RetryPolicy,
) *istiov1alpha3.HTTPRetry

func TranslateTimeout added in v1.1.0

func TranslateTimeout(
	timeout *duration.Duration,
) *types.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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