Fix cannot get registered resource (#5515)
* Fix can`t get registered resource Signed-off-by: wenhaozhou <wenhaozhou@yunify.com> * update v1beta1 interface Get func`s parameters Signed-off-by: wenhaozhou <wenhaozhou@yunify.com> --------- Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>
This commit is contained in:
@@ -19,7 +19,7 @@ func NewResourceCache(cache cache.Cache) Interface {
|
||||
return &resourceCache{cache: cache}
|
||||
}
|
||||
|
||||
func (u *resourceCache) Get(name, namespace string, object client.Object) error {
|
||||
func (u *resourceCache) Get(namespace, name string, object client.Object) error {
|
||||
return u.cache.Get(context.Background(), client.ObjectKey{Namespace: namespace, Name: name}, object)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user