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

Function getDefaultOptions

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

Source from the content-addressed store, hash-verified

79}
80
81func getDefaultOptions() controller.Options {
82 optionsInit.Do(func() {
83 defaultOptions = &controller.Options{
84 RateLimiter: workqueue.NewTypedItemExponentialFailureRateLimiter[k8sreconcile.Request](2*time.Second, 2*time.Minute),
85 CacheSyncTimeout: *cacheSyncTimeout,
86 MaxConcurrentReconciles: *maxConcurrency,
87 }
88 })
89 return *defaultOptions
90}
91
92// parsingError usually occurs in case of x-preserve-unknown-fields option enable to CRD
93// 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