diff --git a/.golangci.yml b/.golangci.yml index 2bd2b8f0a6..ebfa63d553 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,8 +3,6 @@ run: linters-settings: govet: enable-all: true - golint: - min-confidence: 0 gofmt: simplify: true goimports: @@ -17,12 +15,8 @@ linters: - staticcheck - unused - gosimple - - structcheck - - varcheck - ineffassign - - deadcode - typecheck - - golint - gofmt - goimports issues: diff --git a/Makefile b/Makefile index 45cbff5ec6..d5fb4abdf8 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ # limitations under the License. GO := go -GOLANGCI_VER := v1.48.0 +GOLANGCI_VER := v1.51.2 GO_TEST ?= $(GO) test $(or $(GO_FLAGS),-race) arch ?= $(shell go env GOARCH) diff --git a/build/assets.sh b/build/assets.sh index 7faf33003d..19d7b42546 100755 --- a/build/assets.sh +++ b/build/assets.sh @@ -30,7 +30,7 @@ FORCE="${FORCE:-}" # Force assets to be rebuilt if FORCE=true # Install while in a temp dir to avoid polluting go.mod/go.sum pushd "${TMPDIR:-/tmp}" > /dev/null -go install github.com/kevinburke/go-bindata/go-bindata@latest +go install github.com/kevinburke/go-bindata/go-bindata@v3.24.0 popd > /dev/null build_asset () { diff --git a/build/boilerplate/boilerplate.py b/build/boilerplate/boilerplate.py index ce8a68817a..4a3145014c 100755 --- a/build/boilerplate/boilerplate.py +++ b/build/boilerplate/boilerplate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2016 Google Inc. All Rights Reserved. # diff --git a/build/boilerplate/boilerplate.py.txt b/build/boilerplate/boilerplate.py.txt index 21183f863a..a8011f5df2 100644 --- a/build/boilerplate/boilerplate.py.txt +++ b/build/boilerplate/boilerplate.py.txt @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright YEAR Google Inc. All Rights Reserved. # diff --git a/integration/framework/framework.go b/integration/framework/framework.go index e1e099fb43..fdd41fb23b 100644 --- a/integration/framework/framework.go +++ b/integration/framework/framework.go @@ -213,7 +213,7 @@ func (f *realFramework) ClientV2() *v2.Client { func (a dockerActions) RunPause() string { return a.Run(DockerRunArgs{ - Image: "kubernetes/pause", + Image: "registry.k8s.io/pause", }) } diff --git a/integration/tests/api/docker_test.go b/integration/tests/api/docker_test.go index a775b9b636..665e3af04d 100644 --- a/integration/tests/api/docker_test.go +++ b/integration/tests/api/docker_test.go @@ -90,7 +90,7 @@ func TestDockerContainerByName(t *testing.T) { containerName := fmt.Sprintf("test-docker-container-by-name-%d", os.Getpid()) fm.Docker().Run(framework.DockerRunArgs{ - Image: "kubernetes/pause", + Image: "registry.k8s.io/pause", Args: []string{"--name", containerName}, }) @@ -150,7 +150,7 @@ func TestBasicDockerContainer(t *testing.T) { containerName := fmt.Sprintf("test-basic-docker-container-%d", os.Getpid()) containerID := fm.Docker().Run(framework.DockerRunArgs{ - Image: "kubernetes/pause", + Image: "registry.k8s.io/pause", Args: []string{ "--name", containerName, }, @@ -183,7 +183,7 @@ func TestDockerContainerSpec(t *testing.T) { cpuShares = uint64(2048) cpuMask = "0" memoryLimit = uint64(1 << 30) // 1GB - image = "kubernetes/pause" + image = "registry.k8s.io/pause" env = map[string]string{"test_var": "FOO"} labels = map[string]string{"bar": "baz"} )