MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / sync_dynamic_config

Method sync_dynamic_config

vmm/src/app.rs:996–1005  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

994 }
995
996 pub(crate) fn sync_dynamic_config(&self, id: &str) -> Result<()> {
997 let work_dir = self.work_dir(id);
998 let shared_dir = self.shared_dir(id);
999 let manifest = work_dir.manifest().context("Failed to read manifest")?;
1000 let cfg = &self.config;
1001 let sys_config_str = make_sys_config(cfg, &manifest)?;
1002 fs::write(shared_dir.join(SYS_CONFIG), sys_config_str)
1003 .context("Failed to write vm config")?;
1004 Ok(())
1005 }
1006
1007 pub(crate) fn kms_client(&self) -> Result<KmsClient<RaClient>> {
1008 if self.config.kms_url.is_empty() {

Callers 1

start_vmMethod · 0.80

Calls 4

make_sys_configFunction · 0.85
work_dirMethod · 0.80
manifestMethod · 0.80
shared_dirMethod · 0.45

Tested by

no test coverage detected