Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackoffConfig ¶
type BackoffConfig struct { // Steps is the maximum number of retries Steps int `json:"steps,omitempty"` // InitialMs is the initial wait time (in milliseconds) InitialMs int `json:"initialMs,omitempty"` // Factor is the factor for increasing wait time Factor float64 `json:"factor,omitempty"` // Jitter is the factor for random variation Jitter float64 `json:"jitter,omitempty"` }
BackoffConfig defines the backoff settings
func (*BackoffConfig) ToWaitBackoff ¶
func (c *BackoffConfig) ToWaitBackoff() wait.Backoff
ToWaitBackoff converts BackoffConfig to k8s.io/apimachinery/pkg/util/wait.Backoff
type IPAMConfig ¶
type IPAMConfig struct { // UpdatePoolStatus includes settings for pool status updates // Note: The old updatePoolStatus function has been removed, but this configuration is // still kept as it is used for retry strategies in PoolStatusReconciler for status updates. // Also refer to docs/parent-pool-requeue-strategy.md. UpdatePoolStatus UpdatePoolStatusConfig `json:"updatePoolStatus,omitempty"` // EnablePoolClaim is a flag to enable the PoolClaim feature // +optional EnablePoolClaim bool `json:"enablePoolClaim,omitempty"` }
IPAMConfig defines the configuration for the IPAM component
func DefaultIPAMConfig ¶
func DefaultIPAMConfig() *IPAMConfig
DefaultIPAMConfig returns the default configuration
func LoadFromFile ¶
func LoadFromFile(path string) (*IPAMConfig, error)
LoadFromFile loads configuration from a file
type UpdatePoolStatusConfig ¶
type UpdatePoolStatusConfig struct { // Backoff includes retry backoff settings Backoff BackoffConfig `json:"backoff,omitempty"` // AsyncTimeoutSec specifies the timeout (in seconds) for asynchronous update operations AsyncTimeoutSec int `json:"asyncTimeoutSec,omitempty"` }
UpdatePoolStatusConfig defines settings for pool status updates
Click to show internal directories.
Click to hide internal directories.