Skip to content

Commit 9ccf958

Browse files
Merge pull request #951 from elmiko/update-for-golang1.17
Update for golang1.17
2 parents c8bba3e + 2590ef2 commit 9ccf958

File tree

76 files changed

+189
-2720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+189
-2720
lines changed

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: release
33
namespace: openshift
4-
tag: golang-1.16
4+
tag: golang-1.17

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/openshift/release:golang-1.16 AS builder
1+
FROM registry.ci.openshift.org/openshift/release:golang-1.17 AS builder
22
WORKDIR /go/src/github.com/openshift/machine-api-operator
33
COPY . .
44
RUN NO_DOCKER=1 make build

Dockerfile.rhel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.16-openshift-4.9 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.17-openshift-4.10 AS builder
22
WORKDIR /go/src/github.com/openshift/machine-api-operator
33
COPY . .
44
RUN NO_DOCKER=1 make build
55

6-
FROM registry.ci.openshift.org/ocp/4.9:base
6+
FROM registry.ci.openshift.org/ocp/4.10:base
77
COPY --from=builder /go/src/github.com/openshift/machine-api-operator/install manifests
88
COPY --from=builder /go/src/github.com/openshift/machine-api-operator/bin/machine-api-operator .
99
COPY --from=builder /go/src/github.com/openshift/machine-api-operator/bin/nodelink-controller .

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ DBG ?= 0
33
VERSION ?= $(shell git describe --always --abbrev=7)
44
MUTABLE_TAG ?= latest
55
IMAGE = $(REGISTRY)machine-api-operator
6+
BUILD_IMAGE ?= registry.ci.openshift.org/openshift/release:golang-1.17
67

78
# Enable go modules and vendoring
89
# https://github.com/golang/go/wiki/Modules#how-to-install-and-activate-module-support
@@ -38,9 +39,9 @@ ifeq ($(NO_DOCKER), 1)
3839
DOCKER_CMD =
3940
IMAGE_BUILD_CMD = imagebuilder
4041
else
41-
DOCKER_CMD := $(ENGINE) run --env GO111MODULE=$(GO111MODULE) --env GOFLAGS=$(GOFLAGS) --rm -v "$(PWD)":/go/src/github.com/openshift/machine-api-operator:Z -w /go/src/github.com/openshift/machine-api-operator openshift/origin-release:golang-1.16
42+
DOCKER_CMD := $(ENGINE) run --env GO111MODULE=$(GO111MODULE) --env GOFLAGS=$(GOFLAGS) --rm -v "$(PWD)":/go/src/github.com/openshift/machine-api-operator:Z -w /go/src/github.com/openshift/machine-api-operator $(BUILD_IMAGE)
4243
# The command below is for building/testing with the actual image that Openshift uses. Uncomment/comment out to use instead of above command. CI registry pull secret is required to use this image.
43-
# DOCKER_CMD := $(ENGINE) run --env GO111MODULE=$(GO111MODULE) --env GOFLAGS=$(GOFLAGS) --rm -v "$(PWD)":/go/src/github.com/openshift/machine-api-operator:Z -w /go/src/github.com/openshift/machine-api-operator registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.6
44+
# DOCKER_CMD := $(ENGINE) run --env GO111MODULE=$(GO111MODULE) --env GOFLAGS=$(GOFLAGS) --rm -v "$(PWD)":/go/src/github.com/openshift/machine-api-operator:Z -w /go/src/github.com/openshift/machine-api-operator registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.17-openshift-4.10
4445
IMAGE_BUILD_CMD = $(ENGINE) build
4546
endif
4647

go.mod

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openshift/machine-api-operator
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/blang/semver v3.5.1+incompatible
@@ -20,8 +20,6 @@ require (
2020
github.com/vmware/govmomi v0.22.2
2121
golang.org/x/net v0.0.0-20210520170846-37e1c6afe023
2222
gopkg.in/gcfg.v1 v1.2.3
23-
gopkg.in/warnings.v0 v0.1.2 // indirect
24-
gopkg.in/yaml.v2 v2.4.0
2523
k8s.io/api v0.22.1
2624
k8s.io/apimachinery v0.22.1
2725
k8s.io/apiserver v0.22.0
@@ -34,3 +32,83 @@ require (
3432
sigs.k8s.io/controller-tools v0.6.3-0.20210916130746-94401651a6c3
3533
sigs.k8s.io/yaml v1.2.0
3634
)
35+
36+
require (
37+
cloud.google.com/go v0.81.0 // indirect
38+
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
39+
github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd // indirect
40+
github.com/PuerkitoBio/purell v1.1.1 // indirect
41+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
42+
github.com/beorn7/perks v1.0.1 // indirect
43+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
44+
github.com/davecgh/go-spew v1.1.1 // indirect
45+
github.com/evanphx/json-patch v4.11.0+incompatible // indirect
46+
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
47+
github.com/fatih/color v1.12.0 // indirect
48+
github.com/fsnotify/fsnotify v1.4.9 // indirect
49+
github.com/ghodss/yaml v1.0.0 // indirect
50+
github.com/go-errors/errors v1.0.1 // indirect
51+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
52+
github.com/go-openapi/jsonreference v0.19.5 // indirect
53+
github.com/go-openapi/swag v0.19.14 // indirect
54+
github.com/gobuffalo/flect v0.2.3 // indirect
55+
github.com/gogo/protobuf v1.3.2 // indirect
56+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
57+
github.com/golang/protobuf v1.5.2 // indirect
58+
github.com/google/btree v1.0.1 // indirect
59+
github.com/google/go-cmp v0.5.6 // indirect
60+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
61+
github.com/googleapis/gnostic v0.5.5 // indirect
62+
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
63+
github.com/imdario/mergo v0.3.12 // indirect
64+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
65+
github.com/josharian/intern v1.0.0 // indirect
66+
github.com/json-iterator/go v1.1.11 // indirect
67+
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
68+
github.com/mailru/easyjson v0.7.6 // indirect
69+
github.com/mattn/go-colorable v0.1.8 // indirect
70+
github.com/mattn/go-isatty v0.0.12 // indirect
71+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
72+
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
73+
github.com/moby/spdystream v0.2.0 // indirect
74+
github.com/moby/term v0.0.0-20210610120745-9d4ed1856297 // indirect
75+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
76+
github.com/modern-go/reflect2 v1.0.1 // indirect
77+
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
78+
github.com/nxadm/tail v1.4.8 // indirect
79+
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
80+
github.com/pkg/errors v0.9.1 // indirect
81+
github.com/pmezard/go-difflib v1.0.0 // indirect
82+
github.com/prometheus/client_model v0.2.0 // indirect
83+
github.com/prometheus/common v0.26.0 // indirect
84+
github.com/prometheus/procfs v0.6.0 // indirect
85+
github.com/russross/blackfriday v1.5.2 // indirect
86+
github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca // indirect
87+
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
88+
golang.org/x/mod v0.4.2 // indirect
89+
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602 // indirect
90+
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
91+
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
92+
golang.org/x/text v0.3.6 // indirect
93+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
94+
golang.org/x/tools v0.1.5 // indirect
95+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
96+
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
97+
google.golang.org/appengine v1.6.7 // indirect
98+
google.golang.org/protobuf v1.26.0 // indirect
99+
gopkg.in/inf.v0 v0.9.1 // indirect
100+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
101+
gopkg.in/warnings.v0 v0.1.2 // indirect
102+
gopkg.in/yaml.v2 v2.4.0 // indirect
103+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
104+
k8s.io/apiextensions-apiserver v0.22.0-rc.0 // indirect
105+
k8s.io/cli-runtime v0.22.0 // indirect
106+
k8s.io/component-base v0.22.0 // indirect
107+
k8s.io/gengo v0.0.0-20201214224949-b6c5ce23f027 // indirect
108+
k8s.io/kube-aggregator v0.22.0-rc.0 // indirect
109+
k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e // indirect
110+
sigs.k8s.io/kube-storage-version-migrator v0.0.4 // indirect
111+
sigs.k8s.io/kustomize/api v0.8.11 // indirect
112+
sigs.k8s.io/kustomize/kyaml v0.11.0 // indirect
113+
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
114+
)

tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build tools
12
// +build tools
23

34
// Official workaround to track tool dependencies with go modules:

vendor/github.com/Azure/go-ansiterm/go.mod

Lines changed: 0 additions & 5 deletions
This file was deleted.

vendor/github.com/Azure/go-ansiterm/go.sum

Lines changed: 0 additions & 2 deletions
This file was deleted.

vendor/github.com/cespare/xxhash/v2/go.mod

Lines changed: 0 additions & 3 deletions
This file was deleted.

vendor/github.com/cespare/xxhash/v2/go.sum

Whitespace-only changes.

0 commit comments

Comments
 (0)