-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: main
Are you sure you want to change the base?
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
New changes are detected. LGTM label has been removed. |
run update schema add units remove useless val tests
e943d8a
to
100ade5
Compare
@elijah-rou: The following tests failed, say
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 understand the commands that are listed here. |
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. |
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.