MCPcopy Create free account
hub / github.com/VictoriaMetrics/operator / getDefaultOptions

Function getDefaultOptions

internal/controller/operator/controllers.go:104–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102}
103
104func getDefaultOptions() controller.Options {
105 optionsInit.Do(func() {
106 defaultOptions = &controller.Options{
107 RateLimiter: workqueue.NewTypedItemExponentialFailureRateLimiter[k8sreconcile.Request](2*time.Second, 2*time.Minute),
108 CacheSyncTimeout: *cacheSyncTimeout,
109 MaxConcurrentReconciles: *maxConcurrency,
110 }
111 })
112 return *defaultOptions
113}
114
115// ErrShutdown is a custom error returned as a cause of operator context cancel
116var ErrShutdown = fmt.Errorf("graceful shutdown, exiting")

Callers 15

SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85
SetupWithManagerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected