mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +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"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
@ -149,7 +148,7 @@ func getResourcesOfTypeFromCluster(resourceTypes []string, kubeConfig string) ([
|
||||||
for _, kind := range resourceTypes {
|
for _, kind := range resourceTypes {
|
||||||
listObjectRaw, err := dClient.RESTClient().Get().RequestURI(kindToListApi[strings.ToLower(kind)]).Do().Raw()
|
listObjectRaw, err := dClient.RESTClient().Get().RequestURI(kindToListApi[strings.ToLower(kind)]).Do().Raw()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(2, err)
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
listObject, err := engineutils.ConvertToUnstructured(listObjectRaw)
|
listObject, err := engineutils.ConvertToUnstructured(listObjectRaw)
|
||||||
|
|
Loading…
Add table
Reference in a new issue