mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
Fix: useless log when enabling addon (#4680)
* Fix: useless log when enabling addon Signed-off-by: loheagn <loheagn@icloud.com> * lint code Signed-off-by: loheagn <loheagn@icloud.com> Signed-off-by: loheagn <loheagn@icloud.com>
This commit is contained in:
@@ -820,7 +820,7 @@ func iterateListSubResources(ctx context.Context, cluster string, k8sClient clie
|
||||
items, err := listItemByRule(clusterCTX, k8sClient, resource, *parentObject, specifiedFunc, rule.DefaultGenListOptionFunc, rule.DisableFilterByOwnerReference)
|
||||
if err != nil {
|
||||
if meta.IsNoMatchError(err) || runtime.IsNotRegisteredError(err) {
|
||||
klog.Errorf("error to list sub-resources: %s err: %v", resource.Kind, err)
|
||||
klog.Warningf("not listing sub-resources: %s err: %v", resource.Kind, err)
|
||||
continue
|
||||
}
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user