Skip to content

Commit 05245f8

Browse files
committed
golang lint
1 parent 21befa0 commit 05245f8

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

cmd/helm-project-operator/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"log"
88
"net/http"
99
_ "net/http/pprof"
10+
"os"
1011

1112
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
1213
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/operator"

cmd/prometheus-federator/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ package main
44

55
import (
66
_ "embed"
7+
"log"
8+
"net/http"
9+
_ "net/http/pprof"
10+
"os"
11+
712
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
813
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/operator"
914
"github.com/rancher/prometheus-federator/pkg/version"
@@ -12,10 +17,6 @@ import (
1217
_ "github.com/rancher/wrangler/pkg/generated/controllers/networking.k8s.io"
1318
"github.com/rancher/wrangler/pkg/kubeconfig"
1419
"github.com/spf13/cobra"
15-
"log"
16-
"net/http"
17-
_ "net/http/pprof"
18-
"os"
1920
)
2021

2122
const (

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ require (
8787
k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c // indirect
8888
k8s.io/klog v1.0.0 // indirect
8989
k8s.io/klog/v2 v2.30.0 // indirect
90+
k8s.io/kube-aggregator v0.18.0 // indirect
9091
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
9192
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
9293
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,7 @@ k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
17771777
k8s.io/klog/v2 v2.9.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec=
17781778
k8s.io/klog/v2 v2.30.0 h1:bUO6drIvCIsvZ/XFgfxoGFQU/a4Qkh0iAlvUR7vlHJw=
17791779
k8s.io/klog/v2 v2.30.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
1780+
k8s.io/kube-aggregator v0.18.0 h1:J+wa9FDQ3SbgyA8wQBNg2m2FMSm+mMQfs2A58500hs0=
17801781
k8s.io/kube-aggregator v0.18.0/go.mod h1:ateewQ5QbjMZF/dihEFXwaEwoA4v/mayRvzfmvb6eqI=
17811782
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
17821783
k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E=

pkg/helm-project-operator/crd/crds.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ import (
44
"context"
55
"errors"
66
"fmt"
7-
"github.com/rancher/wrangler/pkg/clients"
87
"io"
98
"os"
109
"path/filepath"
1110
"strings"
1211
"sync"
1312

13+
"github.com/rancher/wrangler/pkg/clients"
14+
1415
"github.com/rancher/wrangler/pkg/name"
1516
"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
1617
apimachineerrors "k8s.io/apimachinery/pkg/api/errors"

0 commit comments

Comments
 (0)