From fdf753dc67fc82c0814dd044085615a72e381212 Mon Sep 17 00:00:00 2001 From: Klaus Ma Date: Wed, 27 Nov 2019 17:02:32 +0800 Subject: [PATCH] Fixed build error. Signed-off-by: Klaus Ma --- Makefile | 2 +- pkg/controllers/job/plugins/svc/svc.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d6f01a608b7..9a0e6911cea 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ generate-code: unit-test: go clean -testcache - go list ./... | grep -v e2e | xargs go test -v -race + go list ./... | grep -v e2e | xargs go test -race e2e-test-kind: ./hack/run-e2e-kind.sh diff --git a/pkg/controllers/job/plugins/svc/svc.go b/pkg/controllers/job/plugins/svc/svc.go index 63b484cea60..54c79a47a81 100644 --- a/pkg/controllers/job/plugins/svc/svc.go +++ b/pkg/controllers/job/plugins/svc/svc.go @@ -209,7 +209,7 @@ func (sp *servicePlugin) createNetworkPolicyIfNotExist(job *batch.Job) error { // If network policy does not exist, create one for Job. if _, err := sp.Clientset.KubeClients.NetworkingV1().NetworkPolicies(job.Namespace).Get(job.Name, metav1.GetOptions{}); err != nil { if !apierrors.IsNotFound(err) { - glog.V(3).Infof("Failed to get NetworkPolicy for Job <%s/%s>: %v", + klog.V(3).Infof("Failed to get NetworkPolicy for Job <%s/%s>: %v", job.Namespace, job.Name, err) return err } @@ -244,7 +244,7 @@ func (sp *servicePlugin) createNetworkPolicyIfNotExist(job *batch.Job) error { } if _, e := sp.Clientset.KubeClients.NetworkingV1().NetworkPolicies(job.Namespace).Create(networkpolicy); e != nil { - glog.V(3).Infof("Failed to create Service for Job <%s/%s>: %v", job.Namespace, job.Name, e) + klog.V(3).Infof("Failed to create Service for Job <%s/%s>: %v", job.Namespace, job.Name, e) return e } job.Status.ControlledResources["plugin-"+sp.Name()] = sp.Name()