Skip to content

Add ActorDirs message to carry per-actor directories - #1730

Open
Haven Xia (HavenXia) wants to merge 1 commit into
agent-substrate:mainfrom
HavenXia:ateom-actor-dirs
Open

Haven Xia (HavenXia) wants to merge 1 commit into
agent-substrate:mainfrom
HavenXia:ateom-actor-dirs

Conversation

@HavenXia

Copy link
Copy Markdown
Collaborator

Today atelet and ateom derive the per-actor directories (oci bundles, runsc state, pid files, checkpoint and restore state, durable-dir, system-info and volume roots) from the actor UID through the same package, internal/ateompath.

Add an ActorDirs message to RunWorkloadRequest, RestoreWorkloadRequest, CheckpointWorkloadRequest and TerminateWorkloadRequest, and have atelet fill it with the directories it prepared.

This is the first part of #1604 to decouple atelet and ateom shared pathes.

atelet and both ateoms derive the per-actor directories (bundles, runsc
state, pid files, checkpoint and restore state, durable-dir, system-info
and CSI volume roots) from the actor UID through the same package,
internal/ateompath. 

Add an ActorDirs message to RunWorkloadRequest, RestoreWorkloadRequest,
CheckpointWorkloadRequest and TerminateWorkloadRequest, and have atelet
fill it with the directories it prepared.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so for dirs that atelet feeds to ateom, let's split those off to a package internal to atelet so we know ateoms are not assuming it? (and vice versa, atelet should stop using ateompath)

there should probably be a third package for the socket paths they share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api User-facing API changes area/api-machinery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants