diff --git a/.go-version b/.go-version index 87b26e8b1..27ddcc14d 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.22.7 +1.23.4 diff --git a/Dockerfile b/Dockerfile index a24bfc3d2..b25980371 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,21 +11,21 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -ARG image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2024-08-13-1723575672.2 -ARG golang_image=public.ecr.aws/docker/library/golang:1.22.5 +ARG image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2024-10-01-1727740884.2023 +ARG golang_image=public.ecr.aws/docker/library/golang:1.23.4 FROM --platform=$BUILDPLATFORM $golang_image AS builder WORKDIR /go/src/github.com/kubernetes-sigs/aws-iam-authenticator COPY . . RUN go version -RUN goproxy=https://goproxy.io go mod download + ARG TARGETOS TARGETARCH -RUN GOOS=$TARGETOS GOARCH=$TARGETARCH make bin +RUN GOPROXY=direct GOOS=$TARGETOS GOARCH=$TARGETARCH make bin RUN chown 65532 _output/bin/aws-iam-authenticator -FROM --platform=$TARGETPLATFORM public.ecr.aws/eks-distro/kubernetes/go-runner:v0.9.0-eks-1-21-4 as go-runner +FROM --platform=$TARGETPLATFORM public.ecr.aws/eks-distro/kubernetes/go-runner:v0.16.4-eks-1-32-2 AS go-runner FROM --platform=$TARGETPLATFORM $image -COPY --from=go-runner /usr/local/bin/go-runner /usr/local/bin/go-runner +COPY --from=go-runner /go-runner /usr/local/bin/go-runner COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-iam-authenticator/_output/bin/aws-iam-authenticator /aws-iam-authenticator ENTRYPOINT ["/aws-iam-authenticator"] diff --git a/go.mod b/go.mod index 9a0de0112..c4273868a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module sigs.k8s.io/aws-iam-authenticator -go 1.22.7 +go 1.23.4 require ( github.com/aws/aws-sdk-go v1.54.6 diff --git a/tests/e2e/go.mod b/tests/e2e/go.mod index c1d9bd283..fe980f5b7 100644 --- a/tests/e2e/go.mod +++ b/tests/e2e/go.mod @@ -1,6 +1,6 @@ module sigs.k8s.io/aws-iam-authenticator/tests/e2e -go 1.22.7 +go 1.23.4 require ( github.com/onsi/ginkgo/v2 v2.19.0 diff --git a/tests/integration/go.mod b/tests/integration/go.mod index d5053abe2..2917f1f5e 100644 --- a/tests/integration/go.mod +++ b/tests/integration/go.mod @@ -1,6 +1,6 @@ module sigs.k8s.io/aws-iam-authenticator/tests/integration -go 1.22.7 +go 1.23.4 require ( github.com/aws/aws-sdk-go v1.54.6