Skip to content

Commit

Permalink
chore: fix lint errors reported by golangci-lint (#3458)
Browse files Browse the repository at this point in the history
fix: lint errors reported by golangci-lint

Signed-off-by: Chetan Banavikalmutt <[email protected]>
  • Loading branch information
chetan-rns authored Mar 29, 2024
1 parent cae52ac commit 47f579c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion controller/metrics/prommetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ var (
MetricAnalysisTemplateInfo = prometheus.NewDesc(
"analysis_template_info",
"Information about analysis templates.",
append(namespaceNameLabels),
namespaceNameLabels,
nil,
)

Expand Down
3 changes: 0 additions & 3 deletions rollout/canary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,6 @@ func TestRollBackToActiveReplicaSetWithinWindow(t *testing.T) {

f.kubeobjects = append(f.kubeobjects, rs1, rs2)
f.replicaSetLister = append(f.replicaSetLister, rs1, rs2)
f.serviceLister = append(f.serviceLister)

// Switch back to version 1
r2.Spec.Template = r1.Spec.Template
Expand Down Expand Up @@ -1658,8 +1657,6 @@ func TestCanaryRolloutWithInvalidPingServiceName(t *testing.T) {

f.rolloutLister = append(f.rolloutLister, r)
f.objects = append(f.objects, r)
f.kubeobjects = append(f.kubeobjects)
f.serviceLister = append(f.serviceLister)

patchIndex := f.expectPatchRolloutAction(r)
f.run(getKey(r, t))
Expand Down
1 change: 0 additions & 1 deletion rollout/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ func TestPreviewServiceNotFound(t *testing.T) {
activeSvc := newService("active-svc", 80, nil, nil)
notUsedPreviewSvc := newService("preview-svc", 80, nil, nil)
f.kubeobjects = append(f.kubeobjects, activeSvc)
f.serviceLister = append(f.serviceLister)

patchIndex := f.expectPatchRolloutAction(r)
f.run(getKey(r, t))
Expand Down

0 comments on commit 47f579c

Please sign in to comment.