From c7d1ea5729856f14856c22182d51561e0dfe693a Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Wed, 11 Sep 2019 14:27:44 -0700 Subject: [PATCH] Fix counts delete --- pkg/resources/counts/counts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/resources/counts/counts.go b/pkg/resources/counts/counts.go index 3a51384f..0cb88514 100644 --- a/pkg/resources/counts/counts.go +++ b/pkg/resources/counts/counts.go @@ -7,11 +7,11 @@ import ( schema2 "k8s.io/apimachinery/pkg/runtime/schema" + "github.com/rancher/norman/pkg/store/empty" + "github.com/rancher/norman/pkg/types" "github.com/rancher/steve/pkg/accesscontrol" "github.com/rancher/steve/pkg/attributes" "github.com/rancher/steve/pkg/clustercache" - "github.com/rancher/norman/pkg/store/empty" - "github.com/rancher/norman/pkg/types" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime" ) @@ -149,7 +149,7 @@ func (s *Store) Watch(apiOp *types.APIRequest, schema *types.Schema, w types.Wat return onChange(true, gvr, key, obj) }) s.ccache.OnRemove(apiOp.Context(), func(gvr schema2.GroupVersionResource, key string, obj runtime.Object) error { - return onChange(false, gvr, key, nil) + return onChange(false, gvr, key, obj) }) return result, nil