sodew-bash

This commit is contained in:
2026-08-18 09:40:08 +02:00
parent 0e8edcd5c0
commit af7110ad3a
118 changed files with 20434 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Restart worker deployment and wait until ready.
function workerRestart() {
k3sRun rollout restart deployment/"$workerKube" || return 1
k3sRun rollout status deployment/"$workerKube" --timeout=180s
}
# Pause the worker agent via control file.
function workerAgentStop() {
printf '%s\n%s\n%s\n' "action=pause" "status=$taskStatusExecution" "start=$(date +%s)" > "$workerTasksPath/pause.task" || {
appError "Failed to write pause task: $workerTasksPath/pause.task"
return 1
}
}
# Remove pause flag for the worker agent.
function workerAgentStart() {
rm -f "$workerTasksPath/pause.task"
}