gardener / etcd-backup-restore

Collection of components to backup and restore the etcd of a Kubernetes cluster.
Apache License 2.0
289 stars 100 forks source link

Upgrade the go toolchain to `go1.23.2`. #786

Closed renormalize closed 1 month ago

renormalize commented 1 month ago

What this PR does / why we need it:

Special notes for your reviewer:

Tests will fail since the pipeline runs on the older Go version.

Release note:

Upgrade the Go dependency to `go1.23.2`.
renormalize commented 1 month ago

Following targets were run locally for verification with the Go 1.23.2 distribution:

make check passes ``` Helm v3.16.1 is already latest ==> Linting /Users/i585850/go/src/github.com/gardener/etcd-backup-restore/chart/etcd-backup-restore [INFO] Chart.yaml: icon is recommended 1 chart(s) linted, 0 chart(s) failed ```
make docker-build passes ``` ➜ etcd-backup-restore git:(go1.23.2) ✗ make docker-build docker buildx build --platform=linux/aarch64 --tag europe-docker.pkg.dev/gardener-project/snapshots/gardener/etcdbrctl:v0.31.0-dev -f build/Dockerfile --rm . [+] Building 31.7s (13/13) FINISHED docker:desktop-linux => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 470B 0.0s => [internal] load metadata for gcr.io/distroless/static-debian11:nonroot 0.7s => [internal] load metadata for docker.io/library/golang:1.23.2 4.6s => [auth] library/golang:pull token for registry-1.docker.io 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [backup-restore 1/3] FROM gcr.io/distroless/static-debian11:nonroot@sha256:63ebe035fbdd056ed682e6a87b286d07d3f05f12cb46f26b2b44fc10fc4a59ed 0.0s => [builder 1/4] FROM docker.io/library/golang:1.23.2@sha256:adee809c2d0009a4199a11a1b2618990b244c6515149fe609e2788ddf164bd10 13.7s => => resolve docker.io/library/golang:1.23.2@sha256:adee809c2d0009a4199a11a1b2618990b244c6515149fe609e2788ddf164bd10 0.0s => => sha256:ecd06e024ec6cfee6dee566f2b1049b9c3bdfea6726a832c1023b102c186171c 86.29MB / 86.29MB 5.1s => => sha256:adee809c2d0009a4199a11a1b2618990b244c6515149fe609e2788ddf164bd10 9.74kB / 9.74kB 0.0s => => sha256:778b29f45ec7928465335b0286956cfea599b17ebdd6546e03c7bd4fa8f0743d 2.32kB / 2.32kB 0.0s => => sha256:547a82a63ec572158b6d5ee56a031fcedfc08a6cfa97351f6c45a07dc655e42f 2.87kB / 2.87kB 0.0s => => sha256:a37a00ec5f007d0ae73647c82b7d81d98a44fb7d073d06e633d656bca79db62a 70.64MB / 70.64MB 10.9s => => sha256:f14586a49dadd6d2b2316b8512bfa344198d62bfcfd5aee76dd2e094b544f909 124B / 124B 1.9s => => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 2.2s => => extracting sha256:ecd06e024ec6cfee6dee566f2b1049b9c3bdfea6726a832c1023b102c186171c 2.5s => => extracting sha256:a37a00ec5f007d0ae73647c82b7d81d98a44fb7d073d06e633d656bca79db62a 2.6s => => extracting sha256:f14586a49dadd6d2b2316b8512bfa344198d62bfcfd5aee76dd2e094b544f909 0.0s => => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0.0s => [internal] load build context 9.0s => => transferring context: 1.38GB 8.6s => [builder 2/4] WORKDIR /go/src/github.com/gardener/backup-restore 0.5s => [builder 3/4] COPY . . 2.0s => [builder 4/4] RUN make build 10.6s => [backup-restore 2/3] COPY --from=builder /go/src/github.com/gardener/backup-restore/bin/etcdbrctl /etcdbrctl 0.1s => exporting to image 0.1s => => exporting layers 0.1s => => writing image sha256:6ea83145a6888641811a4a4fb96747d10e7753adaabf6472a08e6896fa836218 0.0s => => naming to europe-docker.pkg.dev/gardener-project/snapshots/gardener/etcdbrctl:v0.31.0-dev 0.0s View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/lekz93xsjk16g5zs0es5al4g7 Build multi-platform images faster with Docker Build Cloud: https://docs.docker.com/go/docker-build-cloud ```
make build passes
make test passes (output too big)