[go1.17] Update to go1.17

Signed-off-by: Stephen Augustus <foo@auggie.dev>
This commit is contained in:
Stephen Augustus 2021-07-14 13:31:40 -04:00
parent e1bfcbc873
commit e8d2bff6ba
No known key found for this signature in database
GPG Key ID: 5C9566007B24BDA9
7 changed files with 14 additions and 14 deletions

View File

@ -1 +1 @@
v1.16.7-1
v1.23.0-go1.17-buster.0

View File

@ -91,7 +91,7 @@ readonly KUBE_CONTAINER_RSYNC_PORT=8730
# These are the default versions (image tags) for their respective base images.
readonly __default_debian_iptables_version=buster-v1.6.6
readonly __default_go_runner_version=v2.3.1-go1.16.7-buster.0
readonly __default_go_runner_version=v2.3.1-go1.17-buster.0
readonly __default_setcap_version=buster-v2.0.4
# These are the base images for the Docker-wrapped binaries.

View File

@ -85,7 +85,7 @@ dependencies:
# Golang
- name: "golang: upstream version"
version: 1.16.7
version: 1.17
refPaths:
- path: build/build-image/cross/VERSION
- path: cluster/addons/fluentd-elasticsearch/es-image/Dockerfile
@ -97,20 +97,20 @@ dependencies:
- path: test/images/Makefile
match: GOLANG_VERSION=\d+.\d+(alpha|beta|rc)?\.?\d+
# Golang pre-releases are denoted as `1.y<pre-release stage>.z`
# Golang pre-releases are denoted as `1.y<pre-release stage>`
# Example: go1.16rc1
#
# This entry is a stub of the major and minor version to allow dependency
# checks to pass when building Kubernetes using a pre-release of Golang.
- name: "golang: <major>.<minor>"
version: 1.16
# This entry is a stub of the major version to allow dependency checks to
# pass when building Kubernetes using a pre-release of Golang.
- name: "golang: 1.<major>"
version: 1.17
refPaths:
- path: build/build-image/cross/VERSION
- path: hack/lib/golang.sh
match: minimum_go_version=go([0-9]+\.[0-9]+)
- name: "k8s.gcr.io/kube-cross: dependents"
version: v1.16.7-1
version: v1.23.0-go1.17-buster.0
refPaths:
- path: build/build-image/cross/VERSION
@ -138,7 +138,7 @@ dependencies:
match: configs\[DebianIptables\] = Config{list\.BuildImageRegistry, "debian-iptables", "[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)"}
- name: "k8s.gcr.io/go-runner: dependents"
version: v2.3.1-go1.16.7-buster.0
version: v2.3.1-go1.17-buster.0
refPaths:
- path: build/common.sh
match: __default_go_runner_version=

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.16.7 AS builder
FROM golang:1.17 AS builder
COPY elasticsearch_logging_discovery.go go.mod go.sum /
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -ldflags "-w" -o /elasticsearch_logging_discovery /elasticsearch_logging_discovery.go

View File

@ -478,7 +478,7 @@ EOF
local go_version
IFS=" " read -ra go_version <<< "$(GOFLAGS='' go version)"
local minimum_go_version
minimum_go_version=go1.16.0
minimum_go_version=go1.17.0
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
kube::log::usage_from_stdin <<EOF
Detected go version: ${go_version[*]}.

View File

@ -7,7 +7,7 @@ recursive-delete-patterns:
- BUILD.bazel
- "*/BUILD.bazel"
- Gopkg.toml
default-go-version: 1.16.7
default-go-version: 1.17
rules:
- destination: code-generator
branches:

View File

@ -16,7 +16,7 @@ REGISTRY ?= k8s.gcr.io/e2e-test-images
GOARM ?= 7
DOCKER_CERT_BASE_PATH ?=
QEMUVERSION=v5.1.0-2
GOLANG_VERSION=1.16.7
GOLANG_VERSION=1.17
export
ifndef WHAT