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

Readonly option for hostprocess mounts #1462

Merged
merged 1 commit into from
Aug 27, 2022
Merged

Conversation

dcantah
Copy link
Contributor

@dcantah dcantah commented Jul 20, 2022

Add in ability to parse read only mount options for hostprocess mounts.
Change the API of ApplyFileBinding to take in a readOnly bool instead of
it signifying a merged binding. We don't have any use for merged bindings
as the default for containers is to shadow the directory we're binding
to. We could alternatively pass in a set of options/flags as this argument,
but readonly seems to be the only thing needed as of now.

@dcantah dcantah requested a review from a team as a code owner July 20, 2022 05:11
Copy link
Contributor

@helsaawy helsaawy left a comment

Choose a reason for hiding this comment

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

It feels weird to change the meaning of a parameter, but it looks like its only used a handful of times....

@dcantah
Copy link
Contributor Author

dcantah commented Jul 20, 2022

It feels weird to change the meaning of a parameter, but it looks like its only used a handful of times....

The wonders of /internal APIs lol If we ever plop this package in go-winio maybe we just have the third param just take in a uint32 and you can specify the flags. Right now only readonly makes sense for us at least.

Add in ability to parse read only mount options for hostprocess mounts.
Change the API of ApplyFileBinding to take in a readOnly bool instead of
it signifying a merged binding. We don't have any use for merged bindings
as the default for containers is to shadow the directory we're binding
to. We could alternatively pass in a set of options/flags as this argument,
but readonly seems to be the only thing needed as of now.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
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.

3 participants