mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 19:05:27 +00:00
removing uneeded log statements
This commit is contained in:
parent
fc8153724e
commit
2e60df0cb3
1 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
@ -149,7 +148,7 @@ func getResourcesOfTypeFromCluster(resourceTypes []string, kubeConfig string) ([
|
|||
for _, kind := range resourceTypes {
|
||||
listObjectRaw, err := dClient.RESTClient().Get().RequestURI(kindToListApi[strings.ToLower(kind)]).Do().Raw()
|
||||
if err != nil {
|
||||
log.Println(2, err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
listObject, err := engineutils.ConvertToUnstructured(listObjectRaw)
|
||||
|
|
Loading…
Add table
Reference in a new issue