Skip to content

Commit c189643

Browse files
authored
Merge pull request #398 from Dstack-TEE/vmm-update-urls
vmm-rpc: Add support for update kms/gw urls
2 parents 6cb0c02 + 30915ef commit c189643

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

vmm/rpc/proto/vmm_rpc.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ message UpdateVmRequest {
131131
bool update_ports = 5;
132132
// Port mapping
133133
repeated PortMapping ports = 7;
134+
// Optional update KMS URLs.
135+
bool update_kms_urls = 8;
136+
repeated string kms_urls = 9;
137+
// Optional update gateway URLs.
138+
bool update_gateway_urls = 10;
139+
repeated string gateway_urls = 11;
134140
// gpus
135141
GpuConfig gpus = 13;
136142
// Optional compute resource updates. Leave unset to keep current configuration.

vmm/src/main_service.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@ impl VmmRpc for RpcHandler {
398398
})
399399
.collect::<Result<Vec<_>>>()?;
400400
}
401+
if request.update_kms_urls {
402+
manifest.kms_urls = request.kms_urls.clone();
403+
}
404+
if request.update_gateway_urls {
405+
manifest.gateway_urls = request.gateway_urls.clone();
406+
}
401407
vm_work_dir
402408
.put_manifest(&manifest)
403409
.context("Failed to put manifest")?;

0 commit comments

Comments
 (0)