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

Add documentation for mount option #2743

Merged
merged 2 commits into from Mar 20, 2017

Conversation

gnufied
Copy link
Member

@gnufied gnufied commented Mar 9, 2017

Adds documentation for mount options introduce in kubernetes/enhancements#168


This change is Reviewable

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 9, 2017
@jsafrane
Copy link
Member

jsafrane commented Mar 9, 2017

lgtm from tech side.

@@ -222,6 +222,51 @@ A volume will be in one of the following phases:

The CLI will show the name of the PVC bound to the PV.

### Mount Options

Kubernetes administrator can specify additional mount option to be used when a Persistent Volume is
Copy link
Contributor

Choose a reason for hiding this comment

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

Who is "Kubernetes administrator" in this case? The reader?

If the reader, address as "you." As in, "You can specify an additional mount option for the system to use when a Persistent Volume is mounted on a node."

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking in some cases, the reader may not have access to create/view/edit the Persistent Volume.

So it could be a cluster admin or something like that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. In any case it still has grammar issues. Suggested edit:

"A Kubernetes administrator can specify additional mount options for when a Persistent Volume is being mounted on a node."

Kubernetes administrator can specify additional mount option to be used when a Persistent Volume is
being mounted on a node.

Mount option can be specified via an annotation on PV - `volume.beta.kubernetes.io/mount-options`.
Copy link
Contributor

Choose a reason for hiding this comment

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

"You can specify a mount option by using an the volume.beta.kubernetes.io/mount-options annotiation on your Persistent Volume."

pdName: "gce-disk-1
```

A mount option can be a string which will be cumulatively joined and used while mounting volume to the disk.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be a string? Or must be a string? What all can it be?

"A mount option is a string which is cumulatively joined and used while mounting the volume to the disk."


A mount option can be a string which will be cumulatively joined and used while mounting volume to the disk.

Having said that, not all Persistent volume types support mount options. As of this writing - volume types that
Copy link
Contributor

Choose a reason for hiding this comment

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

"Note that not all Persistent Volume types support mount options. In Kubernetes version 1.6, the following volume types support mount options:"

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@gnufied
Copy link
Member Author

gnufied commented Mar 16, 2017

@devin-donnelly fixed most of the review comments. ptal

Kubernetes administrator can specify additional mount option to be used when a Persistent Volume is
being mounted on a node.

You can specify a mount option by using annotation - `volume.beta.kubernetes.io/mount-options` on
Copy link
Contributor

Choose a reason for hiding this comment

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

"by using the annotation" (and remove the "-") character

@devin-donnelly
Copy link
Contributor

@gnufied I've approved your changes. There are still two open comments I'd like you to fix, and then I'll merge.

@gnufied
Copy link
Member Author

gnufied commented Mar 20, 2017

@devin-donnelly fixed the review comments.

@devin-donnelly
Copy link
Contributor

Great, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants