@@ -20,7 +20,6 @@ import (
20
20
"context"
21
21
"errors"
22
22
"net/http"
23
- "time"
24
23
25
24
"github.com/go-logr/logr"
26
25
"k8s.io/apimachinery/pkg/api/meta"
@@ -88,16 +87,6 @@ type Options struct {
88
87
// If none is set, it defaults to log.Log global logger.
89
88
Logger logr.Logger
90
89
91
- // SyncPeriod determines the minimum frequency at which watched resources are
92
- // reconciled. A lower period will correct entropy more quickly, but reduce
93
- // responsiveness to change if there are many watched resources. Change this
94
- // value only if you know what you are doing. Defaults to 10 hours if unset.
95
- // there will a 10 percent jitter between the SyncPeriod of all controllers
96
- // so that all controllers will not send list requests simultaneously.
97
- //
98
- // Deprecated: Use Cache.SyncPeriod instead.
99
- SyncPeriod * time.Duration
100
-
101
90
// HTTPClient is the http client that will be used to create the default
102
91
// Cache and Client. If not set the rest.HTTPClientFor function will be used
103
92
// to create the http client.
@@ -194,9 +183,6 @@ func New(config *rest.Config, opts ...Option) (Cluster, error) {
194
183
if cacheOpts .HTTPClient == nil {
195
184
cacheOpts .HTTPClient = options .HTTPClient
196
185
}
197
- if cacheOpts .SyncPeriod == nil {
198
- cacheOpts .SyncPeriod = options .SyncPeriod
199
- }
200
186
}
201
187
cache , err := options .NewCache (config , cacheOpts )
202
188
if err != nil {
0 commit comments