Skip to content

Commit

Permalink
Use orig controllers/ dir, but not for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dean Roehrich <[email protected]>
  • Loading branch information
roehrich-hpe committed Oct 20, 2023
1 parent c123663 commit 5c7f93e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ COPY go.sum go.sum
COPY cmd/ cmd/
COPY api/ api/
COPY internal/ internal/
COPY controllers/ controllers/
COPY mount-daemon/ mount-daemon/
COPY utils/ utils/
COPY vendor/ vendor/
Expand Down
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (

dwsv1alpha1 "github.com/DataWorkflowServices/dws/api/v1alpha1"
dwsv1alpha2 "github.com/DataWorkflowServices/dws/api/v1alpha2"
"github.com/DataWorkflowServices/dws/internal/controller"
"github.com/DataWorkflowServices/dws/controllers"
//+kubebuilder:scaffold:imports
)

Expand Down Expand Up @@ -87,7 +87,7 @@ func main() {

switch mode {
case "controller":
if err = (&controller.WorkflowReconciler{
if err = (&controllers.WorkflowReconciler{
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("Workflow"),
Scheme: mgr.GetScheme(),
Expand All @@ -97,7 +97,7 @@ func main() {
}

if os.Getenv("ENVIRONMENT") == "kind" {
if err = (&controller.ClientMountReconciler{
if err = (&controllers.ClientMountReconciler{
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("ClientMount"),
Scheme: mgr.GetScheme(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* limitations under the License.
*/

package controller
package controllers

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* limitations under the License.
*/

package controller
package controllers

import (
"context"
Expand Down
3 changes: 2 additions & 1 deletion internal/controller/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (

dwsv1alpha1 "github.com/DataWorkflowServices/dws/api/v1alpha1"
dwsv1alpha2 "github.com/DataWorkflowServices/dws/api/v1alpha2"
"github.com/DataWorkflowServices/dws/controllers"
//+kubebuilder:scaffold:imports
)

Expand Down Expand Up @@ -147,7 +148,7 @@ var _ = BeforeSuite(func() {

// start reconcilers

err = (&WorkflowReconciler{
err = (&controllers.WorkflowReconciler{
Client: k8sManager.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("Workflow"),
Scheme: testEnv.Scheme,
Expand Down

0 comments on commit 5c7f93e

Please sign in to comment.