Skip to content

Commit

Permalink
Set k8s install/uninstall scripts to abort on errors and unbound vari…
Browse files Browse the repository at this point in the history
…ables

Signed-off-by: Bill Robinson <[email protected]>
  • Loading branch information
dseevr committed Mar 1, 2017
1 parent 3a1a92a commit 87ab8f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion install/k8s/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# This is the uninstall script for Contiv.
# This is the install script for Contiv.

set -euo pipefail

#
# The following parameters are user defined - and vary for each installation
Expand Down
4 changes: 3 additions & 1 deletion install/k8s/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

if [ "$1" = "-h" ]; then
echo "Usage: ./install/k8s/uninstall.sh to uninstall contiv"
echo " ./install/k8s/uninstall.sh etcd-cleanup to uninstall contiv and cleanup contiv data"
Expand All @@ -16,4 +18,4 @@ if [ "$1" = "etcd-cleanup" ]; then
fi

# Re-creating the kube-dns deployment
kubectl create -f kube-dns.yaml
kubectl create -f kube-dns.yaml

0 comments on commit 87ab8f4

Please sign in to comment.