Skip to content

Commit 0a0e33e

Browse files
Merge pull request #31 from GitGuardian/ggr/pf-mktmp
fix(preflights): use 6 char mktemp for busybox
2 parents 85a1cec + 3a62551 commit 0a0e33e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helm-preflights/preflights.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ then
423423
echo -e "If this step is too long, please check the pod is running in the accurate namespace"
424424
echo -e "Please wait ..."
425425
#Start job
426-
run_hide_output "kubectl create job $NAMESPACE --from=cronjob/$REMOTE_CRONJOB_NAME $REMOTE_CRONJOB_NAME-`mktemp -u XXXXX | tr '[:upper:]' '[:lower:]'` --dry-run=client -o json | jq 'del(.metadata.ownerReferences)' | kubectl apply -f -" "all"
426+
run_hide_output "kubectl create job $NAMESPACE --from=cronjob/$REMOTE_CRONJOB_NAME $REMOTE_CRONJOB_NAME-`mktemp -u XXXXXX | tr '[:upper:]' '[:lower:]'` --dry-run=client -o json | jq 'del(.metadata.ownerReferences)' | kubectl apply -f -" "all"
427427
sleep 5
428428
pod=$(kubectl get pods $NAMESPACE -l gitguardian=remote-preflight --sort-by=.metadata.creationTimestamp -o 'jsonpath={.items[-1].metadata.name}')
429429

0 commit comments

Comments
 (0)