Skip to content

Commit

Permalink
Reorganize api folder for code generation (ray-project#91)
Browse files Browse the repository at this point in the history
* Re-organize api folder

* Change references to api objects
  • Loading branch information
harryge00 committed Nov 2, 2021
1 parent d70c9f5 commit a5da1d1
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ray-operator/controllers/common/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
"github.com/ray-project/kuberay/ray-operator/controllers/utils"

"k8s.io/apimachinery/pkg/api/resource"
Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/common/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
"github.com/ray-project/kuberay/ray-operator/controllers/utils"

corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/common/service.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package common

import (
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
"github.com/ray-project/kuberay/ray-operator/controllers/utils"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/common/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"

"github.com/stretchr/testify/assert"

Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/raycluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
"github.com/ray-project/kuberay/ray-operator/controllers/common"
_ "github.com/ray-project/kuberay/ray-operator/controllers/common"
"github.com/ray-project/kuberay/ray-operator/controllers/utils"
Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/raycluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"reflect"
"time"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
"github.com/ray-project/kuberay/ray-operator/controllers/common"
"github.com/ray-project/kuberay/ray-operator/controllers/utils"

Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"path/filepath"
"testing"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/envtest/printer"

. "github.com/onsi/ginkgo"
Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"unicode"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
"github.com/sirupsen/logrus"

corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion ray-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/v1alpha1"
rayiov1alpha1 "github.com/ray-project/kuberay/ray-operator/api/raycluster/v1alpha1"
// +kubebuilder:scaffold:imports
)

Expand Down

0 comments on commit a5da1d1

Please sign in to comment.