Skip to content

Commit f4082e0

Browse files
author
Néstor Salceda
committed
Use capture-<pod>-<timestamp>.scap.gz for file name
1 parent 8f1eca3 commit f4082e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubectl-capture

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ EOF
6060

6161
function start_capture() {
6262
local now=$(date +%s)
63-
local capture_pod="capture-${now}-${pod}"
63+
local capture_pod="capture-${pod}-${now}"
6464

6565
node=$(kubectl -n ${namespace} get pod ${pod} -o jsonpath='{.spec.nodeName}' 2>/dev/null)
6666
if [[ $? -ne 0 ]];then

0 commit comments

Comments
 (0)