Skip to content

Commit f483069

Browse files
sdodsonclaude
andcommitted
DOWNSTREAM: <drop>: 3.6.9 fixup
Update Dockerfiles and CI config to use golang-1.25-openshift-4.22 builder and 4.22 base images. Fix downstream code for upstream package renames in v3.6.9: - server/datadir -> server/storage/datadir - server/wal -> server/storage/wal - pkg/grpc_testing -> pkg/grpctesting (GrpcRecorder -> GRPCRecorder) - Replace removed v2http.NewClientHandler with etcdhttp handlers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6ed51f6 commit f483069

11 files changed

Lines changed: 41 additions & 39 deletions

File tree

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: release
33
namespace: openshift
4-
tag: rhel-9-release-golang-1.24-openshift-4.21
4+
tag: rhel-9-release-golang-1.25-openshift-4.22

Dockerfile.art

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
22

33
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
44
WORKDIR $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app
@@ -10,7 +10,7 @@ RUN mkdir -p /go/src/go.etcd.io/
1010
RUN ln -s $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app /go/src/go.etcd.io/etcd
1111

1212
# stage 2 (note: any changes should reflect in Dockerfile.rhel)
13-
FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
13+
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
1414

1515
ENTRYPOINT ["/usr/bin/etcd"]
1616

Dockerfile.art-cachi2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
22

33
WORKDIR /go/src/go.etcd.io/etcd
44
COPY . .
55
RUN GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh
66

77
# stage 2 (note: any changes should reflect in Dockerfile.rhel)
8-
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
8+
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
99

1010
ENTRYPOINT ["/usr/bin/etcd"]
1111

Dockerfile.installer

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# This Dockerfile builds an image containing Mac and Linux ARM64/AMD64 versions of the etcd.
22
# The resulting image is used to build the statically-linked openshift-installer binary.
33

4-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS macbuilder
4+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS macbuilder
55
ENV GO_COMPLIANCE_EXCLUDE=".*"
66
WORKDIR /go/src/go.etcd.io/etcd
77
COPY . .
88
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh
99

10-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS macarmbuilder
10+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS macarmbuilder
1111
ENV GO_COMPLIANCE_EXCLUDE=".*"
1212
WORKDIR /go/src/go.etcd.io/etcd
1313
COPY . .
1414
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh
1515

16-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS linuxbuilder
16+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS linuxbuilder
1717
ENV GO_COMPLIANCE_EXCLUDE=".*"
1818
WORKDIR /go/src/go.etcd.io/etcd
1919
COPY . .
2020
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh
2121

22-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS linuxarmbuilder
22+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS linuxarmbuilder
2323
ENV GO_COMPLIANCE_EXCLUDE=".*"
2424
WORKDIR /go/src/go.etcd.io/etcd
2525
COPY . .
2626
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh
2727

28-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
28+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
2929
ENV GO_COMPLIANCE_EXCLUDE=".*"
3030
WORKDIR /go/src/go.etcd.io/etcd
3131
COPY . .
@@ -34,7 +34,7 @@ RUN mkdir -p /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH) && \
3434
mv bin/etcd /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH)/
3535

3636
# stage 2
37-
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
37+
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
3838

3939
RUN yum install --setopt=tsflags=nodocs -y jq && yum clean all && rm -rf /var/cache/yum/*
4040

Dockerfile.installer.art

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This Dockerfile builds an image containing Mac and Linux ARM64/AMD64 versions of the etcd.
22
# The resulting image is used to build the statically-linked openshift-installer binary.
33

4-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS macbuilder
4+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS macbuilder
55

66
ENV GO_COMPLIANCE_EXCLUDE=".*"
77
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
@@ -15,7 +15,7 @@ RUN source $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env \
1515
&& export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
1616
&& CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 ./build.sh
1717

18-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS macarmbuilder
18+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS macarmbuilder
1919

2020
ENV GO_COMPLIANCE_EXCLUDE=".*"
2121
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
@@ -29,7 +29,7 @@ RUN source $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env \
2929
&& export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
3030
&& CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 ./build.sh
3131

32-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS linuxbuilder
32+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS linuxbuilder
3333

3434
ENV GO_COMPLIANCE_EXCLUDE=".*"
3535
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
@@ -43,7 +43,7 @@ RUN source $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env \
4343
&& export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
4444
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./build.sh
4545

46-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS linuxarmbuilder
46+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS linuxarmbuilder
4747

4848
ENV GO_COMPLIANCE_EXCLUDE=".*"
4949
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
@@ -57,7 +57,7 @@ RUN source $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env \
5757
&& export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
5858
&& CGO_ENABLED=0 GOOS=linux GOARCH=arm64 ./build.sh
5959

60-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
60+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
6161
ENV GO_COMPLIANCE_EXCLUDE=".*"
6262
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
6363
WORKDIR $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app
@@ -73,7 +73,7 @@ RUN mkdir -p /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH) && \
7373
mv bin/etcd /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH)/
7474

7575
# stage 2
76-
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
76+
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
7777

7878
RUN yum install --setopt=tsflags=nodocs -y jq && yum clean all && rm -rf /var/cache/yum/*
7979

Dockerfile.installer.art-cachi2

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This Dockerfile builds an image containing Mac and Linux ARM64/AMD64 versions of the etcd.
22
# The resulting image is used to build the statically-linked openshift-installer binary.
33

4-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS macbuilder
4+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS macbuilder
55

66
ENV GO_COMPLIANCE_EXCLUDE=".*"
77

@@ -12,7 +12,7 @@ RUN find $GOPATH
1212
RUN export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
1313
&& CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 ./build.sh
1414

15-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS macarmbuilder
15+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS macarmbuilder
1616

1717
ENV GO_COMPLIANCE_EXCLUDE=".*"
1818

@@ -22,7 +22,7 @@ COPY . .
2222
RUN export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
2323
&& CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 ./build.sh
2424

25-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS linuxbuilder
25+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS linuxbuilder
2626

2727
ENV GO_COMPLIANCE_EXCLUDE=".*"
2828

@@ -31,7 +31,7 @@ COPY . .
3131
RUN export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
3232
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./build.sh
3333

34-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS linuxarmbuilder
34+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS linuxarmbuilder
3535

3636
ENV GO_COMPLIANCE_EXCLUDE=".*"
3737

@@ -40,7 +40,7 @@ COPY . .
4040
RUN export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
4141
&& CGO_ENABLED=0 GOOS=linux GOARCH=arm64 ./build.sh
4242

43-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
43+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
4444
ENV GO_COMPLIANCE_EXCLUDE=".*"
4545

4646
WORKDIR /go/src/go.etcd.io/etcd
@@ -51,7 +51,7 @@ RUN mkdir -p /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH) && \
5151
mv bin/etcd /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH)/
5252

5353
# stage 2
54-
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
54+
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
5555

5656
RUN yum install --setopt=tsflags=nodocs -y jq && yum clean all && rm -rf /var/cache/yum/*
5757

Dockerfile.rhel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
22

33
WORKDIR /go/src/go.etcd.io/etcd
44

@@ -8,7 +8,7 @@ COPY . .
88
RUN GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh
99

1010
# stage 2 (note: any changes should reflect in Dockerfile.art)
11-
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
11+
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
1212

1313
ENTRYPOINT ["/usr/bin/etcd"]
1414

client/v3/patch_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ func (c *cluster) NonLinearizeableMemberList(ctx context.Context) (*MemberListRe
2020
if err == nil {
2121
return (*MemberListResponse)(resp), nil
2222
}
23-
return nil, toErr(ctx, err)
23+
return nil, ContextError(ctx, err)
2424
}

openshift-tools/pkg/discover-etcd-initial-cluster/walutil.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ package discover_etcd_initial_cluster
22

33
import (
44
"errors"
5-
"go.etcd.io/etcd/server/v3/datadir"
5+
"go.etcd.io/etcd/server/v3/storage/datadir"
66
"go.etcd.io/etcd/server/v3/etcdserver/api/snap"
77
"path/filepath"
88

99
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
1010
"go.etcd.io/etcd/client/pkg/v3/types"
1111
"go.etcd.io/etcd/pkg/v3/pbutil"
12-
"go.etcd.io/etcd/server/v3/wal"
13-
"go.etcd.io/etcd/server/v3/wal/walpb"
12+
"go.etcd.io/etcd/server/v3/storage/wal"
13+
"go.etcd.io/etcd/server/v3/storage/wal/walpb"
1414

1515
"go.uber.org/zap"
1616
)

server/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ package config
1717
import (
1818
"context"
1919
"fmt"
20+
"os"
2021
"path/filepath"
2122
"sort"
23+
"strconv"
2224
"strings"
2325
"time"
2426

0 commit comments

Comments
 (0)