Skip to content

Commit

Permalink
Merge pull request #578 from jvanz/linter
Browse files Browse the repository at this point in the history
chore: go linter version bump
  • Loading branch information
fabriziosestito authored Nov 17, 2023
2 parents 6361dc9 + 14f88a6 commit ccaa92c
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
with:
version: v1.54.2
version: v1.55.2

shellcheck:
name: Shellcheck
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SETUP_ENVTEST_VER := v0.0.0-20211110210527-619e6b92dab9
SETUP_ENVTEST_BIN := setup-envtest
SETUP_ENVTEST := $(abspath $(BIN_DIR)/$(SETUP_ENVTEST_BIN))

GOLANGCI_LINT_VER := v1.54.2
GOLANGCI_LINT_VER := v1.55.2
GOLANGCI_LINT_BIN := golangci-lint
GOLANGCI_LINT := $(BIN_DIR)/$(GOLANGCI_LINT_BIN)

Expand Down
4 changes: 2 additions & 2 deletions controllers/admissionpolicy_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"time"

policiesv1 "github.com/kubewarden/kubewarden-controller/pkg/apis/policies/v1"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo/v2" //nolint:revive
. "github.com/onsi/gomega" //nolint:revive
)

var _ = Describe("Given an AdmissionPolicy", func() {
Expand Down
4 changes: 2 additions & 2 deletions controllers/clusteradmissionpolicy_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"time"

policiesv1 "github.com/kubewarden/kubewarden-controller/pkg/apis/policies/v1"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo/v2" //nolint:revive
. "github.com/onsi/gomega" //nolint:revive
)

var _ = Describe("Given a ClusterAdmissionPolicy", func() {
Expand Down
4 changes: 2 additions & 2 deletions controllers/policyserver_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"time"

policiesv1 "github.com/kubewarden/kubewarden-controller/pkg/apis/policies/v1"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo/v2" //nolint:revive
. "github.com/onsi/gomega" //nolint:revive
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/kubewarden/kubewarden-controller/internal/pkg/constants"
Expand Down
4 changes: 2 additions & 2 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"testing"

policiesv1 "github.com/kubewarden/kubewarden-controller/pkg/apis/policies/v1"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo/v2" //nolint:revive
. "github.com/onsi/gomega" //nolint:revive
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/scheme"
Expand Down
2 changes: 1 addition & 1 deletion controllers/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
policiesv1 "github.com/kubewarden/kubewarden-controller/pkg/apis/policies/v1"
"github.com/onsi/gomega/types"

. "github.com/onsi/gomega"
. "github.com/onsi/gomega" //nolint:revive

admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
corev1 "k8s.io/api/core/v1"
Expand Down
3 changes: 2 additions & 1 deletion internal/pkg/admission/policy-server-deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"path/filepath"
"reflect"
"strconv"

policiesv1 "github.com/kubewarden/kubewarden-controller/pkg/apis/policies/v1"
appsv1 "k8s.io/api/apps/v1"
Expand Down Expand Up @@ -237,7 +238,7 @@ func (r *Reconciler) deployment(configMapVersion string, policyServer *policiesv
},
{
Name: "KUBEWARDEN_PORT",
Value: fmt.Sprintf("%d", constants.PolicyServerPort),
Value: strconv.Itoa(constants.PolicyServerPort),
},
{
Name: "KUBEWARDEN_POLICIES_DOWNLOAD_DIR",
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/policies/v1/webhook_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"testing"
"time"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo/v2" //nolint:revive
. "github.com/onsi/gomega" //nolint:revive

admissionv1beta1 "k8s.io/api/admission/v1beta1"
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
Expand Down

0 comments on commit ccaa92c

Please sign in to comment.