Skip to content

docs: add object retention page #5271

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mykysha
Copy link
Contributor

@mykysha mykysha commented May 16, 2025

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Add a documentation page for the object retention functionality

Which issue(s) this PR fixes:

Fixes #5261

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/documentation Categorizes issue or PR as related to documentation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 16, 2025
Copy link

netlify bot commented May 16, 2025

Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit 295029c
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/6839960c9867e90008b4f6f0
😎 Deploy Preview https://deploy-preview-5271--kubernetes-sigs-kueue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mykysha
Once this PR has been reviewed and has the lgtm label, please assign moficodes for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 requested review from kannon92 and tenzen-y May 16, 2025 12:36
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 16, 2025
@mykysha mykysha marked this pull request as ready for review May 16, 2025 12:53
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 16, 2025
@k8s-ci-robot k8s-ci-robot requested a review from mbobrovskyi May 16, 2025 12:53
@mykysha mykysha force-pushed the docs/setup-object-retention branch from c72f950 to 1d9d137 Compare May 19, 2025 07:19
@mimowo
Copy link
Contributor

mimowo commented May 19, 2025

cc @mwysokin would you like to give the first pass?

@mwysokin
Copy link
Contributor

Sorry for the delay. I'll have time to review this on Friday (tomorrow).

Comment on lines 35 to 42
{{% alert title="Note" color="primary" %}}
If you update an existing Kueue installation you may need to restart the
`kueue-controller-manager` pod in order for Kueue to pick up the updated
configuration. In that case run:

```shell
kubectl delete pods --all -n kueue-system
```
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need this. This should be discussed in the referenced part of the doc: (/docs/installation#install-a-custom-configured-released-version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Surely, will remove this part. Was using waitforpodsready doc as an example, which has this section as well

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, I guess this is old style, I think it is ok to keep it in one place only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the alert from the doc



## Example

Copy link
Contributor

Choose a reason for hiding this comment

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

The example here isn't really example currently.
Maybe in this example propose Kueue configuration which is using the delay of 1min, and also configure waitforPodsReady. Then describe 2 scenarios:

  1. workload happily finished and collected
  2. workload which hits waitForPodsReady and gets deactivated. For example, set up Kueue quota bigger than the amount of physical not capacity, to simulate node failure.

wdyt @mwysokin ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Assuming no response from @mwysokin I would structure the example as proposed. Please adjust the doc.

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO what is missing is the good example as mentioned.
other than that looks good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reworked the example here, wondering whether this is understandable enough or whether I should add yaml for the resources to be created, so that it would be guaranteed to work and demonstrate what is intended?

@mykysha mykysha force-pushed the docs/setup-object-retention branch from 1d9d137 to 7e08866 Compare May 27, 2025 14:31
@mimowo
Copy link
Contributor

mimowo commented May 29, 2025

cc @mszadkow @mbobrovskyi it will be great if you can also give it a pass


This guide shows you how to enable and configure optional object retention
policies in Kueue to automatically delete finished or deactivated Workloads
after a specified time. By default, Kueue leaves all Workload objects in etcd
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure we have to mention etcd, or maybe make a direct link between Kueue and etc, as this is more indirect

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed the description to "cluster", hope it makes it more understandable and relevant

@mykysha mykysha force-pushed the docs/setup-object-retention branch from 7e08866 to 295029c Compare May 30, 2025 11:27
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 30, 2025
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. kind/documentation Categorizes issue or PR as related to documentation. release-note-none Denotes a PR that doesn't merit a release note. 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.

Documentation for object retention policies
6 participants