Skip to content

Commit 78774eb

Browse files
authored
Merge pull request kubernetes#92078 from jingyih/update_etcd_makefile_for_3p4p9
Update etcd makefile to build 3.4.9 image
2 parents e760ecd + 2444f5e commit 78774eb

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

build/dependencies.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ dependencies:
5252
match: ETCD_VERSION
5353
- path: cluster/gce/upgrade-aliases.sh
5454
match: ETCD_IMAGE|ETCD_VERSION
55-
- path: cluster/images/etcd/Makefile
56-
match: BUNDLED_ETCD_VERSIONS\?|LATEST_ETCD_VERSION\?
57-
- path: cluster/images/etcd/migrate-if-needed.sh
58-
match: BUNDLED_VERSIONS=
5955
- path: cmd/kubeadm/app/constants/constants.go
6056
- path: hack/lib/etcd.sh
6157
match: ETCD_VERSION=
@@ -64,6 +60,14 @@ dependencies:
6460
- path: test/e2e/framework/nodes_util.go
6561
match: const etcdImage
6662

63+
- name: "etcd-image"
64+
version: 3.4.9
65+
refPaths:
66+
- path: cluster/images/etcd/Makefile
67+
match: BUNDLED_ETCD_VERSIONS\?|LATEST_ETCD_VERSION\?
68+
- path: cluster/images/etcd/migrate-if-needed.sh
69+
match: BUNDLED_VERSIONS=
70+
6771
- name: "golang"
6872
version: 1.13.9
6973
refPaths:

cluster/images/etcd/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Build the etcd image
1616
#
1717
# Usage:
18-
# [BUNDLED_ETCD_VERSIONS=3.0.17 3.1.12 3.2.24 3.3.17 3.4.7] [REGISTRY=k8s.gcr.io] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
18+
# [BUNDLED_ETCD_VERSIONS=3.0.17 3.1.12 3.2.24 3.3.17 3.4.9] [REGISTRY=k8s.gcr.io] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
1919
#
2020
# The image contains different etcd versions to simplify
2121
# upgrades. Thus be careful when removing any versions from here.
@@ -26,15 +26,15 @@
2626
# Except from etcd-$(version) and etcdctl-$(version) binaries, we also
2727
# need etcd and etcdctl binaries for backward compatibility reasons.
2828
# That binary will be set to the last version from $(BUNDLED_ETCD_VERSIONS).
29-
BUNDLED_ETCD_VERSIONS?=3.0.17 3.1.12 3.2.24 3.3.17 3.4.7
29+
BUNDLED_ETCD_VERSIONS?=3.0.17 3.1.12 3.2.24 3.3.17 3.4.9
3030

3131
# LATEST_ETCD_VERSION identifies the most recent etcd version available.
32-
LATEST_ETCD_VERSION?=3.4.7
32+
LATEST_ETCD_VERSION?=3.4.9
3333

3434
# REVISION provides a version number fo this image and all it's bundled
3535
# artifacts. It should start at zero for each LATEST_ETCD_VERSION and increment
3636
# for each revision of this image at that etcd version.
37-
REVISION?=2
37+
REVISION?=0
3838

3939
# IMAGE_TAG Uniquely identifies k8s.gcr.io/etcd docker image with a tag of the form "<etcd-version>-<revision>".
4040
IMAGE_TAG=$(LATEST_ETCD_VERSION)-$(REVISION)
@@ -61,7 +61,7 @@ endif
6161

6262
# This option is for running docker manifest command
6363
export DOCKER_CLI_EXPERIMENTAL := enabled
64-
# golang version should match the golang version from https://github.com/coreos/etcd/releases for the current ETCD_VERSION.
64+
# golang version should match the golang version of the official build from https://github.com/etcd-io/etcd/releases.
6565
GOLANG_VERSION?=1.12.17
6666
GOARM?=7
6767
TEMP_DIR:=$(shell mktemp -d)

cluster/images/etcd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ server.
2626

2727
`migrate` writes a `version.txt` file to track the "current" version
2828
of etcd that was used to persist data to disk. A "target" version may also be provided
29-
by the `TARGET_STORAGE` (e.g. "etcd3") and `TARGET_VERSION` (e.g. "3.4.7" )
29+
by the `TARGET_STORAGE` (e.g. "etcd3") and `TARGET_VERSION` (e.g. "3.4.9" )
3030
environment variables. If the persisted version differs from the target version,
3131
`migrate-if-needed.sh` will migrate the data from the current to the target
3232
version.

cluster/images/etcd/migrate-if-needed.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# variables:
2020
# TARGET_STORAGE - API of etcd to be used (supported: 'etcd3')
2121
# TARGET_VERSION - etcd release to be used (supported: '3.0.17', '3.1.12',
22-
# '3.2.24', "3.3.17", "3.4.7")
22+
# '3.2.24', "3.3.17", "3.4.9")
2323
# DATA_DIRECTORY - directory with etcd data
2424
#
2525
# The current etcd version and storage format is detected based on the
@@ -30,7 +30,7 @@
3030
# - 3.0.17/etcd3 -> 3.1.12/etcd3
3131
# - 3.1.12/etcd3 -> 3.2.24/etcd3
3232
# - 3.2.24/etcd3 -> 3.3.17/etcd3
33-
# - 3.3.17/etcd3 -> 3.4.7/etcd3
33+
# - 3.3.17/etcd3 -> 3.4.9/etcd3
3434
#
3535
# NOTE: The releases supported in this script has to match release binaries
3636
# present in the etcd image (to make this script work correctly).
@@ -43,7 +43,7 @@ set -o nounset
4343

4444
# NOTE: BUNDLED_VERSION has to match release binaries present in the
4545
# etcd image (to make this script work correctly).
46-
BUNDLED_VERSIONS="3.0.17, 3.1.12, 3.2.24, 3.3.17, 3.4.7"
46+
BUNDLED_VERSIONS="3.0.17, 3.1.12, 3.2.24, 3.3.17, 3.4.9"
4747

4848
# shellcheck disable=SC2039
4949
ETCD_NAME="${ETCD_NAME:-etcd-${ETCD_HOSTNAME:-$(hostname -s)}}"

0 commit comments

Comments
 (0)