-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow configuration of Rootlesskit's CopyUpDirs through an environment variable #10386
Conversation
FYI: to fix that DCO error, I've followed the advice of the DCO-page and rebased the commits, with proper sign-off statements. |
@ludost Are you still working on this PR? Or did you arrive at another solution? |
Yes, I'm wrapping up this PR for merging. Just have to figure out how to do that, it's my first "modern" contribution to such projects, getting my head wrapped around the tools... |
…advice Signed-off-by: Ludo Stellingwerff <[email protected]>
Oh, man, did I mess this up:) A lot of history for a nearly one-liner. Anyway, it should be alright now. Sorry for the inconvenience. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10386 +/- ##
==========================================
- Coverage 49.74% 43.97% -5.78%
==========================================
Files 178 178
Lines 14801 14803 +2
==========================================
- Hits 7363 6509 -854
- Misses 6085 7090 +1005
+ Partials 1353 1204 -149
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]>
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]>
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]>
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]>
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]> Signed-off-by: Derek Nola <[email protected]>
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]> Signed-off-by: Derek Nola <[email protected]>
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]> Signed-off-by: Derek Nola <[email protected]>
…env variable (k3s-io#10386) Signed-off-by: Ludo Stellingwerff <[email protected]> Signed-off-by: Derek Nola <[email protected]>
Proposed Changes
In our use-case we are running an K3S Agent in a Rootless environment at the end-user's own workstation. This works well (enough), but we also want to provide access to the local folders (through e.g. HostPath volume mounts). But the Agent runs inside the rootless namespace, disallowing read/write access to the actual file-system.
This PR allows the Agent to setup extra "CopyUpDirs" entries, through an environment variable called "K3S_ROOTLESS_COPYUPDIRS". This environment variable can receive a comma-separated list absolute paths, which will be added to the existing list.
Types of Changes
This change is non-breaking, fully backwards compatible. It only adds a new feature and a new environment variable. The setup will not start (with a fatal error) if any of the added folders doesn't exist in the host system. Which is the normal behavior of the pre-existing code.
Verification
Testing
No, I currently have no unit test for this change.
Linked Issues
See #10385 for a further description.
User-Facing Change
Further Comments