Skip to content

Commit 56e899b

Browse files
committed
feat(envoy-client): fully flesh out tunnel impl
1 parent 516d91e commit 56e899b

69 files changed

Lines changed: 2878 additions & 1294 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pkg-pr-new.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
find /tmp/inspector-repack -name '*.map' -delete
2525
tar czf inspector.tar.gz -C /tmp/inspector-repack .
2626
rm -rf /tmp/inspector-repack
27-
- run: pnpm dlx pkg-pr-new publish 'shared/typescript/*' 'engine/sdks/typescript/runner/' 'engine/sdks/typescript/runner-protocol/' 'rivetkit-typescript/packages/*' --packageManager pnpm --template './examples/*'
27+
- run: pnpm dlx pkg-pr-new publish 'shared/typescript/*' 'engine/sdks/typescript/runner/' 'engine/sdks/typescript/runner-protocol/' 'engine/sdks/typescript/envoy-client/' 'engine/sdks/typescript/envoy-protocol/' 'rivetkit-typescript/packages/*' --packageManager pnpm --template './examples/*'

engine/artifacts/errors/actor.no_runner_config_configured.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

engine/artifacts/errors/actor.no_runners_available.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

engine/artifacts/openapi.json

Lines changed: 145 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

engine/packages/api-peer/src/actors/create.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -38,39 +38,3 @@ pub async fn create(
3838

3939
Ok(CreateResponse { actor: res.actor })
4040
}
41-
42-
#[tracing::instrument(skip_all)]
43-
pub async fn create2(
44-
ctx: ApiCtx,
45-
_path: (),
46-
query: CreateQuery,
47-
body: CreateRequest,
48-
) -> Result<CreateResponse> {
49-
let namespace = ctx
50-
.op(namespace::ops::resolve_for_name_global::Input {
51-
name: query.namespace.clone(),
52-
})
53-
.await?
54-
.ok_or_else(|| namespace::errors::Namespace::NotFound.build())?;
55-
56-
let actor_id = Id::new_v1(ctx.config().dc_label());
57-
58-
let res = ctx
59-
.op(pegboard::ops::actor::create::Input2 {
60-
actor_id,
61-
namespace_id: namespace.namespace_id,
62-
name: body.name.clone(),
63-
key: body.key,
64-
pool_name: body.runner_name_selector,
65-
input: body.input.clone(),
66-
crash_policy: body.crash_policy,
67-
// NOTE: This can forward if the user attempts to create an actor with a target dc and this dc
68-
// ends up forwarding to another.
69-
forward_request: true,
70-
// api-peer is always creating in its own datacenter
71-
datacenter_name: None,
72-
})
73-
.await?;
74-
75-
Ok(CreateResponse { actor: res.actor })
76-
}

0 commit comments

Comments
 (0)