File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ OPTIONS:
160
160
--reuse
161
161
Use existing templates if preflights have been played before
162
162
163
+ --save-local-preflights-output
164
+ Save the local preflights output in the current directory
165
+
163
166
--nosave
164
167
Do not save results in-cluster (not recommended)
165
168
@@ -190,6 +193,7 @@ REMOTE_CHECKS="yes"
190
193
VALUES_FILES=" "
191
194
FORCE=" yes"
192
195
SAVE=" yes"
196
+ SAVE_LOCAL_PREFLIGHTS_OUTPUT=" no"
193
197
DEBUG_MODE=" no"
194
198
INSTALL_JQ=" no"
195
199
INSTALL_HELM=" no"
@@ -225,6 +229,10 @@ while (("$#")); do
225
229
FORCE=" no"
226
230
shift
227
231
;;
232
+ --save-local-preflights-output)
233
+ SAVE_LOCAL_PREFLIGHTS_OUTPUT=" yes"
234
+ shift
235
+ ;;
228
236
--install-jq)
229
237
INSTALL_JQ=" yes"
230
238
shift
@@ -387,11 +395,15 @@ then
387
395
LOCAL_CHECKS_STATUS=" error"
388
396
exit_ko
389
397
fi
398
+ if [[ " $SAVE_LOCAL_PREFLIGHTS_OUTPUT " == " no" ]];
399
+ then
400
+ rm -f $script_dir /preflightbundle-* .tar.gz
401
+ fi
390
402
fi
391
403
392
404
if [[ " $REMOTE_CHECKS " == " yes" ]];
393
405
then
394
- if ! run_hide_output " jq --version" " all " ;
406
+ if ! jq --version & > /dev/null ;
395
407
then
396
408
if [[ " $INSTALL_JQ " == " no" ]];
397
409
then
456
468
done
457
469
458
470
# Print preflights output
459
- output=` kubectl logs $NAMESPACE $pod `
471
+ output=` kubectl logs $NAMESPACE $pod -c remote-preflight `
460
472
echo -e " $output "
461
473
GLOBAL_OUTPUT+="
462
474
--- RUNNING REMOTE TESTS$output "
You can’t perform that action at this time.
0 commit comments