Skip to content

Commit 8f62dac

Browse files
committed
Remove usage of BrancherDataValidator
Validation of brancher labels is now done on the server side, so this doesn't make sense anymore.
1 parent 1318d4c commit 8f62dac

File tree

3 files changed

+0
-75
lines changed

3 files changed

+0
-75
lines changed

src/Brancher/BrancherDataValidator.php

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/DeployRunner.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Deployer\Exception\Exception;
77
use Deployer\Exception\GracefulShutdownException;
88
use Deployer\Host\Host;
9-
use Hypernode\Deploy\Brancher\BrancherDataValidator;
109
use Hypernode\Deploy\Console\Output\OutputWatcher;
1110
use Hypernode\Deploy\Deployer\RecipeLoader;
1211
use Hypernode\Deploy\Deployer\Task\ConfigurableTaskInterface;
@@ -271,7 +270,6 @@ private function maybeConfigureBrancherServer(Server $server): void
271270

272271
$data = $serverOptions[Server::OPTION_HN_BRANCHER_SETTINGS] ?? [];
273272
$data['labels'] = $serverOptions[Server::OPTION_HN_BRANCHER_LABELS] ?? [];
274-
BrancherDataValidator::validate($data);
275273
$brancherApp = $this->brancherHypernodeManager->createForHypernode($parentApp, $data);
276274

277275
$this->log->info(sprintf('Successfully requested brancher Hypernode, name is %s.', $brancherApp));

tests/Brancher/BrancherDataValidatorTest.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)