Skip to content

Commit

Permalink
make lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Sep 23, 2024
1 parent e1fbbba commit 2e4fc8c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
7 changes: 3 additions & 4 deletions acr_controller/controller/broadcaster.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package application_change_revision_controller

import (
"sync"

"sync"

log "github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/watch"
"sync"

appv1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
)

type subscriber struct {
Expand Down
4 changes: 4 additions & 0 deletions acr_controller/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import (
"context"
"time"

log "github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/tools/cache"

appclient "github.com/argoproj/argo-cd/v2/acr_controller/application"
"github.com/argoproj/argo-cd/v2/acr_controller/service"
appclientset "github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned"
Expand Down
9 changes: 5 additions & 4 deletions acr_controller/service/acr_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package service
import (
"context"
"encoding/json"
"sync"

"sync"

argoclient "github.com/argoproj/argo-cd/v2/acr_controller/application"
appclient "github.com/argoproj/argo-cd/v2/pkg/apiclient/application"
application "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
appclientset "github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned"
log "github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/utils/pointer"
"sync"
)

type ACRService interface {
Expand Down
6 changes: 5 additions & 1 deletion acr_controller/service/acr_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import (
"context"
"testing"

"testing"
"github.com/argoproj/argo-cd/v2/acr_controller/application/mocks"
appclient "github.com/argoproj/argo-cd/v2/pkg/apiclient/application"
appsv1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
apps "github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned/fake"
"github.com/argoproj/argo-cd/v2/test"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
Expand Down

0 comments on commit 2e4fc8c

Please sign in to comment.