1. change glog to klog

2. move types to api package to avoid cyclic import
This commit is contained in:
Jeff
2019-09-16 12:46:53 +08:00
committed by zryfish
parent 79735c4543
commit 97c9a1786a
109 changed files with 1076 additions and 552 deletions

View File

@@ -19,11 +19,11 @@ package workloads
import (
"fmt"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/simple/client"
"strings"
"time"
"github.com/golang/glog"
"k8s.io/api/batch/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -49,7 +49,7 @@ func JobReRun(namespace, jobName string) error {
err = deleteJob(namespace, jobName)
if err != nil {
glog.Errorf("failed to rerun job %s, reason: %s", jobName, err)
klog.Errorf("failed to rerun job %s, reason: %s", jobName, err)
return fmt.Errorf("failed to rerun job %s", jobName)
}
@@ -63,7 +63,7 @@ func JobReRun(namespace, jobName string) error {
}
if err != nil {
glog.Errorf("failed to rerun job %s, reason: %s", jobName, err)
klog.Errorf("failed to rerun job %s, reason: %s", jobName, err)
return fmt.Errorf("failed to rerun job %s", jobName)
}