Skip to content

Commit

Permalink
Merge pull request #217 from universityofadelaide/feature/update-env-…
Browse files Browse the repository at this point in the history
…secret

[WIP] Feature/update env secret
  • Loading branch information
audave authored Nov 7, 2024
2 parents c381c8e + 6ed6ca4 commit fcc6884
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 fcc6884

Please sign in to comment.