Skip to content

Commit 0671745

Browse files
authored
CLOUDP-171139: Update Go version and dependencies (#924)
1 parent c949067 commit 0671745

File tree

16 files changed

+106
-111
lines changed

16 files changed

+106
-111
lines changed

.github/actions/deploy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Used for deploy GitHub action
2-
FROM golang:1.18
2+
FROM golang:1.19
33

44
ENV KUBECTL_VERSION 1.18.12
55

.github/actions/gen-install-scripts/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18
1+
FROM golang:1.19
22

33
ENV KUBECTL_VERSION 1.18.12
44
ENV GO111MODULE on

.github/actions/int-test/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18
1+
FROM golang:1.19
22

33
ENV GO111MODULE=on
44

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: golangci/golangci-lint-action@v3.1.0
2727
with:
2828
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
29-
version: v1.46.2
29+
version: v1.52.1
3030

3131
# Optional: working directory, useful for monorepos
3232
# working-directory:

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ jobs:
231231
helm version
232232
go version
233233
234-
go install github.com/onsi/ginkgo/v2/ginkgo@v2.6.1 && \
234+
go install github.com/onsi/ginkgo/v2/ginkgo@v2.9.1 && \
235235
go install github.com/onsi/gomega/...
236236
237237
cd test/e2e

.github/workflows/test-int.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ jobs:
6262
sudo mkdir -p /usr/local/kubebuilder/bin && \
6363
sudo /bin/bash -c "source setup-envtest.sh && fetch_envtest_tools /usr/local/kubebuilder"
6464
65-
go install github.com/onsi/ginkgo/v2/ginkgo@v2.6.1 && \
65+
go install github.com/onsi/ginkgo/v2/ginkgo@v2.9.1 && \
6666
go install github.com/onsi/gomega/...
6767

6868
cd ${{ matrix.path }}
69-
ginkgo --label-filter="${TEST_NAME}" --timeout 80m --v --nodes="${PARALLEL_NODES}" --cover --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/pkg/...
69+
ginkgo --label-filter="${TEST_NAME}" --timeout 90m --v --nodes="${PARALLEL_NODES}" --cover --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/pkg/...
7070

7171
- name: Upload coverage to Codecov
7272
uses: codecov/codecov-action@v3

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
run:
2-
go: 1.18
3-
41
linters:
52
disable-all: true
63
enable:
74
#- bodyclose
8-
- deadcode
95
- depguard
106
- dogsled
117
- dupl
@@ -26,13 +22,11 @@ linters:
2622
- prealloc
2723
- rowserrcheck
2824
- staticcheck
29-
- structcheck
3025
- stylecheck
3126
- typecheck
3227
- unconvert
3328
- unparam
3429
- unused
35-
- varcheck
3630
- whitespace
3731

3832
linters-settings:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.18 as builder
2+
FROM golang:1.19 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Dockerfile.post-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.18 as builder
2+
FROM golang:1.19 as builder
33

44
ENV CGO_ENABLED=0
55
ENV GOOS=linux

go.mod

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
module github.com/mongodb/mongodb-atlas-kubernetes
22

3-
go 1.18
3+
go 1.19
44

55
require (
6-
github.com/Azure/azure-sdk-for-go v67.1.0+incompatible
6+
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
77
github.com/Azure/go-autorest/autorest v0.11.28
8-
github.com/Azure/go-autorest/autorest/azure/auth v0.5.11
8+
github.com/Azure/go-autorest/autorest/azure/auth v0.5.12
99
github.com/Azure/go-autorest/autorest/to v0.4.0
1010
github.com/Masterminds/semver v1.5.0
11-
github.com/aws/aws-sdk-go v1.44.151
11+
github.com/aws/aws-sdk-go v1.44.242
1212
github.com/fatih/structtag v1.2.0
1313
github.com/go-logr/zapr v1.2.3
1414
github.com/google/go-cmp v0.5.9
1515
github.com/google/uuid v1.3.0
1616
github.com/hashicorp/go-multierror v1.1.1
1717
github.com/mongodb-forks/digest v1.0.4
18-
github.com/onsi/ginkgo/v2 v2.5.0
19-
github.com/onsi/gomega v1.24.1
18+
github.com/onsi/ginkgo/v2 v2.9.1
19+
github.com/onsi/gomega v1.27.4
2020
github.com/pborman/uuid v1.2.1
2121
github.com/sethvargo/go-password v0.2.0
22-
github.com/stretchr/testify v1.8.1
23-
go.mongodb.org/atlas v0.20.1-0.20230105135126-32300174f475
24-
go.mongodb.org/mongo-driver v1.11.0
25-
go.uber.org/zap v1.23.0
22+
github.com/stretchr/testify v1.8.2
23+
go.mongodb.org/atlas v0.24.0
24+
go.mongodb.org/mongo-driver v1.11.4
25+
go.uber.org/zap v1.24.0
2626
golang.org/x/sync v0.1.0
2727
google.golang.org/api v0.103.0
2828
gopkg.in/yaml.v2 v2.4.0
@@ -33,6 +33,12 @@ require (
3333
sigs.k8s.io/controller-runtime v0.13.0
3434
)
3535

36+
require (
37+
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
38+
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
39+
golang.org/x/tools v0.7.0 // indirect
40+
)
41+
3642
require (
3743
cloud.google.com/go/compute v1.12.1 // indirect
3844
cloud.google.com/go/compute/metadata v0.2.1 // indirect
@@ -43,24 +49,22 @@ require (
4349
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
4450
github.com/Azure/go-autorest/logger v0.2.1 // indirect
4551
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
46-
github.com/PuerkitoBio/purell v1.1.1 // indirect
47-
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
4852
github.com/beorn7/perks v1.0.1 // indirect
4953
github.com/cespare/xxhash/v2 v2.1.2 // indirect
5054
github.com/davecgh/go-spew v1.1.1 // indirect
5155
github.com/dimchansky/utfbom v1.1.1 // indirect
52-
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
56+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
5357
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
5458
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
5559
github.com/fsnotify/fsnotify v1.5.4 // indirect
5660
github.com/go-logr/logr v1.2.3 // indirect
57-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
58-
github.com/go-openapi/jsonreference v0.19.5 // indirect
59-
github.com/go-openapi/swag v0.19.14 // indirect
61+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
62+
github.com/go-openapi/jsonreference v0.20.1 // indirect
63+
github.com/go-openapi/swag v0.22.3 // indirect
6064
github.com/gogo/protobuf v1.3.2 // indirect
6165
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect
6266
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
63-
github.com/golang/protobuf v1.5.2 // indirect
67+
github.com/golang/protobuf v1.5.3 // indirect
6468
github.com/golang/snappy v0.0.4 // indirect
6569
github.com/google/gnostic v0.5.7-v3refs // indirect
6670
github.com/google/go-querystring v1.1.0 // indirect
@@ -73,14 +77,13 @@ require (
7377
github.com/josharian/intern v1.0.0 // indirect
7478
github.com/json-iterator/go v1.1.12 // indirect
7579
github.com/klauspost/compress v1.14.4 // indirect
76-
github.com/mailru/easyjson v0.7.6 // indirect
80+
github.com/mailru/easyjson v0.7.7 // indirect
7781
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
7882
github.com/mitchellh/go-homedir v1.1.0 // indirect
7983
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
8084
github.com/modern-go/reflect2 v1.0.2 // indirect
8185
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect
8286
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
83-
github.com/openlyinc/pointy v1.2.0 // indirect
8487
github.com/pkg/errors v0.9.1 // indirect
8588
github.com/pmezard/go-difflib v1.0.0 // indirect
8689
github.com/prometheus/client_golang v1.12.2 // indirect
@@ -97,11 +100,11 @@ require (
97100
go.uber.org/multierr v1.7.0 // indirect
98101
golang.org/x/crypto v0.1.0 // indirect
99102
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
100-
golang.org/x/net v0.2.0 // indirect
103+
golang.org/x/net v0.8.0 // indirect
101104
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect
102-
golang.org/x/sys v0.2.0 // indirect
103-
golang.org/x/term v0.2.0 // indirect
104-
golang.org/x/text v0.4.0 // indirect
105+
golang.org/x/sys v0.6.0 // indirect
106+
golang.org/x/term v0.6.0 // indirect
107+
golang.org/x/text v0.8.0 // indirect
105108
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
106109
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
107110
google.golang.org/appengine v1.6.7 // indirect
@@ -111,10 +114,10 @@ require (
111114
gopkg.in/inf.v0 v0.9.1 // indirect
112115
k8s.io/apiextensions-apiserver v0.25.0 // indirect
113116
k8s.io/component-base v0.25.0 // indirect
114-
k8s.io/klog/v2 v2.70.1 // indirect
115-
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect
116-
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
117-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
117+
k8s.io/klog/v2 v2.90.1 // indirect
118+
k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a // indirect
119+
k8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect
120+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
118121
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
119122
sigs.k8s.io/yaml v1.3.0 // indirect
120123
)

0 commit comments

Comments
 (0)