Skip to content

Commit e735768

Browse files
Merge pull request #774 from Nordix/uplift/go-1.19
⚠️ Bump go 1.19 , CAPI to v1.3.0-beta.1, Ginkgo/v2 and bump related go modules
2 parents 731fbbb + c1979b2 commit e735768

File tree

68 files changed

+492
-1046
lines changed

Some content is hidden

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

68 files changed

+492
-1046
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install go
2020
uses: actions/setup-go@v2
2121
with:
22-
go-version: '1.18'
22+
go-version: '1.19'
2323
- name: Generate release artifacts and notes
2424
run: |
2525
make release

.golangci.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ linters:
1010
enable:
1111
- asciicheck
1212
- bodyclose
13-
- deadcode
1413
- depguard
1514
- dogsled
1615
- errcheck
@@ -36,20 +35,18 @@ linters:
3635
- revive
3736
- rowserrcheck
3837
- staticcheck
39-
- structcheck
4038
- stylecheck
4139
- thelper
4240
- typecheck
4341
- unconvert
4442
- unused
45-
- varcheck
4643
- whitespace
4744
# Run with --fast=false for more extensive checks
4845
fast: true
4946

5047
linters-settings:
5148
gosec:
52-
go: "1.18"
49+
go: "1.19"
5350
severity: medium
5451
confidence: medium
5552
excludes:
@@ -68,6 +65,8 @@ linters-settings:
6865
alias: apierrors
6966
- pkg: k8s.io/apimachinery/pkg/util/errors
7067
alias: kerrors
68+
- pkg: k8s.io/component-base/logs/api/v1
69+
alias: logsv1
7170
# Controller Runtime
7271
- pkg: sigs.k8s.io/controller-runtime
7372
alias: ctrl
@@ -94,9 +93,9 @@ linters-settings:
9493
allow-leading-space: false
9594
require-specific: true
9695
staticcheck:
97-
go: "1.18"
96+
go: "1.19"
9897
stylecheck:
99-
go: "1.18"
98+
go: "1.19"
10099
gocritic:
101100
enabled-tags:
102101
- experimental
@@ -115,7 +114,7 @@ linters-settings:
115114
- whyNoLint
116115
- wrapperFunc
117116
unused:
118-
go: "1.18"
117+
go: "1.19"
119118
issues:
120119
exclude-rules:
121120
- path: test/e2e

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Build the manager binary on golang image
16-
FROM docker.io/golang:1.18 as builder
16+
FROM docker.io/golang:1.19 as builder
1717
WORKDIR /workspace
1818

1919
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ e2e-tests: e2e-substitutions cluster-templates ## This target should be called f
179179
$(CONTAINER_RUNTIME) pull $$image; \
180180
done
181181
time go test -v -timeout 24h -tags=e2e ./test/e2e/... -args \
182-
-ginkgo.v -ginkgo.trace -ginkgo.progress -ginkgo.failFast -ginkgo.noColor=$(GINKGO_NOCOLOR) \
182+
-ginkgo.timeout=6h -ginkgo.v -ginkgo.trace -ginkgo.progress -ginkgo.failFast -ginkgo.noColor=$(GINKGO_NOCOLOR) \
183183
-ginkgo.focus="$(GINKGO_FOCUS)" $(_SKIP_ARGS) \
184184
-e2e.artifacts-folder="$(ARTIFACTS)" \
185185
-e2e.config="$(E2E_CONF_FILE_ENVSUBST)" \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ provider:
3939
when running the clusterctl and set the level of the logging verbose with a positive integer number, ie. -v5.
4040

4141
```shell
42-
clusterctl init --core cluster-api:v1.2.5 --bootstrap kubeadm:v1.2.5 \
43-
--control-plane kubeadm:v1.2.5 -v5
42+
clusterctl init --core cluster-api:v1.3.0-beta.1 --bootstrap kubeadm:v1.3.0-beta.1 \
43+
--control-plane kubeadm:v1.3.0-beta.1 -v5
4444
```
4545

4646
1. Install Metal3 provider. This will install the latest version of Cluster API Provider Metal3 CRDs and controllers.

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def fixup_yaml_empty_arrays(yaml_str):
128128

129129
tilt_helper_dockerfile_header = """
130130
# Tilt image
131-
FROM golang:1.18 as tilt-helper
131+
FROM golang:1.19 as tilt-helper
132132
# Support live reloading with Tilt
133133
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
134134
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \

api/go.mod

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,75 @@
11
module github.com/metal3-io/cluster-api-provider-metal3/api
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/google/gofuzz v1.2.0
77
github.com/metal3-io/ip-address-manager/api v0.0.0-20220919121103-31c03f129143
8-
github.com/onsi/gomega v1.18.1
8+
github.com/onsi/gomega v1.22.1
99
github.com/pkg/errors v0.9.1
10-
golang.org/x/net v0.0.0-20220906165146-f3363e06e74c
11-
k8s.io/api v0.24.2
12-
k8s.io/apimachinery v0.24.2
13-
k8s.io/client-go v0.24.2
14-
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
15-
sigs.k8s.io/cluster-api v1.2.5
16-
sigs.k8s.io/controller-runtime v0.12.3
10+
golang.org/x/net v0.1.0
11+
k8s.io/api v0.25.0
12+
k8s.io/apimachinery v0.25.0
13+
k8s.io/client-go v0.25.0
14+
k8s.io/utils v0.0.0-20220823124924-e9cbc92d1a73
15+
sigs.k8s.io/cluster-api v1.3.0-beta.1
16+
sigs.k8s.io/controller-runtime v0.13.1
1717

1818
)
1919

2020
require (
21-
github.com/PuerkitoBio/purell v1.1.1 // indirect
22-
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
2321
github.com/beorn7/perks v1.0.1 // indirect
2422
github.com/blang/semver v3.5.1+incompatible // indirect
2523
github.com/cespare/xxhash/v2 v2.1.2 // indirect
2624
github.com/davecgh/go-spew v1.1.1 // indirect
27-
github.com/emicklei/go-restful v2.16.0+incompatible // indirect
28-
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
29-
github.com/fsnotify/fsnotify v1.5.4 // indirect
30-
github.com/go-logr/logr v1.2.0 // indirect
25+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
26+
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
27+
github.com/fsnotify/fsnotify v1.6.0 // indirect
28+
github.com/go-logr/logr v1.2.3 // indirect
3129
github.com/go-openapi/jsonpointer v0.19.5 // indirect
32-
github.com/go-openapi/jsonreference v0.19.5 // indirect
33-
github.com/go-openapi/swag v0.19.14 // indirect
34-
github.com/gobuffalo/flect v0.2.5 // indirect
30+
github.com/go-openapi/jsonreference v0.20.0 // indirect
31+
github.com/go-openapi/swag v0.22.3 // indirect
32+
github.com/gobuffalo/flect v0.3.0 // indirect
3533
github.com/gogo/protobuf v1.3.2 // indirect
3634
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3735
github.com/golang/protobuf v1.5.2 // indirect
38-
github.com/google/gnostic v0.5.7-v3refs // indirect
39-
github.com/google/go-cmp v0.5.8 // indirect
40-
github.com/google/uuid v1.2.0 // indirect
41-
github.com/imdario/mergo v0.3.12 // indirect
36+
github.com/google/gnostic v0.6.9 // indirect
37+
github.com/google/go-cmp v0.5.9 // indirect
38+
github.com/google/uuid v1.3.0 // indirect
39+
github.com/imdario/mergo v0.3.13 // indirect
4240
github.com/josharian/intern v1.0.0 // indirect
4341
github.com/json-iterator/go v1.1.12 // indirect
44-
github.com/mailru/easyjson v0.7.6 // indirect
42+
github.com/mailru/easyjson v0.7.7 // indirect
4543
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
4644
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4745
github.com/modern-go/reflect2 v1.0.2 // indirect
4846
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
49-
github.com/prometheus/client_golang v1.12.1 // indirect
47+
github.com/prometheus/client_golang v1.13.0 // indirect
5048
github.com/prometheus/client_model v0.2.0 // indirect
51-
github.com/prometheus/common v0.32.1 // indirect
52-
github.com/prometheus/procfs v0.7.3 // indirect
49+
github.com/prometheus/common v0.37.0 // indirect
50+
github.com/prometheus/procfs v0.8.0 // indirect
5351
github.com/spf13/pflag v1.0.5 // indirect
54-
golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect
55-
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
56-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
57-
golang.org/x/text v0.3.7 // indirect
58-
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
52+
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect
53+
golang.org/x/sys v0.1.0 // indirect
54+
golang.org/x/term v0.1.0 // indirect
55+
golang.org/x/text v0.4.0 // indirect
56+
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect
5957
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
6058
google.golang.org/appengine v1.6.7 // indirect
61-
google.golang.org/protobuf v1.28.0 // indirect
59+
google.golang.org/protobuf v1.28.1 // indirect
6260
gopkg.in/inf.v0 v0.9.1 // indirect
6361
gopkg.in/yaml.v2 v2.4.0 // indirect
6462
gopkg.in/yaml.v3 v3.0.1 //indirect
65-
k8s.io/apiextensions-apiserver v0.24.2 // indirect
66-
k8s.io/component-base v0.24.2 // indirect
67-
k8s.io/klog/v2 v2.60.1 // indirect
68-
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect
69-
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
70-
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
63+
k8s.io/apiextensions-apiserver v0.25.0 // indirect
64+
k8s.io/component-base v0.25.0 // indirect
65+
k8s.io/klog/v2 v2.80.1 // indirect
66+
k8s.io/kube-openapi v0.0.0-20220803164354-a70c9af30aea // indirect
67+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
68+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
7169
sigs.k8s.io/yaml v1.3.0 // indirect
7270
)
7371

74-
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.2.5
72+
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.3.0-beta.1
7573

7674
replace github.com/docker/distribution => github.com/docker/distribution v2.8.1+incompatible
7775

0 commit comments

Comments
 (0)