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

Updated formatting in "Persistent Volumes" & "Storage Classes" #19575

Merged
merged 6 commits into from
Mar 26, 2020

Conversation

sujaypillai
Copy link
Contributor

  • Removed backticks from all occurrences of PersistentVolume, PersistentVolumeClaim and StorageClass.
  • Also update the page Storage Class with the same concept.

Fixes #19542

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 9, 2020
@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. labels Mar 9, 2020
@netlify
Copy link

netlify bot commented Mar 9, 2020

Deploy preview for kubernetes-io-master-staging ready!

Built with commit a7172e2

https://deploy-preview-19575--kubernetes-io-master-staging.netlify.com

@sujaypillai
Copy link
Contributor Author

/assign @sftim

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

@sujaypillai that's good (and comprehensive) work.
Here's some feedback. Most of it is inline.

Also one specific thing:

  • check the section “A Note on Namespaces” - did you miss a couple of changes?

ways than just size and access modes, without exposing users to the details of
how those volumes are implemented. For these needs, there is the `StorageClass`
resource.
While `PersistentVolumeClaims` allow a user to consume abstract storage resources, it is common that users need `PersistentVolumes` with varying properties, such as performance, for different problems. Cluster administrators need to be able to offer a variety of `PersistentVolumes` that differ in more ways than just size and access modes, without exposing users to the details of how those volumes are implemented. For these needs, there is the StorageClass resource.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
While `PersistentVolumeClaims` allow a user to consume abstract storage resources, it is common that users need `PersistentVolumes` with varying properties, such as performance, for different problems. Cluster administrators need to be able to offer a variety of `PersistentVolumes` that differ in more ways than just size and access modes, without exposing users to the details of how those volumes are implemented. For these needs, there is the StorageClass resource.
While PersistentVolumeClaims allow a user to consume abstract storage resources, it is common that users need PersistentVolumes with varying properties, such as performance, for different problems. Cluster administrators need to be able to offer a variety of PersistentVolumes that differ in more ways than just size and access modes, without exposing users to the details of how those volumes are implemented. For these needs, there is the _StorageClass_ resource.

@@ -55,7 +49,7 @@ A cluster administrator creates a number of PVs. They carry the details of the r

#### Dynamic

When none of the static PVs the administrator created match a user's `PersistentVolumeClaim`,
When none of the static PVs the administrator created match a user's PersistentVolumeClaim,
the cluster may try to dynamically provision a volume specially for the PVC.
This provisioning is based on `StorageClasses`: the PVC must request a
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This provisioning is based on `StorageClasses`: the PVC must request a
This provisioning is based on StorageClasses: the PVC must request a

@@ -80,10 +74,10 @@ Claims will remain unbound indefinitely if a matching volume does not exist. Cla

Pods use claims as volumes. The cluster inspects the claim to find the bound volume and mounts that volume for a Pod. For volumes that support multiple access modes, the user specifies which mode is desired when using their claim as a volume in a Pod.

Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a `persistentVolumeClaim` in their Pod's volumes block. [See below for syntax details](#claims-as-volumes).
Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a persistentVolumeClaim in their Pod's volumes block. [See below for syntax details](#claims-as-volumes).
Copy link
Contributor

Choose a reason for hiding this comment

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

This would actually work better as:

Suggested change
Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a persistentVolumeClaim in their Pod's volumes block. [See below for syntax details](#claims-as-volumes).
Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a `persistentVolumeClaim` section in a Pod's `volumes` block. See [Claims As Volumes](#claims-as-volumes) for more details on this.

@@ -228,7 +222,7 @@ Support for expanding CSI volumes is enabled by default but it also requires a s
You can only resize volumes containing a file system if the file system is XFS, Ext3, or Ext4.

When a volume contains a file system, the file system is only resized when a new Pod is using
the `PersistentVolumeClaim` in ReadWrite mode. File system expansion is either done when a Pod is starting up
the PersistentVolumeClaim in ReadWrite mode. File system expansion is either done when a Pod is starting up
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
the PersistentVolumeClaim in ReadWrite mode. File system expansion is either done when a Pod is starting up
the PersistentVolumeClaim in `ReadWrite` mode. File system expansion is either done when a Pod is starting up

@@ -578,7 +572,7 @@ Only FC and iSCSI volumes supported raw block volumes in Kubernetes 1.9.
Support for the additional plugins was added in 1.10.
{{< /note >}}

### Persistent Volumes using a Raw Block Volume
### PersistentVolume using a Raw Block Volume
Copy link
Contributor

Choose a reason for hiding this comment

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

To keep incoming links working, do this:

Suggested change
### PersistentVolume using a Raw Block Volume
### PersistentVolume using a Raw Block Volume {#persistent-volume-using-a-raw-block-volume}

@@ -219,7 +219,7 @@ allowedTopologies:

## Parameters

Storage classes have parameters that describe volumes belonging to the storage
Storage Classes have parameters that describe volumes belonging to the storage
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Storage Classes have parameters that describe volumes belonging to the storage
StorageClasses have parameters that describe volumes belonging to the storage

@@ -367,7 +367,7 @@ parameters:
`"8452344e2becec931ece4e33c4674e4e,42982310de6c63381718ccfa6d8cf397"`. This
is an optional parameter.
* `gidMin`, `gidMax` : The minimum and maximum value of GID range for the
storage class. A unique value (GID) in this range ( gidMin-gidMax ) will be
StorageClass. A unique value (GID) in this range ( gidMin-gidMax ) will be
Copy link
Contributor

Choose a reason for hiding this comment

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

Fine; the original is also OK.

@@ -580,7 +580,7 @@ parameters:

### Azure Disk

#### Azure Unmanaged Disk Storage Class
#### Azure Unmanaged Disk StorageClass
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd write:

Suggested change
#### Azure Unmanaged Disk StorageClass
#### Azure Unmanaged Disk storage class

content/en/docs/concepts/storage/storage-classes.md Outdated Show resolved Hide resolved
content/en/docs/concepts/storage/storage-classes.md Outdated Show resolved Hide resolved
Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

@sujaypillai, could you also look at line 19 of content/en/docs/concepts/storage/persistent-volumes.md?

@sftim
Copy link
Contributor

sftim commented Mar 11, 2020

I think with maybe one more tweak this will be done.

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

Two small nits and one regression I think is definitely worth fixing (missing “See ” from a link)

content/en/docs/concepts/storage/persistent-volumes.md Outdated Show resolved Hide resolved
content/en/docs/concepts/storage/storage-classes.md Outdated Show resolved Hide resolved
content/en/docs/concepts/storage/persistent-volumes.md Outdated Show resolved Hide resolved
@@ -300,7 +294,7 @@ spec:
storage: 5Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
- `Once
Copy link
Member

@jimangel jimangel Mar 16, 2020

Choose a reason for hiding this comment

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

Is this correct? The backticks here appear unnecessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

and there is no access mode called ReadWriteOnce.


The access modes are:

* ReadWriteOnce -- the volume can be mounted as read-write by a single node
* `Once -- the volume can be mounted as read-write by a single node
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like these are nits introduced by a global replace operation. Please change it back.

@jimangel
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 16, 2020
@sftim
Copy link
Contributor

sftim commented Mar 26, 2020

/approve

noting that Prow will squash these commits

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sftim

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 26, 2020
@k8s-ci-robot k8s-ci-robot merged commit 7ebfafd into kubernetes:master Mar 26, 2020
fancc pushed a commit to fancc/website that referenced this pull request Apr 26, 2020
…netes#19575)

* Updated formatting in "Persistent Volumes" & "Storage Classes"

* Ammended the suggestions

* Amended changes after PR review

* Ammended the suggestions

* Ammended the suggestions

* Amended changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong formatting in “Persistent Volumes” concept
5 participants