File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
export DOCKER_CONFIG=${KUBECTL_BUILD_DOCKER_CONFIG:- ${DOCKER_CONFIG:- $HOME / .docker/ config.json} }
4
4
export KUBECONFIG=" ${KUBECTL_BUILD_KUBECONFIG:- $KUBECONFIG } "
5
5
kubectl=kubectl
6
- version=1.7.0
6
+ version=1.7.1
7
7
image=" ${KUBECTL_BUILD_IMAGE:- ghcr.io/ kvaps/ kaniko-executor: v1.7.0} "
8
8
name=" ${KUBECTL_BUILD_NAME_OVERRIDE:- kaniko-$(env LC_ALL=C tr -dc a-z0-9 </ dev/ urandom | head -c 6)} "
9
9
context=" "
@@ -194,8 +194,8 @@ if [ "$usetar" = "true" ]; then
194
194
if [ " $debug " = true ]; then
195
195
kill $( cat " $pidfile " ) 2> /dev/null
196
196
fi
197
- ec= $( $ kubectl get pod " $name " -o ' jsonpath={ .status.containerStatuses[0]. state.terminated. exitCode} ' )
198
- exit ${ec :- 1 }
197
+ $ kubectl get pod " $name " -w - o ' go-template={{with .status.containerStatuses}}{{range .}}{{with . state.terminated}}{{index . " exitCode"}}{{"\n"}}{{.exitCode.err}}{{end}}{{end}}{{end}} ' 2> /dev/null \
198
+ | { read ec ; exit $ec ; }
199
199
)
200
200
else
201
201
$kubectl run --image " $image " --restart=Never --overrides=" $overrides " -i " $name " $generator
You can’t perform that action at this time.
0 commit comments