mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 11:48:15 +00:00 
			
		
		
		
	Merge pull request #82325 from RainbowMango/pr_cleanupup_staticcheck_for_client_cache
Cleanup staticcheck for package cache
This commit is contained in:
		@@ -208,7 +208,6 @@ vendor/k8s.io/client-go/metadata/fake
 | 
			
		||||
vendor/k8s.io/client-go/rest
 | 
			
		||||
vendor/k8s.io/client-go/rest/watch
 | 
			
		||||
vendor/k8s.io/client-go/restmapper
 | 
			
		||||
vendor/k8s.io/client-go/tools/cache
 | 
			
		||||
vendor/k8s.io/client-go/tools/leaderelection
 | 
			
		||||
vendor/k8s.io/client-go/transport
 | 
			
		||||
vendor/k8s.io/code-generator/cmd/client-gen/generators/fake
 | 
			
		||||
 
 | 
			
		||||
@@ -539,13 +539,6 @@ func (f *DeltaFIFO) Resync() error {
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (f *DeltaFIFO) syncKey(key string) error {
 | 
			
		||||
	f.lock.Lock()
 | 
			
		||||
	defer f.lock.Unlock()
 | 
			
		||||
 | 
			
		||||
	return f.syncKeyLocked(key)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (f *DeltaFIFO) syncKeyLocked(key string) error {
 | 
			
		||||
	obj, exists, err := f.knownObjects.GetByKey(key)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -45,8 +45,6 @@ import (
 | 
			
		||||
type Reflector struct {
 | 
			
		||||
	// name identifies this reflector. By default it will be a file:line if possible.
 | 
			
		||||
	name string
 | 
			
		||||
	// metrics tracks basic metric information about the reflector
 | 
			
		||||
	metrics *reflectorMetrics
 | 
			
		||||
 | 
			
		||||
	// The type of object we expect to place in the store.
 | 
			
		||||
	expectedType reflect.Type
 | 
			
		||||
@@ -129,9 +127,6 @@ var (
 | 
			
		||||
	// nothing will ever be sent down this channel
 | 
			
		||||
	neverExitWatch <-chan time.Time = make(chan time.Time)
 | 
			
		||||
 | 
			
		||||
	// Used to indicate that watching stopped so that a resync could happen.
 | 
			
		||||
	errorResyncRequested = errors.New("resync channel fired")
 | 
			
		||||
 | 
			
		||||
	// Used to indicate that watching stopped because of a signal from the stop
 | 
			
		||||
	// channel passed in from a client of the reflector.
 | 
			
		||||
	errorStopRequested = errors.New("Stop requested")
 | 
			
		||||
 
 | 
			
		||||
@@ -47,19 +47,6 @@ func (noopMetric) Dec()            {}
 | 
			
		||||
func (noopMetric) Observe(float64) {}
 | 
			
		||||
func (noopMetric) Set(float64)     {}
 | 
			
		||||
 | 
			
		||||
type reflectorMetrics struct {
 | 
			
		||||
	numberOfLists       CounterMetric
 | 
			
		||||
	listDuration        SummaryMetric
 | 
			
		||||
	numberOfItemsInList SummaryMetric
 | 
			
		||||
 | 
			
		||||
	numberOfWatches      CounterMetric
 | 
			
		||||
	numberOfShortWatches CounterMetric
 | 
			
		||||
	watchDuration        SummaryMetric
 | 
			
		||||
	numberOfItemsInWatch SummaryMetric
 | 
			
		||||
 | 
			
		||||
	lastResourceVersion GaugeMetric
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// MetricsProvider generates various metrics used by the reflector.
 | 
			
		||||
type MetricsProvider interface {
 | 
			
		||||
	NewListsMetric(name string) CounterMetric
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user