Skip to content

Commit

Permalink
Delete redundance package for apiserver storage code.
Browse files Browse the repository at this point in the history
Signed-off-by: yanggang <[email protected]>
  • Loading branch information
yanggang committed Oct 15, 2023
1 parent 431967c commit d0c0830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apiserver/pkg/storage/calico/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
k8swatch "k8s.io/apimachinery/pkg/watch"
"k8s.io/apiserver/pkg/storage"

"github.com/projectcalico/calico/libcalico-go/lib/options"
Expand All @@ -25,7 +24,7 @@ type watchChan struct {
}

func (rs *resourceStore) watchResource(ctx context.Context, resourceVersion string,
p storage.SelectionPredicate, name, namespace string) (k8swatch.Interface, error) {
p storage.SelectionPredicate, name, namespace string) (watch.Interface, error) {
opts := options.ListOptions{Name: name, Namespace: namespace, ResourceVersion: resourceVersion}
ctx, cancel := context.WithCancel(ctx)
lWatch, err := rs.watch(ctx, rs.client, opts)
Expand Down
2 changes: 1 addition & 1 deletion metadata.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ WINDOWS_DIST = dist/windows
# The Windows HPC container version used as base for Calico Windows images
WINDOWS_HPC_VERSION ?= v1.0.0
# The Windows versions used as base for Calico Windows images
WINDOWS_VERSIONS ?= 1809 ltsc2022
WINDOWS_VERSIONS ?= 1809 ltsc2022

0 comments on commit d0c0830

Please sign in to comment.