Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
  • Loading branch information
blakepettersson committed Nov 3, 2024
1 parent 38984f6 commit e026582
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ import (
"syscall"
"time"

"github.com/argoproj/pkg/stats"
"github.com/redis/go-redis/v9"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"

cmdutil "github.com/argoproj/argo-cd/v2/cmd/util"
"github.com/argoproj/argo-cd/v2/common"
"github.com/argoproj/argo-cd/v2/controller"
Expand All @@ -28,14 +37,6 @@ import (
"github.com/argoproj/argo-cd/v2/util/settings"
"github.com/argoproj/argo-cd/v2/util/tls"
"github.com/argoproj/argo-cd/v2/util/trace"
"github.com/argoproj/pkg/stats"
"github.com/redis/go-redis/v9"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type ApplicationSetControllerConfig struct {
allowedScmProviders []string
globalPreservedAnnotations []string
globalPreservedLabels []string
metricsApplicationsetLabels []string
metricsApplicationsetLabels []string
enableScmProviders bool
webhookParallelism int
tokenRefStrictMode bool
Expand Down
4 changes: 2 additions & 2 deletions cmd/argocd-repo-server/commands/argocd_repo_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ type RepoServerConfig struct {
pauseGenerationOnFailureForMinutes int
pauseGenerationOnFailureForRequests int
gitSubmoduleEnabled bool
includeHiddenDirectories bool
cmpUseManifestGeneratePaths bool
includeHiddenDirectories bool
cmpUseManifestGeneratePaths bool
}

func NewRepoServerConfig(cmd *cobra.Command) *RepoServerConfig {
Expand Down
3 changes: 2 additions & 1 deletion cmd/argocd-server/commands/argocd_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
"strings"
"time"

"github.com/argoproj/argo-cd/v2/util/argo"
"k8s.io/client-go/rest"

"github.com/argoproj/argo-cd/v2/util/argo"

"github.com/redis/go-redis/v9"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
Expand Down
16 changes: 8 additions & 8 deletions test/e2e/fixture/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,18 +713,18 @@ func initTestContainers(ctx context.Context) {
MappedOCIRegistryPort = port.Port()

// TODO: Figure nicer way to template helm index files with the forwarded port
c, reader, err := e2eServer.Exec(ctx, []string{"sudo", "sed", "-i", fmt.Sprintf("s/9080/%s/g", mappedHelmHttpPort), "/tmp/argo-e2e/testdata.git/helm-repo/local/index.yaml"})
CheckError(err)

c, reader, err = e2eServer.Exec(ctx, []string{"sudo", "sed", "-i", fmt.Sprintf("s/9080/%s/g", mappedHelmHttpPort), "/tmp/argo-e2e/testdata.git/helm-repo/local2/index.yaml"})
CheckError(err)

c, reader, err = e2eServer.Exec(ctx, []string{"sudo", "sed", "-i", fmt.Sprintf("s/9080/%s/g", mappedHelmHttpPort), "/tmp/argo-e2e/testdata.git/helm-repo/remote/index.yaml"})
c, reader, err := e2eServer.Exec(ctx, []string{
"sudo", "sed", "-i",
fmt.Sprintf("s/9080/%s/g", mappedHelmHttpPort),
"/tmp/argo-e2e/testdata.git/helm-repo/local/index.yaml",
"/tmp/argo-e2e/testdata.git/helm-repo/local2/index.yaml",
"/tmp/argo-e2e/testdata.git/helm-repo/remote/index.yaml",
})
CheckError(err)

if c != 0 {
buf := new(strings.Builder)
_, err = io.Copy(buf, reader)
_, _ = io.Copy(buf, reader)
panic(buf.String())
}

Expand Down

0 comments on commit e026582

Please sign in to comment.