aboutsummaryrefslogtreecommitdiff
path: root/docker/kubetoolbox
diff options
context:
space:
mode:
Diffstat (limited to 'docker/kubetoolbox')
-rw-r--r--docker/kubetoolbox/Dockerfile.j210
1 files changed, 1 insertions, 9 deletions
diff --git a/docker/kubetoolbox/Dockerfile.j2 b/docker/kubetoolbox/Dockerfile.j2
index 6cd8f6dc3..34f7695a9 100644
--- a/docker/kubetoolbox/Dockerfile.j2
+++ b/docker/kubetoolbox/Dockerfile.j2
@@ -3,13 +3,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block kubetoolbox_header %}{% endblock %}
-{% if base_arch != 'x86_64' %}
-
-RUN echo 'There is no "kubectl" binary for {{ base_arch }}' \
- && /bin/false
-
-{% endif %}
-
{% import "macros.j2" as macros with context %}
{% set kubetoolbox_packages = [
@@ -21,8 +14,7 @@ RUN echo 'There is no "kubectl" binary for {{ base_arch }}' \
{{ macros.install_packages(kubetoolbox_packages | customizable("packages")) }}
{% block kubetoolbox_install_kube_binary %}
-RUN curl -o /usr/bin/kubectl http://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl \
- && chmod 755 /usr/bin/kubectl
+ {{ macros.install_kubectl() }}
{% endblock %}
{% block kubetoolbox_footer %}{% endblock %}