1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-19 17:26:57 +00:00

Fix counts delete

This commit is contained in:
Darren Shepherd 2019-09-11 14:27:44 -07:00
parent fab677b2ec
commit c7d1ea5729

View File

@ -7,11 +7,11 @@ import (
schema2 "k8s.io/apimachinery/pkg/runtime/schema" 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/accesscontrol"
"github.com/rancher/steve/pkg/attributes" "github.com/rancher/steve/pkg/attributes"
"github.com/rancher/steve/pkg/clustercache" "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/api/meta"
"k8s.io/apimachinery/pkg/runtime" "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) return onChange(true, gvr, key, obj)
}) })
s.ccache.OnRemove(apiOp.Context(), func(gvr schema2.GroupVersionResource, key string, obj runtime.Object) error { 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 return result, nil