Skip to content

Commit

Permalink
Merge remote-tracking branch 'openshift/openshift-4.17' into rebase-e…
Browse files Browse the repository at this point in the history
…tcd-3.5.18-openshift-4.17
  • Loading branch information
Elbehery committed Feb 26, 2025
2 parents a5af229 + 23c5a24 commit 8333233
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .ci-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
tag: rhel-9-release-golang-1.22-openshift-4.18
tag: rhel-9-release-golang-1.22-openshift-4.17
4 changes: 2 additions & 2 deletions Dockerfile.art
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder

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

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

ENTRYPOINT ["/usr/bin/etcd"]

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.art-cachi2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder

WORKDIR /go/src/go.etcd.io/etcd
COPY . .
Expand Down
14 changes: 6 additions & 8 deletions Dockerfile.installer
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# This Dockerfile builds an image containing Mac and Linux ARM64/AMD64 versions of the etcd.
# The resulting image is used to build the statically-linked openshift-installer binary.

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS macbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS macbuilder
ENV GO_COMPLIANCE_EXCLUDE=".*"
WORKDIR /go/src/go.etcd.io/etcd
COPY . .
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS macarmbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS macarmbuilder
ENV GO_COMPLIANCE_EXCLUDE=".*"
WORKDIR /go/src/go.etcd.io/etcd
COPY . .
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS linuxbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS linuxbuilder
ENV GO_COMPLIANCE_EXCLUDE=".*"
WORKDIR /go/src/go.etcd.io/etcd
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS linuxarmbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS linuxarmbuilder
ENV GO_COMPLIANCE_EXCLUDE=".*"
WORKDIR /go/src/go.etcd.io/etcd
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
ENV GO_COMPLIANCE_EXCLUDE=".*"
WORKDIR /go/src/go.etcd.io/etcd
COPY . .
Expand All @@ -34,9 +34,7 @@ RUN mkdir -p /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH) && \
mv bin/etcd /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH)/

# stage 2
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9

RUN yum install --setopt=tsflags=nodocs -y jq && yum clean all && rm -rf /var/cache/yum/*
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9

COPY --from=macbuilder /go/src/go.etcd.io/etcd/bin/etcd /usr/share/openshift/darwin/amd64/etcd
COPY --from=macarmbuilder /go/src/go.etcd.io/etcd/bin/etcd /usr/share/openshift/darwin/arm64/etcd
Expand Down
14 changes: 6 additions & 8 deletions Dockerfile.installer.art
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This Dockerfile builds an image containing Mac and Linux ARM64/AMD64 versions of the etcd.
# The resulting image is used to build the statically-linked openshift-installer binary.

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS macbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS macbuilder

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

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS macarmbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS macarmbuilder

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

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS linuxbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS linuxbuilder

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

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS linuxarmbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS linuxarmbuilder

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

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
ENV GO_COMPLIANCE_EXCLUDE=".*"
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
WORKDIR $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app
Expand All @@ -73,9 +73,7 @@ RUN mkdir -p /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH) && \
mv bin/etcd /usr/share/openshift/$(go env GOOS)/$(go env GOHOSTARCH)/

# stage 2
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9

RUN yum install --setopt=tsflags=nodocs -y jq && yum clean all && rm -rf /var/cache/yum/*
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9

COPY --from=macbuilder /go/src/go.etcd.io/etcd/bin/etcd /usr/share/openshift/darwin/amd64/etcd
COPY --from=macarmbuilder /go/src/go.etcd.io/etcd/bin/etcd /usr/share/openshift/darwin/arm64/etcd
Expand Down
13 changes: 6 additions & 7 deletions Dockerfile.installer.art-cachi2
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# This Dockerfile builds an image containing Mac and Linux ARM64/AMD64 versions of the etcd.
# The resulting image is used to build the statically-linked openshift-installer binary.

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS macbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS macbuilder

ENV GO_COMPLIANCE_EXCLUDE=".*"

WORKDIR /go/src/go.etcd.io/etcd
COPY . .

RUN find $GOPATH
RUN export GOFLAGS='-mod=readonly' && export GO_BUILD_FLAGS='-v' \
&& CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 ./build.sh

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS macarmbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS macarmbuilder

ENV GO_COMPLIANCE_EXCLUDE=".*"

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

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS linuxbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS linuxbuilder

ENV GO_COMPLIANCE_EXCLUDE=".*"

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

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS linuxarmbuilder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS linuxarmbuilder

ENV GO_COMPLIANCE_EXCLUDE=".*"

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

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
ENV GO_COMPLIANCE_EXCLUDE=".*"

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

# stage 2
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9

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

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder

WORKDIR /go/src/go.etcd.io/etcd

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

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

ENTRYPOINT ["/usr/bin/etcd"]

Expand Down
4 changes: 2 additions & 2 deletions client/v3/patch_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ func (c *cluster) NonLinearizeableMemberList(ctx context.Context) (*MemberListRe
if err == nil {
return (*MemberListResponse)(resp), nil
}
return nil, toErr(ctx, err)
}
return nil, ContextError(ctx, err)
}
7 changes: 1 addition & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ require (
github.com/bgentry/speakeasy v0.1.0
github.com/dustin/go-humanize v1.0.0
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
go.etcd.io/bbolt v1.3.11
go.etcd.io/etcd/api/v3 v3.5.18
go.etcd.io/etcd/client/pkg/v3 v3.5.18
Expand Down Expand Up @@ -71,7 +72,6 @@ require (
github.com/prometheus/procfs v0.6.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 // indirect
Expand All @@ -95,9 +95,4 @@ require (
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
go.etcd.io/gofail v0.2.0 // indirect
github.com/urfave/cli v1.22.4 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/russross/blackfriday/v2 v2.0.1 //indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 //indirect
)

0 comments on commit 8333233

Please sign in to comment.