Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Simplify ConfigDB entries (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGodbehere authored Feb 9, 2024
1 parent 214914d commit e128346
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/Domain/Nodes/Actions/CreateNodeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,12 @@ public function execute(
$group->name, $nodeName, $destinationNode),
]);

// Register the Sparkplug address the EA should use
$configDB->putConfig(App::SparkplugAddress, $uuid, [
"group_id" => $group->name,
"node_id" => $nodeName,
]);

// Split the $charts string (comma-delimited) into an array of UUIDs
$charts = explode(',', $charts);

// Create an entry in the Edge Agent Deployment app to trigger the deployment of the edge agent
$payload = [
"name" => sprintf("%s.%s", $group->name, $nodeName),
"name" => $nodeName,
"charts" => $charts,
"cluster" => $destinationCluster,
];
Expand Down

0 comments on commit e128346

Please sign in to comment.