Get kubectl from local artifactory
Closes-Bug: PRODX-7852
Change-Id: I38f5a01c2788db2e3b28b4c25b1e7dde4e318fec
diff --git a/de/heat-templates/scripts/instance_boot.sh b/de/heat-templates/scripts/instance_boot.sh
index fe1c100..2ecb9d4 100644
--- a/de/heat-templates/scripts/instance_boot.sh
+++ b/de/heat-templates/scripts/instance_boot.sh
@@ -58,7 +58,7 @@
UCP_USERNAME=${UCP_USERNAME:-admin}
UCP_PASSWORD=${UCP_PASSWORD:-administrator}
OS_CODENAME=$(lsb_release -c -s)
-KUBECTL_VERSION=${KUBECTL_VERSION:-v1.14.0}
+KUBECTL_VERSION=${KUBECTL_VERSION:-1.18.8}
NODE_DEPLOYMENT_RETRIES=${NODE_DEPLOYMENT_RETRIES:-15}
FLOATING_NETWORK_PREFIXES=${FLOATING_NETWORK_PREFIXES:-10.11.12.0/24}
PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-ens4}
@@ -275,9 +275,9 @@
}
function install_kubectl {
- curl --retry 6 --retry-delay 5 -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl
- chmod +x kubectl
- mv kubectl /usr/local/bin/
+ local kubectl=/usr/local/bin/kubectl
+ curl --retry 6 --retry-delay 5 -L https://artifactory.mcp.mirantis.net/artifactory/binary-dev-kaas-local/core/bin/mirror/kubectl-${KUBECTL_VERSION}-linux -o ${kubectl}
+ chmod +x ${kubectl}
cat << EOF >> ~/.bashrc
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)