From c741d04d5436c5b87518a0bf1e16b8b6c7f81d02 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 11 Jul 2024 22:07:54 -0500 Subject: [PATCH] xactfetch: Skip wait for manual runs When the `xactfetch` CronJob is triggered manually, it will now skip the `sleep` step. Presumably, whoever triggered it wants the script to run _right now_, probably to diagnose a problem. --- xactfetch/xactfetch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xactfetch/xactfetch.yaml b/xactfetch/xactfetch.yaml index 930c305..5085196 100644 --- a/xactfetch/xactfetch.yaml +++ b/xactfetch/xactfetch.yaml @@ -28,7 +28,7 @@ spec: command: - sh - -c - - sleep $((RANDOM % 3600)) + - case ${HOSTNAME} in *-manual-*);; *)sleep $((RANDOM % 3600));; esac securityContext: readOnlyRootFilesystem: true runAsGroup: 999