reconciler

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// DefaultLoopTimeout is the default timeout for a reconcile loop (defaulted to the max ARM template duration).
	DefaultLoopTimeout = 90 * time.Minute
	// DefaultMappingTimeout is the default timeout for a controller request mapping func.
	DefaultMappingTimeout = 60 * time.Second
	// DefaultAzureServiceReconcileTimeout is the default timeout for an Azure service reconcile.
	DefaultAzureServiceReconcileTimeout = 12 * time.Second
	// DefaultAzureCallTimeout is the default timeout for an Azure request after which an Azure operation is considered long running.
	DefaultAzureCallTimeout = 2 * time.Second
	// DefaultReconcilerRequeue is the default value for the reconcile retry.
	DefaultReconcilerRequeue = 15 * time.Second
	// DefaultHTTP429RetryAfter is a default backoff wait time when we get a HTTP 429 response with no Retry-After data.
	DefaultHTTP429RetryAfter = 1 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Timeouts added in v1.13.0

type Timeouts struct {
	// Loop is the timeout for a reconcile loop (defaulted to the max ARM template duration).
	Loop time.Duration
	// AzureServiceReconcile is the timeout for an Azure service reconcile.
	AzureServiceReconcile time.Duration
	// AzureCall is the timeout for an Azure request after which an Azure operation is considered long-running.
	AzureCall time.Duration
	// Requeue is the value for the reconcile retry.
	Requeue time.Duration
}

Timeouts defines the timeouts for a reconciler.

func (Timeouts) DefaultedAzureCallTimeout added in v1.13.0

func (t Timeouts) DefaultedAzureCallTimeout() time.Duration

DefaultedAzureCallTimeout will default the timeout if it is zero-valued.

func (Timeouts) DefaultedAzureServiceReconcileTimeout added in v1.13.0

func (t Timeouts) DefaultedAzureServiceReconcileTimeout() time.Duration

DefaultedAzureServiceReconcileTimeout will default the timeout if it is zero-valued.

func (Timeouts) DefaultedLoopTimeout added in v1.13.0

func (t Timeouts) DefaultedLoopTimeout() time.Duration

DefaultedLoopTimeout will default the timeout if it is zero-valued.

func (Timeouts) DefaultedReconcilerRequeue added in v1.13.0

func (t Timeouts) DefaultedReconcilerRequeue() time.Duration

DefaultedReconcilerRequeue will default the timeout if it is zero-valued.

Jump to

Keyboard shortcuts

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