CORD-3224 Implement KubernetesResourceInstance
Change-Id: Ic3c7691aa16a20c0d7d69994fef1ad8ac6d1ca44
diff --git a/Dockerfile.synchronizer b/Dockerfile.synchronizer
index 3609ee2..4b923b5 100644
--- a/Dockerfile.synchronizer
+++ b/Dockerfile.synchronizer
@@ -29,6 +29,14 @@
COPY api_client.patch /tmp/api_client.patch
RUN patch -d /usr/local/lib/python2.7/dist-packages/kubernetes/client < /tmp/api_client.patch
+ENV KUBECTL_VERSION "1.10.5"
+ENV KUBECTL_SHA256SUM "a9e7f82e516aa8a652bc485620483ea964eb940787cabf890d7eab96eaac294d"
+RUN curl -L -o /tmp/kubectl "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
+ && echo "$KUBECTL_SHA256SUM /tmp/kubectl" | sha256sum -c - \
+ && mv /tmp/kubectl /usr/local/bin/kubectl \
+ && chmod a+x /usr/local/bin/kubectl \
+ && rm -f /tmp/kubectl
+
WORKDIR "/opt/xos/synchronizers/kubernetes"
# Label image