File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,6 @@ readonly KUBE_CONTAINER_RSYNC_PORT=8730
93
93
#
94
94
# $1 - server architecture
95
95
kube::build::get_docker_wrapped_binaries () {
96
- local arch=$1
97
- local debian_base_version=v2.1.3
98
96
local debian_iptables_version=v12.1.2
99
97
local go_runner_version=buster-v2.0.0
100
98
# ## If you change any of these lists, please also update DOCKERIZED_BINARIES
@@ -103,7 +101,7 @@ kube::build::get_docker_wrapped_binaries() {
103
101
" kube-apiserver,${KUBE_BASE_IMAGE_REGISTRY} /go-runner:${go_runner_version} "
104
102
" kube-controller-manager,${KUBE_BASE_IMAGE_REGISTRY} /go-runner:${go_runner_version} "
105
103
" kube-scheduler,${KUBE_BASE_IMAGE_REGISTRY} /go-runner:${go_runner_version} "
106
- " kube-proxy,${KUBE_BASE_IMAGE_REGISTRY} /debian-iptables- ${arch} :${debian_iptables_version} "
104
+ " kube-proxy,${KUBE_BASE_IMAGE_REGISTRY} /debian-iptables:${debian_iptables_version} "
107
105
)
108
106
109
107
echo " ${targets[@]} "
Original file line number Diff line number Diff line change @@ -118,8 +118,6 @@ dependencies:
118
118
- name : " k8s.gcr.io/debian-base: dependents"
119
119
version : 2.1.3
120
120
refPaths :
121
- - path : build/common.sh
122
- match : debian_base_version=
123
121
- path : build/workspace.bzl
124
122
match : tag =
125
123
- path : cluster/images/etcd/Makefile
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ function kube::release::create_docker_images_for_server() {
334
334
local images_dir
335
335
binary_dir=" $1 "
336
336
arch=" $2 "
337
- binaries=$( kube::build::get_docker_wrapped_binaries " ${arch} " )
337
+ binaries=$( kube::build::get_docker_wrapped_binaries)
338
338
images_dir=" ${RELEASE_IMAGES} /${arch} "
339
339
mkdir -p " ${images_dir} "
340
340
@@ -375,7 +375,7 @@ function kube::release::create_docker_images_for_server() {
375
375
ln " ${KUBE_ROOT} /build/nsswitch.conf" " ${docker_build_path} /nsswitch.conf"
376
376
chmod 0644 " ${docker_build_path} /nsswitch.conf"
377
377
cat << EOF > "${docker_file_path} "
378
- FROM ${base_image}
378
+ FROM --platform=linux/ ${arch} ${base_image}
379
379
COPY ${binary_name} /usr/local/bin/${binary_name}
380
380
EOF
381
381
# ensure /etc/nsswitch.conf exists so go's resolver respects /etc/hosts
You can’t perform that action at this time.
0 commit comments