-
Notifications
You must be signed in to change notification settings - Fork 159
feat: file sync #1416
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: file sync #1416
Conversation
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: Alex Xi <68758451+AlexXi19@users.noreply.github.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: Alex Xi <68758451+AlexXi19@users.noreply.github.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Thanks for your contribution! 🎉 👍 Is this ready to review? |
@gaocegege it's ready |
Things to be discussed:
|
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: Alex Xi <68758451+AlexXi19@users.noreply.github.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
addressed comments cc @kemingy |
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add syncthing option at the envd-server side
- https://github.com/tensorchord/envd-server/blob/main/api/types/environment.go#L37 Add a new option here
- Pass the option from client at
Line 281 in aab7f53
req := servertypes.EnvironmentCreateRequest{ - Add syncthing option in EnvdServerSource
Line 57 in 56d25a0
type EnvdServerSource struct{} - Pass syncthing flag through
Line 137 in d8e16a1
opt.EnvdServerSource = &envd.EnvdServerSource{}
And also modify the server part, to ensure the git clone logic is not affected is syncthing option is not specified
And also please resolve the conflicts. Thanks! |
/cc @kemingy |
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
@VoVAllen waiting on |
I will create a new release today. |
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
@VoVAllen updated dependencies, now its all passing :) |
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will resolve conflicts later today. |
File sync
Syncs the user's local project directory to a pod in the kubernetes cluster started by
envd run
withenvd-server
.Steps
Waiting for config to apply
Applying configurations through the syncthing rest api is async so we use the event api and wait until we see a config apply success event
What's not included and known limitations
getFreePorts
. This change should be pretty easySyncthing process management
ctrl-c
andctrl-d
What's next
envd attach
for starting up the sync and port forwarding againTesting
Would like some opinion on what's are the final tests to keep in the repo.