-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5ed948
commit dfa3fc1
Showing
12 changed files
with
192 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ data/ | |
|
||
*.tgz | ||
/fission-workflows-bundle | ||
/wfcli | ||
/wfcli | ||
__pycache__/ | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
. $(dirname $0)/utils.sh | ||
|
||
BIN_DIR=${BIN_DIR:-/tmp/fission-workflow-ci/bin} | ||
HELM_VERSION=2.8.2 | ||
KUBECTL_VERSION=1.9.6 | ||
FISSION_VERSION=0.6.0 | ||
|
||
# Install kubectl | ||
if ! kubectl version -c 2>/dev/null | grep ${KUBECTL_VERSION} >/dev/null; then | ||
emph "Installing kubectl ${KUBECTL_VERSION} to ${BIN_DIR}/kubectl..." | ||
curl -sLO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl | ||
chmod +x ./kubectl | ||
mv -f kubectl ${BIN_DIR}/kubectl | ||
else | ||
emph "Kubectl ${KUBECTL_VERSION} already present." | ||
fi | ||
mkdir -p ${HOME}/.kube | ||
which kubectl | ||
|
||
# Install helm client | ||
if ! helm version -c 2>/dev/null | grep ${HELM_VERSION} >/dev/null; then | ||
emph "Installing Helm ${HELM_VERSION} to ${BIN_DIR}/helm..." | ||
curl -sLO https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz | ||
tar xzvf helm-*.tar.gz | ||
chmod +x linux-amd64/helm | ||
mv -f linux-amd64/helm ${BIN_DIR}/helm | ||
else | ||
emph "Helm ${HELM_VERSION} already present." | ||
fi | ||
which helm | ||
|
||
# Install Fission client | ||
if ! fission --version 2>/dev/null | grep ${FISSION_VERSION} >/dev/null; then | ||
emph "Installing Fission ${FISSION_VERSION} to ${BIN_DIR}/fission..." | ||
curl -sLo fission https://github.com/fission/fission/releases/download/${FISSION_VERSION}/fission-cli-linux | ||
chmod +x fission | ||
mv -f fission ${BIN_DIR}/fission | ||
else | ||
emph "Fission ${FISSION_VERSION} already present." | ||
fi | ||
which fission | ||
|
||
# TODO install gcloud | ||
|
||
emph "Clients installed in ${BIN_DIR}" |
Binary file not shown.
Oops, something went wrong.