Skip to content

Commit 5bee032

Browse files
authored
Merge pull request #29 from amazeeio/feature-unleash-env-vars
Adds unleashed variables
2 parents a9e7fe5 + cae8de1 commit 5bee032

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Traits/Create/PostCreateAppInstanceTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ public function postCreateAppInstance(PolydockAppInstanceInterface $appInstance)
168168
$this->postCreateLagoonOps?->addOrUpdateLagoonProjectVariable($appInstance, 'PHOENIX_COLLECTOR_ENDPOINT', $appInstance->getKeyValue('amazee-ai-phoenix-collector-endpoint'), 'GLOBAL');
169169
$this->postCreateLagoonOps?->addOrUpdateLagoonProjectVariable($appInstance, 'PHOENIX_PROJECT_NAME', $projectName, 'GLOBAL');
170170

171+
// Unleash Values
172+
$this->postCreateLagoonOps?->addOrUpdateLagoonProjectVariable($appInstance, 'UNLEASH_API_TOKEN', $appInstance->getKeyValue('amazee-ai-unleash-api-token'), 'GLOBAL');
173+
$this->postCreateLagoonOps?->addOrUpdateLagoonProjectVariable($appInstance, 'UNLEASH_URL', $appInstance->getKeyValue('amazee-ai-unleash-url'), 'GLOBAL');
174+
171175
// Now let's create the routes
172176
$projectName = $appInstance->getKeyValue('lagoon-project-name');
173177
$deployTargetId = (int) $appInstance->getKeyValue('lagoon-deploy-region-id');

0 commit comments

Comments
 (0)