Skip to content

Commit 1adfe56

Browse files
committed
Add version flag
1 parent adfc5c9 commit 1adfe56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kubectl-build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33
export DOCKER_CONFIG=${KUBECTL_BUILD_DOCKER_CONFIG:-${DOCKER_CONFIG:-$HOME/.docker/config.json}}
44
export KUBECONFIG="${KUBECTL_BUILD_KUBECONFIG:-$KUBECONFIG}"
55
kubectl=kubectl
6+
version=1.6.0
67
image="${KUBECTL_BUILD_IMAGE:-ghcr.io/kvaps/kaniko-executor:v1.6.0}"
78
name="${KUBECTL_BUILD_NAME_OVERRIDE:-kaniko-$(env LC_ALL=C tr -dc a-z0-9 </dev/urandom | head -c 6)}"
89
context=""
@@ -19,6 +20,10 @@ while [ $# -gt 0 ]; do
1920
key="$1"
2021

2122
case $key in
23+
-v | --version)
24+
echo "kubectl-build $version"
25+
exit 0
26+
;;
2227
-c | --context)
2328
context="$2"
2429
shift

0 commit comments

Comments
 (0)