Skip to content

Commit

Permalink
refactor: move subroutines to pkg to allow for reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Apr 25, 2024
1 parent 5a22df1 commit 3436f07
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ COPY main.go main.go
COPY cmd/ cmd/
COPY api/ api/
COPY internal/ internal/
COPY pkg/ pkg/


# Build
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/account_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

corev1alpha1 "github.com/openmfp/account-operator/api/v1alpha1"
"github.com/openmfp/account-operator/internal/config"
"github.com/openmfp/account-operator/internal/subroutines"
"github.com/openmfp/account-operator/pkg/subroutines"
"github.com/openmfp/golang-commons/controller/lifecycle"
"github.com/openmfp/golang-commons/logger"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/account_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

corev1alpha1 "github.com/openmfp/account-operator/api/v1alpha1"
"github.com/openmfp/account-operator/internal/config"
"github.com/openmfp/account-operator/internal/subroutines"
"github.com/openmfp/account-operator/pkg/subroutines"
openmfpcontext "github.com/openmfp/golang-commons/context"
"github.com/openmfp/golang-commons/logger"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"

corev1alpha1 "github.com/openmfp/account-operator/api/v1alpha1"
"github.com/openmfp/account-operator/internal/subroutines/mocks"
"github.com/openmfp/account-operator/pkg/subroutines/mocks"
)

const defaultExpectedTestNamespace = "account-test"
Expand Down

0 comments on commit 3436f07

Please sign in to comment.