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

Mark storage capacity as GA + related updates #32008

Merged
merged 1 commit into from Mar 25, 2022

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Mar 2, 2022

The feature is meant to graduate to GA in 1.24.

/hold

kubernetes/kubernetes#108445 needs to be merged first.

@k8s-ci-robot k8s-ci-robot added this to the 1.24 milestone Mar 2, 2022
@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 2, 2022
@netlify
Copy link

netlify bot commented Mar 2, 2022

👷 Deploy Preview for kubernetes-io-vnext-staging processing.

🔨 Explore the source changes: e86725d

🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/622116f7f6bb9a0007e4e08d

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 2, 2022
@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 2, 2022
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.

Thanks for drafting this @pohly

I've added some inline feedback about showing what you need in order to use storage capacity tracking.

On top of the inline feedback, I suggest hyperlinking to https://kubernetes.io/docs/concepts/scheduling-eviction/ from the first mention of “scheduling”.

I also recommend omitting:

[Further work](https://github.com/kubernetes/enhancements/pull/1703) is needed to handle this automatically.

We actually avoid writing hints about future development in docs like this (one reason: as soon as that PR merges, the statement becomes partially incorrect). For beta and GA features, we try to get the docs reasonably close to our style guide.

Comment on lines 105 to 107
Storage capacity tracking is a stable feature and always enabled in a
Kubernetes cluster since Kubernetes 1.24. A CSI driver also has to support
it. Please refer to the driver's documentation for details.
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 capacity tracking is a stable feature and always enabled in a
Kubernetes cluster since Kubernetes 1.24. A CSI driver also has to support
it. Please refer to the driver's documentation for details.
Kubernetes v{{< skew currentVersion >}} includes cluster-level API support for storage
capacity tracking. To use this you must also be using a CSI driver that supports capacity
tracking. Consult the documentation for the CSI drivers that you use to find out whether
this support is available and, if so, how to use it.
If you are not running Kubernetes v{{< skew currentVersion >}}, check the documentation
for that version of Kubernetes.

I would however also move this particular section to the start of the page (just before <!-- body -->) and change the heading to read:

## {{% heading "prerequisites" %}}

You can then also reword or remove:

Tracking storage capacity is supported for {{< glossary_tooltip
text="Container Storage Interface" term_id="csi" >}} (CSI) drivers and
[needs to be enabled](#enabling-storage-capacity-tracking) when installing a CSI driver.

@pohly
Copy link
Contributor Author

pohly commented Mar 3, 2022

On top of the inline feedback, I suggest hyperlinking to https://kubernetes.io/docs/concepts/scheduling-eviction/ from the first mention of “scheduling”.

Done. There was a link to the scheduler under "further reading" which I removed because now it already gets introduced early on.

I also recommend omitting Further work is needed[...]

Done.

I would however also move this particular section to the start of the page

Done. I hope I understood correctly where the subheading needs to go.

The previous split came about because enabling was more complicated. I agree that we can simplify that now.

An unrelated change is a new link to the CSIStorageCapacity object. That link should become valid once the code PR is merged and the corresponding documentation is public.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 3, 2022
Comment on lines +28 to +35
## {{% heading "prerequisites" %}}

Kubernetes v{{< skew currentVersion >}} includes cluster-level API support for
storage capacity tracking. To use this you must also be using a CSI driver that
supports capacity tracking. Consult the documentation for the CSI drivers that
you use to find out whether this support is available and, if so, how to use
it. If you are not running Kubernetes v{{< skew currentVersion >}}, check the
documentation for that version of Kubernetes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, thanks.


<!-- body -->

## API

There are two API extensions for this feature:
- CSIStorageCapacity objects:
- [CSIStorageCapacity](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#csistoragecapacity-v1-storage-k8s-io) objects:
Copy link
Contributor

Choose a reason for hiding this comment

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

This links to the legacy API reference. It'd be nice to link to a page within https://kubernetes.io/docs/reference/kubernetes-api/ instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at the other, already valid links there's a -v1 missing. Will add that.

Should the link have the https://kubernetes.io prefix or start with /docs?

Copy link
Contributor

Choose a reason for hiding this comment

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

In the Markdown, start links to documentation with /docs/

https://kubernetes.io/docs/contribute/style/style-guide/#links has an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I also updated the link for CSIDriver (same bullet list).

@sftim
Copy link
Contributor

sftim commented Mar 3, 2022

/retitle Mark storage capacity as GA + related updates

@k8s-ci-robot k8s-ci-robot changed the title storage capacity GA Mark storage capacity as GA + related updates Mar 3, 2022
@mehabhalodiya
Copy link
Contributor

mehabhalodiya commented Mar 19, 2022

/assign @PI-Victor
enhancement ref: kubernetes/enhancements#1472

@pohly
Copy link
Contributor Author

pohly commented Mar 23, 2022

/hold cancel

The code PR was merged. Feel free to merge this one here.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 23, 2022
@tengqm
Copy link
Contributor

tengqm commented Mar 24, 2022

/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 24, 2022
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8cf3168dc34a4ee8e8ae33bb6b2d769933965363

@mehabhalodiya
Copy link
Contributor

/cc @nate-double-u

@mehabhalodiya
Copy link
Contributor

/sig storage

@k8s-ci-robot k8s-ci-robot added the sig/storage Categorizes an issue or PR as relevant to SIG Storage. label Mar 25, 2022
@xing-yang
Copy link
Contributor

/lgtm

@xing-yang
Copy link
Contributor

/approve

3 similar comments
@tengqm
Copy link
Contributor

tengqm commented Mar 25, 2022

/approve

@nate-double-u
Copy link
Contributor

/approve

@alvaroaleman
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, nate-double-u, tengqm, xing-yang

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 25, 2022
@k8s-ci-robot k8s-ci-robot merged commit 900c849 into kubernetes:dev-1.24 Mar 25, 2022
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. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants