Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(agent/agentcontainers): implement sub agent injection#18245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mafredri wants to merge5 commits intomain
base:main
Choose a base branch
Loading
frommafredri/feat-agent-devcontainer-injection-4
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletionsagent/agent.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1188,7 +1188,7 @@ func (a *agent) handleManifest(manifestOK *checkpoint) func(ctx context.Context,
// createOrUpdateNetwork waits for the manifest to be set using manifestOK, then creates or updates
// the tailnet using the information in the manifest
func (a*agent)createOrUpdateNetwork(manifestOK,networkOK*checkpoint)func(context.Context, proto.DRPCAgentClient26)error {
returnfunc(ctx context.Context,_ proto.DRPCAgentClient26) (retErrerror) {
returnfunc(ctx context.Context,aAPI proto.DRPCAgentClient26) (retErrerror) {
iferr:=manifestOK.wait(ctx);err!=nil {
returnxerrors.Errorf("no manifest: %w",err)
}
Expand All@@ -1208,6 +1208,7 @@ func (a *agent) createOrUpdateNetwork(manifestOK, networkOK *checkpoint) func(co
// agent API.
network,err=a.createTailnet(
a.gracefulCtx,
aAPI,
manifest.AgentID,
manifest.DERPMap,
manifest.DERPForceWebSockets,
Expand DownExpand Up@@ -1355,6 +1356,7 @@ func (a *agent) trackGoroutine(fn func()) error {

func (a*agent)createTailnet(
ctx context.Context,
aAPI proto.DRPCAgentClient26,
agentID uuid.UUID,
derpMap*tailcfg.DERPMap,
derpForceWebSockets,disableDirectConnectionsbool,
Expand DownExpand Up@@ -1487,7 +1489,7 @@ func (a *agent) createTailnet(
}()
iferr=a.trackGoroutine(func() {
deferapiListener.Close()
apiHandler,closeAPIHAndler:=a.apiHandler()
apiHandler,closeAPIHAndler:=a.apiHandler(aAPI)
deferfunc() {
_=closeAPIHAndler()
}()
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp