Skip to content

Commit

Permalink
Updates site secrets from the project on environment create.
Browse files Browse the repository at this point in the history
  • Loading branch information
pingers committed Jun 20, 2024
1 parent c381c8e commit 6ed6ca4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ public function created(NodeInterface $node) {
}
$environment_type = $this->environmentService->getEnvironmentType($node);

// If there is a secret on the shepherd project, update it from project.
if ($secretName = $project->field_shp_secrets->value) {
// But still need to ensure it actually exists.
if ($secret = $this->orchestrationProviderPlugin->getSecret(0, $secretName)) {
$this->orchestrationProviderPlugin->updateSecret($site->id(), $secretName, $secret);
}
}

$probes = $this->buildProbes($project);
$cron_jobs = $this->buildCronJobs($node);

Expand Down

0 comments on commit 6ed6ca4

Please sign in to comment.