Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Adding etcd 3.4.3 into the layers for etcd-manager
Browse files Browse the repository at this point in the history
Signed-off-by: mmerrill3 <[email protected]>
  • Loading branch information
mmerrill3 committed Jan 10, 2020
1 parent bcf2c14 commit ec6079b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,14 @@ gazelle(
"etcd",
"etcdctl",
]]

[genrule(
name = "etcd-v3.4.3-linux-amd64_%s" % c,
srcs = ["@etcd_3_4_3_tar//file"],
outs = ["etcd-v3.4.3-linux-amd64/%s" % c],
cmd = "tar -x -z --no-same-owner -f ./$(location @etcd_3_4_3_tar//file) etcd-v3.4.3-linux-amd64/%s && mv etcd-v3.4.3-linux-amd64/%s \"$@\"" % (c, c),
visibility = ["//visibility:public"],
) for c in [
"etcd",
"etcdctl",
]]
6 changes: 6 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ http_file(
urls = ["https://github.com/coreos/etcd/releases/download/v3.3.13/etcd-v3.3.13-linux-amd64.tar.gz"],
)

http_file(
name = "etcd_3_4_3_tar",
sha256 = "6c642b723a86941b99753dff6c00b26d3b033209b15ee33325dc8e7f4cd68f07",
urls = ["https://github.com/coreos/etcd/releases/download/v3.4.3/etcd-v3.4.3-linux-amd64.tar.gz"],
)

#=============================================================================
# Build etcd from source
# This picks up a number of critical bug fixes, for example:
Expand Down
11 changes: 11 additions & 0 deletions images/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ container_layer(
],
)

# Layer for etcd 3.4.3, updated recommendation for k8s 1.17 and later
container_layer(
name = "etcd-3-4-3-layer",
directory = "/opt/etcd-v3.4.3-linux-amd64/",
files = [
"//:etcd-v3.4.3-linux-amd64_etcdctl",
"//:etcd-v3.4.3-linux-amd64_etcd",
],
)

container_image(
name = "etcd-manager-base",
base = "@debian-hyperkube-base-amd64//image",
Expand All @@ -86,6 +96,7 @@ container_image(
"etcd-3-2-24-layer",
"etcd-3-3-10-layer",
"etcd-3-3-13-layer",
"etcd-3-4-3-layer",
],
)

Expand Down
1 change: 1 addition & 0 deletions test/integration/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ go_test(
"//:etcd-v3.3.10-linux-amd64_etcdctl",
"//:etcd-v3.3.13-linux-amd64_etcd",
"//:etcd-v3.3.13-linux-amd64_etcdctl",
"//:etcd-v3.4.3-linux-amd64_etcdctl",
],
deps = [
"//pkg/apis/etcd:go_default_library",
Expand Down

0 comments on commit ec6079b

Please sign in to comment.