Skip to content

Commit 797c5d2

Browse files
committed
Rename run_as_tapp to run_in_dstack
1 parent 0785d64 commit 797c5d2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

gateway/gateway.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ state_path = "./gateway-state.json"
1212
# auto set soft ulimit to hard ulimit
1313
set_ulimit = true
1414
rpc_domain = ""
15-
run_as_tapp = true
15+
run_in_dstack = true
1616

1717
[core.admin]
1818
enabled = false

gateway/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pub struct Config {
172172
pub rpc_domain: String,
173173
pub kms_url: String,
174174
pub admin: AdminConfig,
175-
pub run_as_tapp: bool,
175+
pub run_in_dstack: bool,
176176
pub sync: SyncConfig,
177177
}
178178

gateway/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async fn maybe_gen_certs(config: &Config, tls_config: &TlsConfig) -> Result<()>
6363
return Ok(());
6464
}
6565

66-
if config.run_as_tapp {
66+
if config.run_in_dstack {
6767
info!("Using dstack guest agent for certificate generation");
6868
let agent_client = dstack_agent().context("Failed to create dstack client")?;
6969
let response = agent_client
@@ -146,7 +146,7 @@ async fn main() -> Result<()> {
146146
set_max_ulimit()?;
147147
}
148148

149-
let my_app_id = if config.run_as_tapp {
149+
let my_app_id = if config.run_in_dstack {
150150
let dstack_client = dstack_agent().context("Failed to create dstack client")?;
151151
let info = dstack_client
152152
.info()

gateway/src/main_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ pub struct RpcHandler {
586586

587587
impl RpcHandler {
588588
fn ensure_from_gateway(&self) -> Result<()> {
589-
if !self.state.config.run_as_tapp {
589+
if !self.state.config.run_in_dstack {
590590
return Ok(());
591591
}
592592
if self.remote_app_id.is_none() {

gateway/src/main_service/sync_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub(crate) async fn sync_task(
8888
config: Arc<Config>,
8989
mut event_rx: Receiver<SyncEvent>,
9090
) -> Result<()> {
91-
let sync_client = if config.run_as_tapp {
91+
let sync_client = if config.run_in_dstack {
9292
let agent = dstack_agent().context("Failed to create dstack agent client")?;
9393
let keys = agent
9494
.get_tls_key(GetTlsKeyArgs {

gateway/tapp/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ mandatory = false
8383
state_path = "$DATA_DIR/gateway-state.json"
8484
set_ulimit = true
8585
rpc_domain = "gateway.$SRV_DOMAIN"
86-
run_as_tapp = true
86+
run_in_dstack = true
8787
8888
[core.sync]
8989
enabled = true

0 commit comments

Comments
 (0)