File tree Expand file tree Collapse file tree 4 files changed +0
-26
lines changed
staging/src/k8s.io/client-go/tools/cache Expand file tree Collapse file tree 4 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,6 @@ vendor/k8s.io/client-go/metadata/fake
208
208
vendor/k8s.io/client-go/rest
209
209
vendor/k8s.io/client-go/rest/watch
210
210
vendor/k8s.io/client-go/restmapper
211
- vendor/k8s.io/client-go/tools/cache
212
211
vendor/k8s.io/client-go/tools/leaderelection
213
212
vendor/k8s.io/client-go/transport
214
213
vendor/k8s.io/code-generator/cmd/client-gen/generators/fake
Original file line number Diff line number Diff line change @@ -539,13 +539,6 @@ func (f *DeltaFIFO) Resync() error {
539
539
return nil
540
540
}
541
541
542
- func (f * DeltaFIFO ) syncKey (key string ) error {
543
- f .lock .Lock ()
544
- defer f .lock .Unlock ()
545
-
546
- return f .syncKeyLocked (key )
547
- }
548
-
549
542
func (f * DeltaFIFO ) syncKeyLocked (key string ) error {
550
543
obj , exists , err := f .knownObjects .GetByKey (key )
551
544
if err != nil {
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ import (
45
45
type Reflector struct {
46
46
// name identifies this reflector. By default it will be a file:line if possible.
47
47
name string
48
- // metrics tracks basic metric information about the reflector
49
- metrics * reflectorMetrics
50
48
51
49
// The type of object we expect to place in the store.
52
50
expectedType reflect.Type
@@ -129,9 +127,6 @@ var (
129
127
// nothing will ever be sent down this channel
130
128
neverExitWatch <- chan time.Time = make (chan time.Time )
131
129
132
- // Used to indicate that watching stopped so that a resync could happen.
133
- errorResyncRequested = errors .New ("resync channel fired" )
134
-
135
130
// Used to indicate that watching stopped because of a signal from the stop
136
131
// channel passed in from a client of the reflector.
137
132
errorStopRequested = errors .New ("Stop requested" )
Original file line number Diff line number Diff line change @@ -47,19 +47,6 @@ func (noopMetric) Dec() {}
47
47
func (noopMetric ) Observe (float64 ) {}
48
48
func (noopMetric ) Set (float64 ) {}
49
49
50
- type reflectorMetrics struct {
51
- numberOfLists CounterMetric
52
- listDuration SummaryMetric
53
- numberOfItemsInList SummaryMetric
54
-
55
- numberOfWatches CounterMetric
56
- numberOfShortWatches CounterMetric
57
- watchDuration SummaryMetric
58
- numberOfItemsInWatch SummaryMetric
59
-
60
- lastResourceVersion GaugeMetric
61
- }
62
-
63
50
// MetricsProvider generates various metrics used by the reflector.
64
51
type MetricsProvider interface {
65
52
NewListsMetric (name string ) CounterMetric
You can’t perform that action at this time.
0 commit comments