retryonregionalendpoint

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	// contains filtered or unexported fields
}

func NewPolicy

func NewPolicy(regionalEndpoint string) *Policy

func (*Policy) Do

func (c *Policy) Do(request *policy.Request) (*http.Response, error)

Hack: retry the regional ARM endpoint in case of ARM traffic split and arm resource group replication is too slow Issue: https://github.com/kubernetes-sigs/cloud-provider-azure/issues/1296 Send the request to the regional endpoint if the response contains error code "ResourceGroupNotFound". Such situation also needs retrying that ContentLength is -1, StatusCode is 200 and an empty body is returned.

Jump to

Keyboard shortcuts

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