1
0
Fork 0
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:
shravan 2020-01-17 09:55:04 +05:30
parent fc8153724e
commit 2e60df0cb3

View file

@ -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)