Skip to content

Commit

Permalink
chore: fix import paths
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Apr 14, 2023
1 parent 4a7ba6c commit c9ac9bf
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 23 deletions.
14 changes: 7 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ linters-settings:
min-confidence: 0.1
gocyclo:
min-complexity: 40
gci:
sections:
- standard
- default
- prefix(github.com/banzaicloud/imps)
goimports:
local-prefixes: github.com/banzaicloud/imps
gci:
sections:
- standard
- default
- prefix(github.com/banzaicloud/imps)
goimports:
local-prefixes: github.com/banzaicloud/imps
gocritic:
disabled-checks:
- ifElseChain
Expand Down
12 changes: 7 additions & 5 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import (
"strings"
"time"

"github.com/banzaicloud/imps/api/v1alpha1"
"github.com/banzaicloud/imps/controllers"
"github.com/banzaicloud/imps/internal/errorhandler"
"github.com/banzaicloud/imps/internal/log"
"github.com/banzaicloud/imps/pkg/ecr"
// +kubebuilder:scaffold:imports
"github.com/banzaicloud/operator-tools/pkg/reconciler"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand All @@ -21,6 +17,12 @@ import (
logrintegration "logur.dev/integration/logr"
"logur.dev/logur"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/banzaicloud/imps/api/v1alpha1"
"github.com/banzaicloud/imps/controllers"
"github.com/banzaicloud/imps/internal/errorhandler"
"github.com/banzaicloud/imps/internal/log"
"github.com/banzaicloud/imps/pkg/ecr"
)

var (
Expand Down
9 changes: 5 additions & 4 deletions cmd/refresher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import (
"time"

"emperror.dev/errors"
"github.com/banzaicloud/imps/controllers"
"github.com/banzaicloud/imps/internal/errorhandler"
"github.com/banzaicloud/imps/internal/log"
"github.com/banzaicloud/imps/pkg/ecr"
"github.com/banzaicloud/operator-tools/pkg/reconciler"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand All @@ -20,6 +16,11 @@ import (
logrintegration "logur.dev/integration/logr"
"logur.dev/logur"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/banzaicloud/imps/controllers"
"github.com/banzaicloud/imps/internal/errorhandler"
"github.com/banzaicloud/imps/internal/log"
"github.com/banzaicloud/imps/pkg/ecr"
)

var (
Expand Down
5 changes: 3 additions & 2 deletions controllers/imagepullsecret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import (
"time"

"emperror.dev/emperror"
"github.com/banzaicloud/imps/api/v1alpha1"
"github.com/banzaicloud/imps/internal/cron"
"github.com/banzaicloud/operator-tools/pkg/reconciler"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
Expand All @@ -33,6 +31,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"sigs.k8s.io/controller-runtime/pkg/source"

"github.com/banzaicloud/imps/api/v1alpha1"
"github.com/banzaicloud/imps/internal/cron"
)

// AlertingPolicyReconciler reconciles a AlertingPolicy object
Expand Down
5 changes: 3 additions & 2 deletions controllers/imagepullsecret_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ import (
"time"

"emperror.dev/errors"
"github.com/banzaicloud/imps/api/v1alpha1"
"github.com/banzaicloud/imps/pkg/pullsecrets"
"github.com/banzaicloud/operator-tools/pkg/reconciler"
corev1 "k8s.io/api/core/v1"
apierrs "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"logur.dev/logur"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/banzaicloud/imps/api/v1alpha1"
"github.com/banzaicloud/imps/pkg/pullsecrets"
)

var requeueObject = ctrl.Result{
Expand Down
5 changes: 3 additions & 2 deletions controllers/refresher_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (

"emperror.dev/emperror"
"emperror.dev/errors"
"github.com/banzaicloud/imps/internal/cron"
"github.com/banzaicloud/imps/pkg/pullsecrets"
"github.com/banzaicloud/operator-tools/pkg/reconciler"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
Expand All @@ -33,6 +31,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"sigs.k8s.io/controller-runtime/pkg/source"

"github.com/banzaicloud/imps/internal/cron"
"github.com/banzaicloud/imps/pkg/pullsecrets"
)

// RefresherReconciler reconciles a AlertingPolicy object
Expand Down
3 changes: 2 additions & 1 deletion pkg/pullsecrets/docker_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ import (
"time"

"emperror.dev/errors"
"github.com/banzaicloud/imps/api/common"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/banzaicloud/imps/api/common"
)

func NewDockerRegistryConfig() common.DockerRegistryConfig {
Expand Down
1 change: 1 addition & 0 deletions pkg/pullsecrets/provider_ecr.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"strings"

"github.com/aws/aws-sdk-go-v2/aws"

"github.com/banzaicloud/imps/api/common"
impsEcr "github.com/banzaicloud/imps/pkg/ecr"
)
Expand Down

0 comments on commit c9ac9bf

Please sign in to comment.