RocksLabs / kvrocks-operator

Apache License 2.0
36 stars 15 forks source link

dep: upgrade the version of dependency #16

Closed jiayouxujin closed 1 year ago

jiayouxujin commented 1 year ago

Hi,

This PR is for updating the dependency version. However, due to some issues when using the latest version (as shown in the problem below), I've chosen to stick with the current version 0.26.x.

Note: I've tested the code with make run, ensuring there are no compilation errors. This means the new version of the dependency's APIs are compatible. A more thorough test will be performed soon.

sigs.k8s.io/controller-runtime/pkg/cache
vendor/sigs.k8s.io/controller-runtime/pkg/cache/multi_namespace_cache.go:308:9: cannot use handles (variable of type map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration) as type "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration in return statement:
        map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing HasSynced method)
vendor/sigs.k8s.io/controller-runtime/pkg/cache/multi_namespace_cache.go:321:9: cannot use handles (variable of type map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration) as type "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration in return statement:
        map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing HasSynced method)
vendor/sigs.k8s.io/controller-runtime/pkg/cache/multi_namespace_cache.go:326:17: impossible type assertion: h.(map[string]toolscache.ResourceEventHandlerRegistration)
        map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing HasSynced method)