-
Notifications
You must be signed in to change notification settings - Fork 165
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
procedures: update admin docs for storage classes, storage strategies and storage size #2536
procedures: update admin docs for storage classes, storage strategies and storage size #2536
Conversation
🎊 Navigate the preview: https://64ed0c7955b72f13818ae02b--eclipse-che-docs-pr.netlify.app 🎊 |
Thank you for this PR, Andrew. A technical writer will self-assign it to review it toward RHDEVDOCS-4870. |
@max-cx Sounds good, thank you for the update :) |
:page-aliases: installation-guide:configuring-che-storage-size.adoc | ||
|
||
[id="configuring-{prod-id-short}-workspace-pvc-size"] | ||
= Configuring the storage size in {prod-short} |
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.
Not sure, but it might be a bit redundant to say "in Che/DevSpaces" since this is the Che/DevSpaces docs.
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.
Yes, we can avoid mentioning Che/DevSpaces when it's self-explanatory to our readers.
[id="configuring-{prod-id-short}-storage-strategy"] | ||
= Configuring the storage strategy in {prod-short} | ||
|
||
{prod-short} can be configured to provide persistent or non-persistent storage to workspaces by selecting a storage strategy. The selected storage strategy will be applied to all newly created workspaces by default. Users can opt for a non-default storage strategy for their workspace in their xref:end-user-guide:requesting-persistent-storage-for-workspaces.adoc[devfile] or through the xref:end-user-guide:url-parameter-for-the-workspace-storage.adoc[URL parameter]. |
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.
While working on this, I realized that the documentation on requesting persistent storage for workspaces with a devfile (requesting-persistent-storage-for-workspaces.adoc
) also should probably be updated to reference the DevWorkspace Operator storage strategy attribute
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.
Please do if you can. Otherwise, please open another issue so that it can be assigned to someone to work on at a later time.
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.
I've created eclipse-che/che#22316 to track this issue and determine if it is valid, as it may not be something Che users need to know about.
I made a separate page for the procedure regarding configuring the PVC/storage size. |
@AObuchow, @osslate will review this PR for RHDEVDOCS-4870. |
Picking up the language review as RHDEVDOCS-5132 |
4a7a4bb
to
c09131a
Compare
@max-cx I fixed the issue with the ECA (the commits had the wrong author) |
[id="configuring-{prod-id-short}-workspace-pvc-size"] | ||
= Configuring the storage size in {prod-short} |
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.
The id
and the =
heading have to be the same (except for the lowercase dashed syntax).
I see there's a sibling page with the heading that reads "Configuring storage classes".
Also, our convention is for the file name to be the same as the id
.
Feel free to change the file names, just beware of having to update all the xref
s to the updated file names in the other files in this PR, esp. in modules/administration-guide/nav.adoc
and modules/administration-guide/pages/configuring-storage.adoc
.
For example (and not sure if size
should be singular or plural here):
[id="configuring-{prod-id-short}-workspace-pvc-size"] | |
= Configuring the storage size in {prod-short} | |
[id="configuring-storage-size"] | |
= Configuring storage size |
:description: Configuring the storage size in {prod-short} | ||
:keywords: administration guide, configuring, {prod-id-short}, storage size, PVC size, pvc | ||
:navtitle: Configuring the storage size in {prod-short} |
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.
If you update the id
and =
title below, the :description:
(line 2) and :navtitle:
(line 4) values have to be updated too to be the same as the =
title.
[id="configuring-{prod-id-short}-workspace-pvc-size"] | ||
= Configuring the storage size in {prod-short} | ||
|
||
The persistent volume claim (PVC) size can be configured when using the `per-user` or `per-workspace` storage strategies. PVC sizes in the Che Cluster Custom Resource must be specified in the format of a https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[{kubernetes} resource quantity]. For more details on the available storage strategies, see xref:configuring-che-storage-strategy.adoc[] |
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.
We use the link:
variation of AsciiDoc syntax.
We need to use active voice rather than passive voice where possible.
Also, we need to focus on the reader and write to the second person, you
, or use the imperative form [do] [this]
.
For example, assuming the proposed changes are still technically correct:
The persistent volume claim (PVC) size can be configured when using the `per-user` or `per-workspace` storage strategies. PVC sizes in the Che Cluster Custom Resource must be specified in the format of a https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[{kubernetes} resource quantity]. For more details on the available storage strategies, see xref:configuring-che-storage-strategy.adoc[] | |
You can configure the persistent volume claim (PVC) size when using the `per-user` or `per-workspace` storage strategies. You must specify the PVC sizes in the `CheCluster` Custom Resource in the format of a link:https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[{kubernetes} resource quantity]. For more details on the available storage strategies, see xref:configuring-che-storage-strategy.adoc[]. |
@@ -0,0 +1,38 @@ | |||
:_content-type: CONCEPT |
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.
Correct me if I'm wrong, this seems to be a procedure:
:_content-type: CONCEPT | |
:_content-type: PROCEDURE |
|
||
The persistent volume claim (PVC) size can be configured when using the `per-user` or `per-workspace` storage strategies. PVC sizes in the Che Cluster Custom Resource must be specified in the format of a https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[{kubernetes} resource quantity]. For more details on the available storage strategies, see xref:configuring-che-storage-strategy.adoc[] | ||
|
||
.Default persistent volume claim sizes: |
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.
FYI, we have an online guide about modular docs.
We reserve the ._<Heading>_
syntax for three sections in a procedure module:
.Prerequisites
(only if any are included, otherwise omitted)
.Procedure
.Additional resources
(only if any are included, otherwise omitted)
So I suggest removing the .
and making that line plain text:
.Default persistent volume claim sizes: | |
Default persistent volume claim sizes: |
* `per-user`: `10Gi` | ||
* `per-workspace`: `5Gi` | ||
|
||
.Procedure |
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.
After this point, we need a numbered list.
In AsciiDoc, the numbers can also be added automatically, so you can just start each step as follows (dot, space, sentence) without worrying about putting the correct numbers on the steps:
. This is a sentence for step 1.
. This is a sentence for step 2.
. This is a sentence for step 3.
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.
As it currently stands, the pages on configuring the storage strategy and configuring the storage size only have a single step. Should I still be using the .Procedure
heading?
|
||
.Procedure | ||
|
||
Use CheCluster Custom Resource definition to define the persistent volume claim size for the desired storage strategy: |
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.
This sentence appears to summarize the use case and if so, then it belongs in the intro paragraph or two that currently starts on line 10.
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.
For now, I'm going to remove this sentence as it doesn't seem to add any extra information that the first paragraph doesn't already have.
|
||
Use CheCluster Custom Resource definition to define the persistent volume claim size for the desired storage strategy: | ||
|
||
Set the appropriate `claimSize` field for the desired storage strategy in the Che Cluster Custom Resource. To set this field prior to installing {prod-short}, see xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[], otherwise consult xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. |
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.
WIP
You can move the second sentence into an admonition (NOTE/TIP/IMPORTANT/WARNING) if the info is not one of the steps.
Set the appropriate `claimSize` field for the desired storage strategy in the Che Cluster Custom Resource. To set this field prior to installing {prod-short}, see xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[], otherwise consult xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. | |
. Set the appropriate `claimSize` field for the desired storage strategy in the Che Cluster Custom Resource: | |
[NOTE] | |
==== | |
* You can set this field at installation. See xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[]. | |
* You can update this field on the command line. See xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. | |
==== |
bbacbe6
to
ab73ab8
Compare
Hi @max-cx thank you for the great feedback so far. I just rebased my PR cause I was having some issues with the live preview on the dog fooding instance. Hopefully this should fix the issue I was encountering, and I will be starting to address your feedback finally. Will ping you once it's all addressed (this might take a few sessions of me working on this) :) |
@max-cx I've added an extra PR to address some of the feedback you've given, though I still need to do some more work on this PR and finish addressing your feedback. You're welcome to wait until I have finished addressing everything before getting back to me, since this is currently a work-in-progress :P And sorry about the ECA, my git email/name is not configured correctly on the dog fooding instance where I worked on this PR. Edit: Fixing the ECA will probably require me to re-author the commits. If there's no urgency for me to do this, I'll leave it for when the PR is ready to merge as we'll likely want to squash and reorganize the commit log. |
f209d82
to
b001fff
Compare
@max-cx I've finally done the rest of the updates to this PR based on your current feedback. When you have some time, let me know which further changes are required. For your convenience, I'd be happy to any details on a call if you'd prefer :) |
@AObuchow could you please rebase against main? |
b001fff
to
d147d46
Compare
Done 👍 |
@AObuchow looks like still some checks are failing |
Approved |
Sure! How long do you think it will take to clear out the eclipsefdn/eca check? Update: I see, the merge is actually blocked by a change request. @AObuchow can you please resolve the change request? |
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.
lgtm
fc94099
to
16c7139
Compare
Signed-off-by: Andrew Obuchowicz <[email protected]>
Signed-off-by: Andrew Obuchowicz <[email protected]>
Signed-off-by: Andrew Obuchowicz <[email protected]>
16c7139
to
2e93b12
Compare
Thanks for checking this out @deerskindoll :) I believe I had already addressed the changes requested. I've squashed my commits, though |
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.
added missing xref description
modules/administration-guide/pages/configuring-storage-sizes.adoc
Outdated
Show resolved
Hide resolved
… and storage size (#2536) Co-authored-by: Jana Vrbkova <[email protected]>
What does this pull request change?
Some notes:
What issues does this pull request fix or reference?
eclipse-che/che#21885 (comment)
Specify the version of the product this pull request applies to
7.58.0 (I believe)
Pull Request checklist
The author and the reviewers validate the content of this pull request with the following checklist, in addition to the automated tests.
Validate language on files added or modified
step reports no vale warnings.