Skip to content

Commit

Permalink
golang lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Dec 11, 2024
1 parent 21befa0 commit 05245f8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd/helm-project-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"
"net/http"
_ "net/http/pprof"
"os"

"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/operator"
Expand Down
9 changes: 5 additions & 4 deletions cmd/prometheus-federator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ package main

import (
_ "embed"
"log"
"net/http"
_ "net/http/pprof"
"os"

"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/operator"
"github.com/rancher/prometheus-federator/pkg/version"
Expand All @@ -12,10 +17,6 @@ import (
_ "github.com/rancher/wrangler/pkg/generated/controllers/networking.k8s.io"
"github.com/rancher/wrangler/pkg/kubeconfig"
"github.com/spf13/cobra"
"log"
"net/http"
_ "net/http/pprof"
"os"
)

const (
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ require (
k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c // indirect
k8s.io/klog v1.0.0 // indirect
k8s.io/klog/v2 v2.30.0 // indirect
k8s.io/kube-aggregator v0.18.0 // indirect
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,7 @@ k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
k8s.io/klog/v2 v2.9.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec=
k8s.io/klog/v2 v2.30.0 h1:bUO6drIvCIsvZ/XFgfxoGFQU/a4Qkh0iAlvUR7vlHJw=
k8s.io/klog/v2 v2.30.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
k8s.io/kube-aggregator v0.18.0 h1:J+wa9FDQ3SbgyA8wQBNg2m2FMSm+mMQfs2A58500hs0=
k8s.io/kube-aggregator v0.18.0/go.mod h1:ateewQ5QbjMZF/dihEFXwaEwoA4v/mayRvzfmvb6eqI=
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E=
Expand Down
3 changes: 2 additions & 1 deletion pkg/helm-project-operator/crd/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"context"
"errors"
"fmt"
"github.com/rancher/wrangler/pkg/clients"
"io"
"os"
"path/filepath"
"strings"
"sync"

"github.com/rancher/wrangler/pkg/clients"

"github.com/rancher/wrangler/pkg/name"
"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
apimachineerrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down

0 comments on commit 05245f8

Please sign in to comment.