Skip to content

Commit

Permalink
refactor: renamed module to github.com/baizeai/kcover
Browse files Browse the repository at this point in the history
Signed-off-by: Neko Ayaka <[email protected]>
  • Loading branch information
nekomeowww committed Sep 4, 2024
1 parent bf26953 commit 28cca13
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions cmd/collector-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"os/signal"
"syscall"

"github.com/baizeai/kcover/pkg/diagnosis"
"github.com/baizeai/kcover/pkg/diagnosis/nvidiadiag"
"github.com/baizeai/kcover/pkg/events"
"github.com/baizeai/kcover/pkg/kube"
"k8s.io/client-go/kubernetes"
"k8s.io/klog/v2"
"recovery.baizeai.io/pkg/diagnosis"
"recovery.baizeai.io/pkg/diagnosis/nvidiadiag"
"recovery.baizeai.io/pkg/events"
"recovery.baizeai.io/pkg/kube"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions cmd/kcover/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import (
"os"
"time"

"github.com/baizeai/kcover/pkg/diagnosis/controller"
"github.com/baizeai/kcover/pkg/events"
"github.com/baizeai/kcover/pkg/kube"
"github.com/baizeai/kcover/pkg/recovery"
"github.com/baizeai/kcover/pkg/runner"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
coordinationv1client "k8s.io/client-go/kubernetes/typed/coordination/v1"
"k8s.io/client-go/tools/leaderelection"
"k8s.io/client-go/tools/leaderelection/resourcelock"
"k8s.io/klog/v2"
"recovery.baizeai.io/pkg/diagnosis/controller"
"recovery.baizeai.io/pkg/events"
"recovery.baizeai.io/pkg/kube"
"recovery.baizeai.io/pkg/recovery"
"recovery.baizeai.io/pkg/runner"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module recovery.baizeai.io
module github.com/baizeai/kcover

go 1.22.0

Expand Down
2 changes: 1 addition & 1 deletion pkg/constants/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const (
KubeflowJobLabel = "training.kubeflow.org/job-name"

// recovery annotations
NeedRecoveryAnnotation = "recovery.baizeai.io/need-recovery"
NeedRecoveryAnnotation = "kcover.io/need-recovery"

EnabledRecoveryLabel = "kcover.io/cascading-recovery"

Expand Down
4 changes: 2 additions & 2 deletions pkg/diagnosis/collector.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package diagnosis

import (
"recovery.baizeai.io/pkg/events"
"recovery.baizeai.io/pkg/runner"
"github.com/baizeai/kcover/pkg/events"
"github.com/baizeai/kcover/pkg/runner"
)

type Diagnostic interface {
Expand Down
8 changes: 4 additions & 4 deletions pkg/diagnosis/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package controller
import (
"fmt"

"github.com/baizeai/kcover/pkg/diagnosis"
"github.com/baizeai/kcover/pkg/diagnosis/podstatus"
"github.com/baizeai/kcover/pkg/events"
"github.com/baizeai/kcover/pkg/runner"
"k8s.io/client-go/kubernetes"
"k8s.io/klog/v2"
"recovery.baizeai.io/pkg/diagnosis"
"recovery.baizeai.io/pkg/diagnosis/podstatus"
"recovery.baizeai.io/pkg/events"
"recovery.baizeai.io/pkg/runner"
)

var _ runner.Runner = (*controllerDiagnostic)(nil)
Expand Down
6 changes: 3 additions & 3 deletions pkg/diagnosis/nvidiadiag/nvidia_diag.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package nvidiadiag
import (
"time"

"github.com/baizeai/kcover/pkg/diagnosis"
"github.com/baizeai/kcover/pkg/events"
"github.com/baizeai/kcover/pkg/runner"
"k8s.io/klog/v2"
"recovery.baizeai.io/pkg/diagnosis"
"recovery.baizeai.io/pkg/events"
"recovery.baizeai.io/pkg/runner"
)

var _ runner.Runner = (*dcgmDiag)(nil)
Expand Down
8 changes: 4 additions & 4 deletions pkg/diagnosis/podstatus/pod_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
"reflect"
"time"

"github.com/baizeai/kcover/pkg/constants"
"github.com/baizeai/kcover/pkg/diagnosis"
"github.com/baizeai/kcover/pkg/events"
"github.com/baizeai/kcover/pkg/runner"
corev1 "k8s.io/api/core/v1"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/cache"
"recovery.baizeai.io/pkg/constants"
"recovery.baizeai.io/pkg/diagnosis"
"recovery.baizeai.io/pkg/events"
"recovery.baizeai.io/pkg/runner"
)

var _ runner.Runner = (*podStatusCollector)(nil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/events/events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package events

import "recovery.baizeai.io/pkg/runner"
import "github.com/baizeai/kcover/pkg/runner"

type TargetType string

Expand Down
2 changes: 1 addition & 1 deletion pkg/events/kubeevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
"k8s.io/client-go/tools/record"
"k8s.io/client-go/tools/reference"

"github.com/baizeai/kcover/pkg/constants"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/cache"
"recovery.baizeai.io/pkg/constants"
)

type kubeEventsRecorder struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/recovery/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (

"github.com/samber/lo"

"github.com/baizeai/kcover/pkg/constants"
"github.com/baizeai/kcover/pkg/events"
"github.com/jellydator/ttlcache/v3"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/klog/v2"
"recovery.baizeai.io/pkg/constants"
"recovery.baizeai.io/pkg/events"
)

type RecoveryController struct {
Expand Down

0 comments on commit 28cca13

Please sign in to comment.