Add managed registry provisioning, pruning, and readiness tracking
This commit is contained in:
@@ -122,6 +122,7 @@ class OperationController extends Controller
|
||||
'status' => OperationStatus::CANCELLED,
|
||||
'finished_at' => now(),
|
||||
]);
|
||||
$this->clearOperationSecrets($operation);
|
||||
|
||||
return redirect()
|
||||
->route('operations.show', [
|
||||
@@ -168,4 +169,13 @@ class OperationController extends Controller
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
|
||||
private function clearOperationSecrets(Operation $operation): void
|
||||
{
|
||||
$operation->steps()->update(['secrets' => null]);
|
||||
|
||||
$operation->children()->get()->each(function (Operation $child): void {
|
||||
$this->clearOperationSecrets($child);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user