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

Function getDefaultOptions

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

Source from the content-addressed store, hash-verified

73}
74
75func getDefaultOptions() controller.Options {
76 optionsInit.Do(func() {
77 defaultOptions = &controller.Options{
78 RateLimiter: workqueue.NewTypedItemExponentialFailureRateLimiter[k8sreconcile.Request](2*time.Second, 2*time.Minute),
79 CacheSyncTimeout: *cacheSyncTimeout,
80 MaxConcurrentReconciles: *maxConcurrency,
81 }
82 })
83 return *defaultOptions
84}
85
86// parsingError usually occurs in case of x-preserve-unknow-fields option enable to CRD
87// in this case k8s api server cannot perform proper validation and it may result in bad user input for some fields

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