Skip to content

Commit 5e5f5b3

Browse files
Move controllers package into pkg
1 parent 9ea041f commit 5e5f5b3

File tree

5 files changed

+2
-3
lines changed

5 files changed

+2
-3
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ RUN go mod download
1010
# Copy the Go sources
1111
COPY main.go main.go
1212
COPY pkg/ pkg/
13-
COPY controllers/ controllers/
1413

1514
# Build
1615
USER root

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ import (
5656
machinev1beta1 "github.com/openshift/api/machine/v1beta1"
5757
routev1 "github.com/openshift/api/route/v1"
5858

59-
cfoControllers "github.com/project-codeflare/codeflare-operator/controllers"
6059
"github.com/project-codeflare/codeflare-operator/pkg/config"
60+
"github.com/project-codeflare/codeflare-operator/pkg/controllers"
6161
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
6262
// to ensure that exec-entrypoint and run can make use of them.
6363
// +kubebuilder:scaffold:imports
@@ -185,7 +185,7 @@ func main() {
185185

186186
v, err := HasAPIResourceForGVK(kubeClient.DiscoveryClient, rayv1.GroupVersion.WithKind("RayCluster"))
187187
if v && *cfg.KubeRay.RayDashboardOAuthEnabled {
188-
rayClusterController := cfoControllers.RayClusterReconciler{Client: mgr.GetClient(), Scheme: mgr.GetScheme()}
188+
rayClusterController := controllers.RayClusterReconciler{Client: mgr.GetClient(), Scheme: mgr.GetScheme()}
189189
exitOnError(rayClusterController.SetupWithManager(mgr), "Error setting up RayCluster controller")
190190
} else if err != nil {
191191
exitOnError(err, "Could not determine if RayCluster CR present on cluster.")
File renamed without changes.

0 commit comments

Comments
 (0)