Skip to content
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

Fix kubernetes not resetting sources #1580

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

bkneis
Copy link
Contributor

@bkneis bkneis commented Jan 20, 2025

Fixes - #1072

This issue was that the devpod agent container setup command that streams the mounts to the PVC only did so if the mount's target was empty. This indicates an initial set up where we need to copy the local files over. In order to not override changes to the files in the devpod, we only did this when the mount was empty in the workspace (initial setup).

But in the event of a reset, we want the sources to be overridden with the local changes, this flow is common for instance to update to .devcontainer.json. Therefore the fix was to check if the reset option was used and if so, stream the mounts, even if not empty, overriding the workspace contents with the local (source).

Copy link
Member

@pascalbreuninger pascalbreuninger left a comment

Choose a reason for hiding this comment

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

LGTM

@pascalbreuninger pascalbreuninger merged commit 34a3a7e into loft-sh:main Jan 20, 2025
17 of 23 checks passed
@bkneis bkneis deleted the feature/fix-k8s-reset branch January 20, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants