Skip to content

Commit 2f2cf35

Browse files
committed
golinter fixes
1 parent ac666a1 commit 2f2cf35

File tree

18 files changed

+25
-7
lines changed

18 files changed

+25
-7
lines changed

pkg/helm-project-operator/codegen/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package main
22

33
import (
4+
"os"
5+
46
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/apis/helm.cattle.io/v1alpha1"
57
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/crd"
6-
"os"
78

89
"github.com/sirupsen/logrus"
910

pkg/helm-project-operator/controllers/common/runtime.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package common
22

33
import (
4-
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/apis/helm.cattle.io/v1alpha1"
54
"os"
65
"path/filepath"
76

7+
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/apis/helm.cattle.io/v1alpha1"
8+
89
"github.com/sirupsen/logrus"
910
"gopkg.in/yaml.v2"
1011
)

pkg/helm-project-operator/controllers/controllers.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+
"time"
8+
79
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
810
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/hardened"
911
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/namespace"
1012
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/project"
1113
helmproject "github.com/rancher/prometheus-federator/pkg/helm-project-operator/generated/controllers/helm.cattle.io"
1214
helmprojectcontroller "github.com/rancher/prometheus-federator/pkg/helm-project-operator/generated/controllers/helm.cattle.io/v1alpha1"
13-
"time"
1415

1516
"github.com/k3s-io/helm-controller/pkg/controllers/chart"
1617
k3shelm "github.com/k3s-io/helm-controller/pkg/generated/controllers/helm.cattle.io"

pkg/helm-project-operator/controllers/hardened/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package hardened
22

33
import (
44
"context"
5+
56
common2 "github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
67

78
"github.com/rancher/wrangler/pkg/apply"

pkg/helm-project-operator/controllers/hardened/resolvers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package hardened
22

33
import (
44
"context"
5+
56
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
67

78
"github.com/rancher/wrangler/pkg/relatedresource"

pkg/helm-project-operator/controllers/namespace/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package namespace
33
import (
44
"context"
55
"fmt"
6+
67
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/applier"
78
common2 "github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
89
helmprojectcontroller "github.com/rancher/prometheus-federator/pkg/helm-project-operator/generated/controllers/helm.cattle.io/v1alpha1"

pkg/helm-project-operator/controllers/namespace/getter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package namespace
22

33
import (
44
"fmt"
5-
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/apis/helm.cattle.io/v1alpha1"
65
"sort"
76

7+
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/apis/helm.cattle.io/v1alpha1"
8+
89
corecontroller "github.com/rancher/wrangler/pkg/generated/controllers/core/v1"
910
corev1 "k8s.io/api/core/v1"
1011
apierrors "k8s.io/apimachinery/pkg/api/errors"

pkg/helm-project-operator/controllers/namespace/resources.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package namespace
22

33
import (
44
"fmt"
5-
common2 "github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
65
"strings"
76

7+
common2 "github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
8+
89
corev1 "k8s.io/api/core/v1"
910
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1011
)

pkg/helm-project-operator/controllers/project/cleanup.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package project
22

33
import (
44
"fmt"
5+
56
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
67

78
"github.com/sirupsen/logrus"

pkg/helm-project-operator/controllers/project/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package project
33
import (
44
"context"
55
"fmt"
6+
67
v1alpha2 "github.com/rancher/prometheus-federator/pkg/helm-project-operator/apis/helm.cattle.io/v1alpha1"
78
common2 "github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/common"
89
"github.com/rancher/prometheus-federator/pkg/helm-project-operator/controllers/namespace"

0 commit comments

Comments
 (0)