summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/scripts/k8s/install_kubectl.sh
blob: 8d1229b527fc425dc17663f90bcc1b1716690b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

kubectl_version=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)

echo "[INFO] kubectl version - ${kubectl_version}"

curl_status=$(curl -w '%{http_code}\n' -LO https://storage.googleapis.com/kubernetes-release/release/${kubectl_version}/bin/linux/amd64/kubectl)

if [ $curl_status != 200 ] ; then
  echo "[ERROR] Download kubectl failed - $curl_status"
  exit -1
fi

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin/kubectl

echo "source <(kubectl completion bash)" >> ~/.bashrc
span class="s">"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.onap.ccsdk.parent</groupId> <artifactId>odlparent-lite</artifactId> <version>1.3.2</version> <relativePath/> </parent> <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId> <artifactId>sdnr-northbound</artifactId> <version>0.5.2-SNAPSHOT</version> <packaging>pom</packaging> <name>ccsdk-sdnr-northbound :: features</name> <description>SDN-R RAN and OOF PCI ANR POC </description> <modules> <module>oofpcipoc</module> <module>features</module> </modules> </project>