mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-06-05 22:53:39 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! Ensure that jobs run with the controller service account if no service account is specified.
This commit is contained in:
@@ -3,6 +3,8 @@ set -e
|
||||
|
||||
PODMAN_AUTH_FILE="/home/runner/.config/containers/auth.json"
|
||||
|
||||
# Sleep for a 1-5 seconds to avoid ddosing the registry with auth requests
|
||||
sleep $((1 + RANDOM % 5))
|
||||
# Initialize the auth file if it doesn't exist or is empty
|
||||
mkdir -p $(dirname $PODMAN_AUTH_FILE)
|
||||
if [ ! -s "$PODMAN_AUTH_FILE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user