aboutsummaryrefslogtreecommitdiff
path: root/docker/magnum
diff options
context:
space:
mode:
Diffstat (limited to 'docker/magnum')
-rw-r--r--docker/magnum/magnum-conductor/Dockerfile.j212
1 files changed, 1 insertions, 11 deletions
diff --git a/docker/magnum/magnum-conductor/Dockerfile.j2 b/docker/magnum/magnum-conductor/Dockerfile.j2
index 518881fad..e080e3b86 100644
--- a/docker/magnum/magnum-conductor/Dockerfile.j2
+++ b/docker/magnum/magnum-conductor/Dockerfile.j2
@@ -3,13 +3,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block magnum_conductor_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 %}
{% if install_type == 'binary' %}
@@ -26,10 +19,7 @@ RUN echo 'There is no "kubectl" binary for {{ base_arch }}' \
{% endif %}
{{ macros.install_packages(magnum_conductor_packages | customizable("packages")) }}
-# Install kubectl binary
-RUN curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.2.0/bin/linux/amd64/kubectl \
- && chmod +x /usr/local/bin/kubectl
-
+{{ macros.install_kubectl() }}
{% endif %}
{% block magnum_conductor_footer %}{% endblock %}