istio: istio.io/istio/pilot/pkg/networking/core/v1alpha3/route/retry Index | Files

package retry

import "istio.io/istio/pilot/pkg/networking/core/v1alpha3/route/retry"

Index

Package Files

retry.go

func ConvertPolicy Uses

func ConvertPolicy(in *networking.HTTPRetry) *route.RetryPolicy

ConvertPolicy converts the given Istio retry policy to an Envoy policy.

If in is nil, DefaultPolicy is returned.

If in.Attempts == 0, returns nil.

Otherwise, the returned policy is DefaultPolicy with the following overrides:

- NumRetries: set from in.Attempts

- RetryOn, RetriableStatusCodes: set from in.RetryOn (if specified). RetriableStatusCodes is appended when encountering parts that are valid HTTP status codes.

- PerTryTimeout: set from in.PerTryTimeout (if specified)

func DefaultPolicy Uses

func DefaultPolicy() *route.RetryPolicy

DefaultPolicy gets a copy of the default retry policy.

Package retry imports 7 packages (graph) and is imported by 2 packages. Updated 2019-09-25. Refresh now. Tools for package owners.