aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/tools/get_ranchercli.sh
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-07-14 17:04:53 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2019-07-15 15:59:34 +0200
commit6bbff98bfe55838448a03ec52c25c06feec2e8db (patch)
treedcf42271a00b4f2dc645e3f714b2dc3de7f598ed /test/security/k8s/tools/get_ranchercli.sh
parente3a828592d9a57e2d73fbd4984a4d28a3e7439e6 (diff)
k8s: Move release-specific files to separate directory
Kubernetes cluster deployment procedure changed with Dublin release (Rancher to RKE). In order to prepare for further adjustments, incompatible content will be moved to separate directories. Once Casablanca becomes obsolete (by the time of El Alto), files specific to that release will be removed completely. Issue-ID: SECCOM-235 Change-Id: Iaa0fc2f6ad330ec09dcfdf8a2d27b8a4dc433a0f Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s/tools/get_ranchercli.sh')
-rwxr-xr-xtest/security/k8s/tools/get_ranchercli.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/security/k8s/tools/get_ranchercli.sh b/test/security/k8s/tools/get_ranchercli.sh
deleted file mode 100755
index a5295fb17..000000000
--- a/test/security/k8s/tools/get_ranchercli.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-
-# Constants
-DEFAULT_VERSION='v0.6.12'
-DEFAULT_ARCH='amd64'
-DEFAULT_SYSTEM='linux'
-
-# Variables
-VERSION="${1:-$DEFAULT_VERSION}"
-ARCH="${2:-$DEFAULT_ARCH}"
-SYSTEM="${3:-$DEFAULT_SYSTEM}"
-
-ARCHIVE="rancher-${SYSTEM}-${ARCHITECTURE}-${VERSION}.tar.gz"
-DIRECTORY="rancher-${VERSION}"
-URL="https://releases.rancher.com/cli/${VERSION}/${ARCHIVE}"
-
-
-# Prerequistes
-wget "$URL"
-tar xf "$ARCHIVE"
-
-# Installation
-echo '# Privilege elevation needed to move Rancher CLI binary to /usr/local/bin'
-sudo mv "${DIRECTORY}/rancher" /usr/local/bin/
-
-# Cleanup
-rmdir "$DIRECTORY"
-rm "$ARCHIVE"