diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-11-16 14:45:34 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-11-16 14:45:35 +0100 |
commit | b4b617a42b2c160b577272c1c16b330a6d45c921 (patch) | |
tree | 29dbbeb6dd487bd453bd64669459005cef8b9136 /src/orchestrator/orchestrator.rs | |
parent | ab3fa82d8d20444738e9a062a338fcbd26963f34 (diff) |
Add passing of additional env
This patch adds the code to pass the additional environment to the
container job.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/orchestrator/orchestrator.rs')
-rw-r--r-- | src/orchestrator/orchestrator.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs index e7b5ba6..c45b5b3 100644 --- a/src/orchestrator/orchestrator.rs +++ b/src/orchestrator/orchestrator.rs @@ -44,6 +44,7 @@ pub struct OrchestratorSetup { staging_store: Arc<RwLock<StagingStore>>, release_store: Arc<RwLock<ReleaseStore>>, source_cache: SourceCache, + additional_env: Vec<(String, String)>, jobsets: Vec<JobSet>, database: PgConnection, submit: Submit, @@ -53,7 +54,7 @@ pub struct OrchestratorSetup { impl OrchestratorSetup { pub async fn setup(self) -> Result<Orchestrator> { let db = Arc::new(self.database); - let scheduler = EndpointScheduler::setup(self.endpoint_config, self.staging_store.clone(), db.clone(), self.progress_generator.clone(), self.submit.clone(), self.log_dir).await?; + let scheduler = EndpointScheduler::setup(self.endpoint_config, self.staging_store.clone(), db.clone(), self.progress_generator.clone(), self.submit.clone(), self.log_dir, self.additional_env).await?; Ok(Orchestrator { progress_generator: self.progress_generator, |