Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions pkg/agent/dummy_data_gatherer.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ func (g *dummyDataGatherer) WaitForCacheSync(ctx context.Context) error {
return nil
}

func (g *dummyDataGatherer) Delete() error {
// no async functionality, see Fetch
return nil
}

func (c *dummyDataGatherer) Fetch() (interface{}, int, error) {
var err error
if c.attemptNumber < c.FailedAttempts {
Expand Down
2 changes: 0 additions & 2 deletions pkg/datagatherer/datagatherer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ type DataGatherer interface {
Run(ctx context.Context) error
// WaitForCacheSync waits for the data gatherer's informers cache to sync.
WaitForCacheSync(ctx context.Context) error
// Delete, clear the cache of the DataGatherer if one is being used
Delete() error
}
5 changes: 0 additions & 5 deletions pkg/datagatherer/k8s/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ func (g *DataGathererDiscovery) WaitForCacheSync(ctx context.Context) error {
return nil
}

func (g *DataGathererDiscovery) Delete() error {
// no async functionality, see Fetch
return nil
}

// Fetch will fetch discovery data from the apiserver, or return an error
func (g *DataGathererDiscovery) Fetch() (interface{}, int, error) {
data, err := g.cl.ServerVersion()
Expand Down
7 changes: 0 additions & 7 deletions pkg/datagatherer/k8s/dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,6 @@ func (g *DataGathererDynamic) WaitForCacheSync(ctx context.Context) error {
return nil
}

// Delete will flush the cache being used to stored resources gathered by the
// informer
func (g *DataGathererDynamic) Delete() error {
g.cache.Flush()
return nil
}

// Fetch will fetch the requested data from the apiserver, or return an error
// if fetching the data fails.
func (g *DataGathererDynamic) Fetch() (interface{}, int, error) {
Expand Down
5 changes: 0 additions & 5 deletions pkg/datagatherer/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ func (g *DataGatherer) Run(ctx context.Context) error {
return nil
}

func (g *DataGatherer) Delete() error {
// no async functionality, see Fetch
return nil
}

func (g *DataGatherer) WaitForCacheSync(ctx context.Context) error {
// no async functionality, see Fetch
return nil
Expand Down