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

GA TTLAfterFinished #30031

Merged
merged 1 commit into from
Oct 26, 2021
Merged

GA TTLAfterFinished #30031

merged 1 commit into from
Oct 26, 2021

Conversation

sahilvv
Copy link
Contributor

@sahilvv sahilvv commented Oct 11, 2021

This PR updates the TTLAfterFinish controller to stable as part of 1.23 k8s release.

Related PRs:

@k8s-ci-robot k8s-ci-robot added this to the 1.23 milestone Oct 11, 2021
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 11, 2021
@netlify
Copy link

netlify bot commented Oct 11, 2021

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

🔨 Explore the source changes: 1111731

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

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. language/en Issues or PRs related to English language labels Oct 11, 2021
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Oct 11, 2021
@sahilvv sahilvv mentioned this pull request Oct 11, 2021
@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 11, 2021

@sftim @ahg-g please review.

@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 11, 2021

/milestone 1.23

@k8s-ci-robot
Copy link
Contributor

@sahilvv: You must be a member of the kubernetes/website-milestone-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your Website milestone maintainers and have them propose you as an additional delegate for this responsibility.

In response to this:

/milestone 1.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sftim
Copy link
Contributor

sftim commented Oct 11, 2021

/sig apps

@k8s-ci-robot k8s-ci-robot added the sig/apps Categorizes an issue or PR as relevant to SIG Apps. label Oct 11, 2021
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.

This is OK to merge.

Ideally, we should improve this document as well for general availability. I'd reword “The TTL controller only supports Jobs for now” given that we now have a stable definition of what the control plane does.

The comment about NTP could change to be generic over which time sync technology you use.

Nice to have: follow the style guide throughout.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 11, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 318aa2e2edfe12b5e7e42d991813358ffb519776

@jlbutler
Copy link
Contributor

/assign @chrisnegus

@ahg-g
Copy link
Member

ahg-g commented Oct 12, 2021

I'd reword “The TTL controller only supports Jobs for now” given that we now have a stable definition of what the control plane does.

+1, I don't think the docs should be speculating about the future now that this is a GA feature.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 15, 2021
@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 15, 2021

@sftim @ahg-g reworded to make it explicit that the feature is supported only for jobs. Please let me know if any further changes needed.

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.

/lgtm

  • I have a suggested rewording for the overview
  • Same as GA TTLAfterFinished #30031 (review): I'd prefer to change “NTP” to mention time sync (you could use another mechanism).

@@ -8,23 +8,17 @@ weight: 70

<!-- overview -->

{{< feature-state for_k8s_version="v1.21" state="beta" >}}
{{< feature-state for_k8s_version="v1.23" state="stable" >}}

The TTL controller provides a TTL (time to live) mechanism to limit the lifetime of resource
Copy link
Contributor

Choose a reason for hiding this comment

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

For GA, I would prefer to rename this to “The TTL-after-finished controller”

for example:

Suggested change
The TTL controller provides a TTL (time to live) mechanism to limit the lifetime of resource
The TTL-after-finished {{<glossary_tooltip text="controller" term_id="controller">}} provides
a TTL (time to live) mechanism to limit the lifetime of Kubernetes workload

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 15, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: bb56aa35a71e4393363cf06e1af068b5dfb073f3

@sftim
Copy link
Contributor

sftim commented Oct 16, 2021

I also recommend looking at #26917, which is about making sure the right pages hyperlink to the TTLAfterFinished docs.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 17, 2021
@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 17, 2021

@sftim I have addressed the review feedback given so far. Please take a look. Thanks again!

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.

Yep, still LGTM. Also happy to see tweaks. But bear in mind we can merge this and do the tweaks in a different PR; that works fine too!

Question: should we also retitle the page?
For example, to “Automatic Clean-up for Finished Jobs”.

/lgtm

determine whether the TTL has expired or not, this feature is sensitive to time
skew in the cluster, which may cause TTL controller to clean up resource objects
at the wrong time.

In Kubernetes, it's required to run NTP on all nodes
In Kubernetes, it's required to run a time sync solution on all nodes
(see [#6159](https://github.com/kubernetes/kubernetes/issues/6159#issuecomment-93844058))
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd omit this line.

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 @sftim.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 17, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: d699732a280fe69dc12b7e727de016ec23b16c0d

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 18, 2021
@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 18, 2021

@chrisnegus @ahg-g @janetkuo please review.


The TTL controller only supports Jobs for now. A cluster operator can use this feature to clean
The TTL-after-finished controller is only supported for Jobs. A cluster operator can use this feature to clean
Copy link
Member

Choose a reason for hiding this comment

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

It we change this, we should also change other references of "resources" to "Jobs".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great comment @janetkuo. I have updated the references of resources to jobs.

@sftim
Copy link
Contributor

sftim commented Oct 20, 2021

Still LGTM. Also happy to see tweaks. But bear in mind we can merge this and do the tweaks in a different PR; that works fine too!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 20, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 6208ac93ca2cf582c8e9e68bcfb2366d943da74f

@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 22, 2021

@janetkuo could you please re-review and approve if changes look good.

@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 22, 2021

@sftim can you grant me /approve on this.

@sftim
Copy link
Contributor

sftim commented Oct 22, 2021

I'll leave approval to the SIG Release Docs folks.

@sahilvv
Copy link
Contributor Author

sahilvv commented Oct 22, 2021

@mehabhalodiya @chrisnegus Please review.

@reylejano
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: janetkuo, reylejano

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 Oct 26, 2021
@k8s-ci-robot k8s-ci-robot merged commit 0af4dd9 into kubernetes:dev-1.23 Oct 26, 2021
@sahilvv sahilvv deleted the ga_ttl branch October 26, 2021 02:19
@chrisnegus
Copy link
Contributor

@sftim @reylejano Thanks for taking care of this.
/lgtm

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/apps Categorizes an issue or PR as relevant to SIG Apps. sig/docs Categorizes an issue or PR as relevant to SIG Docs. 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.

8 participants