- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for RequestWatchProgress (0.24 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress.go
progressRequestPeriod = 100 * time.Millisecond ) func newConditionalProgressRequester(requestWatchProgress WatchProgressRequester, clock TickerFactory, contextMetadata metadata.MD) *conditionalProgressRequester { pr := &conditionalProgressRequester{ clock: clock, requestWatchProgress: requestWatchProgress, contextMetadata: contextMetadata, } pr.cond = sync.NewCond(&pr.mux) return pr }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 24 09:56:38 UTC 2024 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/feature/feature_support_checker.go
} } // Supports can check the featue from anywhere without storage if it was cached before. func (f *defaultFeatureSupportChecker) Supports(feature storage.Feature) bool { switch feature { case storage.RequestWatchProgress: f.lock.Lock() defer f.lock.Unlock() return ptr.Deref(f.progressNotifySupported, false) default: runtime.HandleError(fmt.Errorf("feature %q is not implemented in DefaultFeatureSupportChecker", feature))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 11:56:42 UTC 2024 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress_test.go
pr.conditionalProgressRequester = newConditionalProgressRequester(pr.RequestWatchProgress, clock, nil) return pr } type testConditionalProgressRequester struct { *conditionalProgressRequester progressRequestsSentCount atomic.Int32 } func (pr *testConditionalProgressRequester) RequestWatchProgress(ctx context.Context) error { pr.progressRequestsSentCount.Add(1) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 11:51:06 UTC 2024 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/feature/feature_support_checker_test.go
featureName: "some unknown feature", }, { testName: "Disabled - with empty feature", featureName: "", }, { testName: "Disabled - default", featureName: storage.RequestWatchProgress, expectedResult: false, }, } for _, tt := range tests { t.Run(tt.testName, func(t *testing.T) { var testFeatureSupportChecker FeatureSupportChecker = newDefaultFeatureSupportChecker()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 11:56:42 UTC 2024 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/list_work_estimator.go
consistentListFromCacheEnabled := utilfeature.DefaultFeatureGate.Enabled(features.ConsistentListFromCache) requestWatchProgressSupported := etcdfeature.DefaultFeatureSupportChecker.Supports(storage.RequestWatchProgress) // Serve consistent reads from storage if ConsistentListFromCache is disabled consistentReadFromStorage := resourceVersion == "" && !(consistentListFromCacheEnabled && requestWatchProgressSupported)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 11:56:42 UTC 2024 - 7K bytes - Viewed (0)