Expose elevated runbook commands in swarm actions

This commit is contained in:
Meta Vens 2026-06-18 16:31:10 +01:00
commit f1f87d7b0e
5 changed files with 76 additions and 6 deletions

View file

@ -1652,7 +1652,11 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) {
if ($null -eq $audit -or $audit -eq "") {
$audit = "none"
}
"$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):artifactStatus=${artifactStatus}:audit=${audit}:artifact=$artifact"
$aftercare = $_.operatorAftercareCommand
if ($null -eq $aftercare -or $aftercare -eq "") {
$aftercare = "none"
}
"$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):artifactStatus=${artifactStatus}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact"
}) -join "; ")
}
$serviceExecutionFailedChecks = "none"
@ -1706,7 +1710,11 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) {
if ($null -eq $audit -or $audit -eq "") {
$audit = "none"
}
"$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):artifactStatus=${artifactStatus}:audit=${audit}:artifact=$artifact"
$aftercare = $_.operatorAftercareCommand
if ($null -eq $aftercare -or $aftercare -eq "") {
$aftercare = "none"
}
"$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):artifactStatus=${artifactStatus}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact"
}) -join "; ")
}
$serviceExecutionFailedChecks = "none"