-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Enable Mount Propagation as a Optional Feature #15758
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
Enable Mount Propagation as a Optional Feature #15758
Conversation
Welcome @elijah-rou! It looks like this is your first PR to knative/serving 🎉 |
Hi @elijah-rou. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
/lgtm thanks for the change! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, elijah-rou The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
please take a look at the unit test failure |
In |
As in #15669 pls add the right validation for this new flag. Also pls you will need to create some docs in knative/docs repo. |
/hold |
Will fix everything today :) docs PR will probably only come tomorrow |
Mostly done. Just one comment with this. What validation needs to be done? I don't believe there are specific restrictions using mountPropagation beyond specifying an appropriate mode (None, HostToContainer, Bidirectional), validation which should be taken care of by K8s |
0e846e1
to
e943d8a
Compare
e943d8a
to
100ade5
Compare
Fail when user uses the feature but the flag is disabled, for example for the hostPath we have:
There is more to it in the link. |
There are actually see here, especially if we want to fail fast:
|
Sorry, didn't realise about the privileged field. Will do it.
Sure I'll get this done as well. |
run update schema add units remove useless val tests fix validation
06c411c
to
e2b64ea
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15758 +/- ##
==========================================
- Coverage 80.94% 80.91% -0.03%
==========================================
Files 210 210
Lines 16721 16739 +18
==========================================
+ Hits 13535 13545 +10
- Misses 2837 2842 +5
- Partials 349 352 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
closing and re-opening so we pick up changes in our linter config |
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.
looks good just a minor lint issue about an unused variable
update checksum fix unit tests; remove Bidirectional as a valid MountPropagation fieldmask test uses hostToContainer fix unused param
e2b64ea
to
a25fa18
Compare
There's a compile error |
/override "codecov" it's fixed in |
@dprotaso: /override requires failed status contexts, check run or a prowjob name to operate on.
Only the following failed contexts/checkruns were expected:
If you are trying to override a checkrun that has a space in it, you must put a double quote on the context. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/override "codecov/project" |
@dprotaso: Overrode contexts on behalf of dprotaso: codecov/project In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
I tweak the flag name to |
/hold cancel |
Proposal: Feature-Gated Mount Propagation
At my org we use the JuiceFS filesystem internally, accessed through PVCs. In order to recover the mount point in case of a network drop, it is required that the pod set
mountPropagation
toHostToContainer
orBidirectional
for the volumeMount to facilitate this functionality. Currently, Knative does not allowmountPropagation
to be used. Since it's a feature that should have care when using, this proposal is to to add the ability to use Mount Propagation gated under an optional feature the user will have to enable explicitly. I have implemented this internally already, but think this could be useful to the broader community.