Skip to content

Commit 6730be1

Browse files
authored
Merge pull request #3329 from bobbypage/fixbuild-v047
Fix build on v0.47
2 parents cddbc95 + 6416880 commit 6730be1

File tree

7 files changed

+8
-14
lines changed

7 files changed

+8
-14
lines changed

.golangci.yml

-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ run:
33
linters-settings:
44
govet:
55
enable-all: true
6-
golint:
7-
min-confidence: 0
86
gofmt:
97
simplify: true
108
goimports:
@@ -17,12 +15,8 @@ linters:
1715
- staticcheck
1816
- unused
1917
- gosimple
20-
- structcheck
21-
- varcheck
2218
- ineffassign
23-
- deadcode
2419
- typecheck
25-
- golint
2620
- gofmt
2721
- goimports
2822
issues:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
GO := go
16-
GOLANGCI_VER := v1.48.0
16+
GOLANGCI_VER := v1.51.2
1717
GO_TEST ?= $(GO) test $(or $(GO_FLAGS),-race)
1818
arch ?= $(shell go env GOARCH)
1919

build/assets.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FORCE="${FORCE:-}" # Force assets to be rebuilt if FORCE=true
3030

3131
# Install while in a temp dir to avoid polluting go.mod/go.sum
3232
pushd "${TMPDIR:-/tmp}" > /dev/null
33-
go install github.com/kevinburke/go-bindata/go-bindata@latest
33+
go install github.com/kevinburke/go-bindata/go-bindata@v3.24.0
3434
popd > /dev/null
3535

3636
build_asset () {

build/boilerplate/boilerplate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2016 Google Inc. All Rights Reserved.
44
#

build/boilerplate/boilerplate.py.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright YEAR Google Inc. All Rights Reserved.
44
#

integration/framework/framework.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (f *realFramework) ClientV2() *v2.Client {
213213

214214
func (a dockerActions) RunPause() string {
215215
return a.Run(DockerRunArgs{
216-
Image: "kubernetes/pause",
216+
Image: "registry.k8s.io/pause",
217217
})
218218
}
219219

integration/tests/api/docker_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestDockerContainerByName(t *testing.T) {
9090

9191
containerName := fmt.Sprintf("test-docker-container-by-name-%d", os.Getpid())
9292
fm.Docker().Run(framework.DockerRunArgs{
93-
Image: "kubernetes/pause",
93+
Image: "registry.k8s.io/pause",
9494
Args: []string{"--name", containerName},
9595
})
9696

@@ -150,7 +150,7 @@ func TestBasicDockerContainer(t *testing.T) {
150150

151151
containerName := fmt.Sprintf("test-basic-docker-container-%d", os.Getpid())
152152
containerID := fm.Docker().Run(framework.DockerRunArgs{
153-
Image: "kubernetes/pause",
153+
Image: "registry.k8s.io/pause",
154154
Args: []string{
155155
"--name", containerName,
156156
},
@@ -183,7 +183,7 @@ func TestDockerContainerSpec(t *testing.T) {
183183
cpuShares = uint64(2048)
184184
cpuMask = "0"
185185
memoryLimit = uint64(1 << 30) // 1GB
186-
image = "kubernetes/pause"
186+
image = "registry.k8s.io/pause"
187187
env = map[string]string{"test_var": "FOO"}
188188
labels = map[string]string{"bar": "baz"}
189189
)

0 commit comments

Comments
 (0)