Update to Go 1.19

This commit is contained in:
Katrina Verey
2022-11-16 20:51:56 -05:00
parent 62f0dab2ac
commit 91a2c2b1a4
63 changed files with 67 additions and 66 deletions

View File

@@ -85,7 +85,7 @@ End-of-message
`Dockerfile` installs `kustomize fn` and copies the script into the container image.
```
FROM golang:1.18-stretch
FROM golang:1.19-bullseye
RUN go get sigs.k8s.io/kustomize/cmd/config
RUN mv /go/bin/config /usr/bin/config
COPY nginx-template.sh /usr/bin/nginx-template.sh

View File

@@ -1,6 +1,6 @@
module sigs.k8s.io/kustomize/cmd/config
go 1.18
go 1.19
require (
github.com/go-errors/errors v1.4.2

View File

@@ -1,7 +1,7 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
FROM golang:1.18-stretch
FROM golang:1.19-bullseye
ENV CGO_ENABLED=0
WORKDIR /go/src/

View File

@@ -1,6 +1,6 @@
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainerconfig
go 1.18
go 1.19
require sigs.k8s.io/kustomize/kyaml v0.13.7

View File

@@ -144,7 +144,7 @@ The script wraps itself using ` + "`" + `config run wrap -- $0` + "`" + ` which
` + "`" + `Dockerfile` + "`" + ` installs ` + "`" + `kustomize fn` + "`" + ` and copies the script into the container image.
FROM golang:1.18-stretch
FROM golang:1.19-bullseye
RUN go get sigs.k8s.io/kustomize/cmd/config
RUN mv /go/bin/config /usr/bin/config
COPY nginx-template.sh /usr/bin/nginx-template.sh

View File

@@ -1,6 +1,6 @@
module sigs.k8s.io/kustomize/cmd/depprobcheck
go 1.18
go 1.19
require (
k8s.io/cli-runtime v0.20.4

View File

@@ -1,6 +1,6 @@
module sigs.k8s.io/kustomize/cmd/gorepomod
go 1.18
go 1.19
require golang.org/x/mod v0.4.2

View File

@@ -1,6 +1,6 @@
module sigs.k8s.io/kustomize/cmd/k8scopy
go 1.18
go 1.19
require (
github.com/stretchr/testify v1.8.0

View File

@@ -1,3 +1,3 @@
module sigs.k8s.io/kustomize/cmd/mdtogo
go 1.18
go 1.19

View File

@@ -1,6 +1,6 @@
module sigs.k8s.io/kustomize/cmd/pluginator/v2
go 1.18
go 1.19
require (
github.com/rakyll/statik v0.1.7

View File

@@ -85,7 +85,7 @@ func (c *Converter) Convert() error {
}
func (c *Converter) getDockerfile() string {
return `FROM golang:1.18-stretch
return `FROM golang:1.19-bullseye
ENV CGO_ENABLED=0
WORKDIR /go/src/
COPY . .