()
| 73 | } |
| 74 | |
| 75 | func 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 |
no outgoing calls
no test coverage detected