about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-05-08T12·18+0200
committerVincent Ambo <tazjin@gmail.com>2017-05-08T12·20+0200
commitcb6413bff708551975eda7368595a60a144731af (patch)
treef1ec1a17a95c17013392d4680115a0e5d81a81f6
parent20ccc33347c325075cc6f9dfab637ec22660347e (diff)
fix main: Exit with kubectl status code
If kubectl fails during a kontemplate run, kontemplate should also
exit with a non-zero status code.

This fixes #43
-rwxr-xr-xbuild-release.sh2
-rw-r--r--main.go6
2 files changed, 3 insertions, 5 deletions
diff --git a/build-release.sh b/build-release.sh
index d70bd3eea25a..32eefaf39fea 100755
--- a/build-release.sh
+++ b/build-release.sh
@@ -3,7 +3,7 @@ set -ueo pipefail
 
 readonly GIT_HASH="$(git rev-parse --short HEAD)"
 readonly LDFLAGS="-X main.gitHash=${GIT_HASH} -w -s"
-readonly VERSION="1.0-${GIT_HASH}"
+readonly VERSION="1.0.1-${GIT_HASH}"
 
 function build-for() {
     local os="${1}"
diff --git a/main.go b/main.go
index 53f4defd8595..0fcf93d66ef6 100644
--- a/main.go
+++ b/main.go
@@ -11,7 +11,7 @@ import (
 	"gopkg.in/alecthomas/kingpin.v2"
 )
 
-const version string = "1.0"
+const version string = "1.0.1"
 
 // This variable will be initialised by the Go linker during the builder
 var gitHash string
@@ -155,7 +155,5 @@ func runKubectlWithResources(c *context.Context, kubectlArgs *[]string, resource
 	}
 	stdin.Close()
 
-	kubectl.Wait()
-
-	return nil
+	return kubectl.Wait()
 }