Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit a2983de

Browse files
authored
Bump go version to 1.17, using 1.17.6 for readiness probe for CVE fixes (#885)
1 parent 4b79fbb commit a2983de

File tree

6 files changed

+66
-11
lines changed

6 files changed

+66
-11
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v2
1616
with:
17-
go-version: 1.16
17+
go-version: 1.17
1818

1919
- name: Test api
2020
run: go test -v ./api/...

go.mod

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/mongodb/mongodb-kubernetes-operator
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/blang/semver v3.5.1+incompatible
@@ -14,7 +14,6 @@ require (
1414
github.com/xdg/stringprep v1.0.3
1515
go.mongodb.org/mongo-driver v1.8.2
1616
go.uber.org/zap v1.19.1
17-
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
1817
gopkg.in/natefinch/lumberjack.v2 v2.0.0
1918
k8s.io/api v0.22.4
2019
k8s.io/apimachinery v0.22.4
@@ -23,6 +22,62 @@ require (
2322
sigs.k8s.io/yaml v1.3.0
2423
)
2524

25+
require (
26+
github.com/beorn7/perks v1.0.1 // indirect
27+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
28+
github.com/davecgh/go-spew v1.1.1 // indirect
29+
github.com/evanphx/json-patch v4.11.0+incompatible // indirect
30+
github.com/fsnotify/fsnotify v1.4.9 // indirect
31+
github.com/go-stack/stack v1.8.0 // indirect
32+
github.com/gogo/protobuf v1.3.2 // indirect
33+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
34+
github.com/golang/protobuf v1.5.2 // indirect
35+
github.com/golang/snappy v0.0.1 // indirect
36+
github.com/google/go-cmp v0.5.5 // indirect
37+
github.com/google/gofuzz v1.1.0 // indirect
38+
github.com/google/uuid v1.1.2 // indirect
39+
github.com/googleapis/gnostic v0.5.5 // indirect
40+
github.com/hashicorp/errwrap v1.0.0 // indirect
41+
github.com/json-iterator/go v1.1.11 // indirect
42+
github.com/klauspost/compress v1.13.6 // indirect
43+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
44+
github.com/moby/spdystream v0.2.0 // indirect
45+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
46+
github.com/modern-go/reflect2 v1.0.1 // indirect
47+
github.com/pmezard/go-difflib v1.0.0 // indirect
48+
github.com/prometheus/client_golang v1.11.0 // indirect
49+
github.com/prometheus/client_model v0.2.0 // indirect
50+
github.com/prometheus/common v0.26.0 // indirect
51+
github.com/prometheus/procfs v0.6.0 // indirect
52+
github.com/spf13/pflag v1.0.5 // indirect
53+
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
54+
github.com/xdg-go/scram v1.0.2 // indirect
55+
github.com/xdg-go/stringprep v1.0.2 // indirect
56+
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
57+
go.uber.org/atomic v1.7.0 // indirect
58+
go.uber.org/multierr v1.6.0 // indirect
59+
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 // indirect
60+
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
61+
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
62+
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
63+
golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2 // indirect
64+
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
65+
golang.org/x/text v0.3.6 // indirect
66+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
67+
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
68+
google.golang.org/appengine v1.6.7 // indirect
69+
google.golang.org/protobuf v1.26.0 // indirect
70+
gopkg.in/inf.v0 v0.9.1 // indirect
71+
gopkg.in/yaml.v2 v2.4.0 // indirect
72+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
73+
k8s.io/apiextensions-apiserver v0.22.2 // indirect
74+
k8s.io/component-base v0.22.2 // indirect
75+
k8s.io/klog/v2 v2.9.0 // indirect
76+
k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c // indirect
77+
k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a // indirect
78+
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
79+
)
80+
2681
replace github.com/docker/docker => github.com/moby/moby v17.12.0-ce-rc1.0.20200309214505-aa6a9891b09c+incompatible // Required by Helm
2782

2883
replace github.com/Azure/go-autorest => github.com/Azure/go-autorest v13.3.2+incompatible // Required by OLM

pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
]
1919
)
2020

21-
GOLANG_TAG = "1.16"
21+
GOLANG_TAG = "1.17"
2222
DEFAULT_IMAGE_TYPE = "ubuntu"
2323
DEFAULT_NAMESPACE = "default"
2424

release.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"mongodb-kubernetes-operator": "0.7.2",
3-
"version-upgrade-hook": "1.0.3",
4-
"readiness-probe": "1.0.7",
3+
"version-upgrade-hook": "1.0.4",
4+
"readiness-probe": "1.0.8",
55
"mongodb-agent": {
6-
"version": "11.0.5.6963-1",
7-
"tools_version": "100.3.1"
6+
"version": "11.0.11.7036-1",
7+
"tools_version": "100.5.1"
88
}
9-
}
9+
}

scripts/dev/templates/readiness/Dockerfile.builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16-alpine as builder
1+
FROM golang:1.17.6-alpine as builder
22

33
COPY ./cmd/readiness /build/
44
COPY ./pkg /build/pkg

scripts/dev/templates/versionhook/Dockerfile.builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang AS builder
1+
FROM golang:1.17.6 as builder
22

33
ENV GO111MODULE=on
44
ENV GOFLAGS="-mod=vendor"

0 commit comments

Comments
 (0)