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

ImageGCMaxAge beta bump #45153

Merged

Conversation

haircommander
Copy link
Contributor

@haircommander haircommander commented Feb 15, 2024

as well as document accompanying metric

KEP: kubernetes/enhancements#4210

Copy link

netlify bot commented Feb 15, 2024

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

Name Link
🔨 Latest commit 067648a
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/6602e1618c69b50008b15d70

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 15, 2024
@dipesh-rawat
Copy link
Member

/retitle [WIP]: ImageGCMaxAge beta bump

@k8s-ci-robot k8s-ci-robot changed the title placeholder for ImageGCMaxAge beta bump [WIP]: ImageGCMaxAge beta bump Feb 15, 2024
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 15, 2024
@dipesh-rawat
Copy link
Member

/sig node

@k8s-ci-robot k8s-ci-robot added the sig/node Categorizes an issue or PR as relevant to SIG Node. label Feb 15, 2024
@reylejano
Copy link
Member

/milestone 1.30

@k8s-ci-robot k8s-ci-robot added this to the 1.30 milestone Feb 16, 2024
@fsmunoz
Copy link
Contributor

fsmunoz commented Mar 6, 2024

Hello @haircommander 👋 !

Please take a look at Documenting for a release - PR Ready for Review to get your PR ready for review before the deadline Tuesday March 12th 2024 18:00 PST.

Thank you!

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 11, 2024
@haircommander haircommander force-pushed the image-max-gc-beta-1.30 branch from b4da67c to 2300ca1 Compare March 11, 2024 17:02
@haircommander haircommander changed the title [WIP]: ImageGCMaxAge beta bump ImageGCMaxAge beta bump Mar 11, 2024
@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 Mar 11, 2024
Copy link
Member

@dipesh-rawat dipesh-rawat left a comment

Choose a reason for hiding this comment

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

Please exclude changes to the following generated doc pages:

  • content/en/docs/reference/command-line-tools-reference/kube-apiserver.md
  • content/en/docs/reference/command-line-tools-reference/kube-controller-manager.md
  • content/en/docs/reference/command-line-tools-reference/kube-proxy.md
  • content/en/docs/reference/command-line-tools-reference/kube-scheduler.md
  • content/en/docs/reference/command-line-tools-reference/kubelet.md
  • content/en/docs/reference/instrumentation/metrics.md

These files are autogenerated as part of the release process, and the generated docs are committed into this repository separately. Hence, there's no need to modify them within this pull request.

@katcosgrove
Copy link
Contributor

Hey @haircommander! Just a reminder that this needs to be reviewed and ready to merge by Docs Freeze on March 26, including a technical review. An exception request will be required if you cannot meet that deadline. Thank you!

sftim
sftim previously requested changes Mar 18, 2024
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.

Please omit the generated files from this PR; it's simpler to generate them once just before release day. Look for auto_generated: true at the start of the files.

I also added some inline feedback.

Comment on lines 155 to 156
This feature does not track image usage across Kubelet reboots. If the Kubelet
is rebooted, the image age is reset, causing the Kubelet to wait the full
Copy link
Contributor

@sftim sftim Mar 18, 2024

Choose a reason for hiding this comment

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

The kubelet doesn't have a bootloader, so:

Suggested change
This feature does not track image usage across Kubelet reboots. If the Kubelet
is rebooted, the image age is reset, causing the Kubelet to wait the full
This feature does not track image usage across kubelet restarts. If the kubelet
is restarted, the tracked image age is reset, causing the kubelet to wait the full

(updated)

This feature does not track image usage across Kubelet reboots. If the Kubelet
is rebooted, the image age is reset, causing the Kubelet to wait the full
`ImageMaximumGCAge` duration before qualifying images for garbage collection
based on image age
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
based on image age
based on image age.

---
Enables the kubelet configuration field `imageMaximumGCAge`, allowing an administrator to specify the age after which an image will be garbage collected.
Enables the kubelet configuration field `imageMaximumGCAge`, allowing an administrator to specify the age after which an image will be garbage collected.
Copy link
Contributor

Choose a reason for hiding this comment

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

Even better: leave this line unchanged.

@drewhagen
Copy link
Member

Hey @SergeyKanzhelev @bsdnet @mrunalp @dchen1107!

Just a reminder that this PR needs a technical review by Docs Freeze on March 26. An exception request will be required if the deadline is missed. Thanks!

@drewhagen
Copy link
Member

drewhagen commented Mar 24, 2024

I'm reaching out from the Docs team. Just checking in as we approach Docs Freeze on Tuesday March 26th 18:00 PDT. This documentation appears to still be under review. To meet the Docs Freeze, this PR must have a technical review as well as lgtm and approve labels applied, without any unaddressed comments or concerns from SIG Docs. The status of this enhancement is marked as at risk for docs freeze.

@kubernetes/sig-node-leads Can we get a technical review for these docs to make the Docs Freeze deadline of March 26? Thanks!

@fsmunoz
Copy link
Contributor

fsmunoz commented Mar 25, 2024

@haircommander hello, Release Lead Shadow for 1.30, acting as Docs shadow here; as @drewhagen mentioned above, the Docs Freeze is fast approaching (Tuesday March 26th 18:00 PDT).

From what I've seen, the technical review is pending (cc @SergeyKanzhelev @bsdnet @mrunalp @dchen1107 ), and there are also some pending review item from SIG Docs + others that need to be closed - could you take a look?

I think that with that the lgtm and approve can be obtained, hopefully in time for the Freeze deadline 🙏

@haircommander haircommander force-pushed the image-max-gc-beta-1.30 branch from 2300ca1 to a93f668 Compare March 25, 2024 17:07
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 25, 2024
@haircommander
Copy link
Contributor Author

thanks for everyone's patience, I have updated the document with the suggestions

Copy link
Contributor

@mrunalp mrunalp left a comment

Choose a reason for hiding this comment

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

/approve
for sig-node

Comment on lines 154 to 159
{{< note >}}
```suggestion
This feature does not track image usage across kubelet restarts. If the kubelet
is restarted, the tracked image age is reset, causing the kubelet to wait the full
`ImageMaximumGCAge` duration before qualifying images for garbage collection
based on image age.
```

{{< /note>}}
Copy link
Member

Choose a reason for hiding this comment

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

The content within the markdown block was suggested (here) for addition in the PR, it seems that the backticks (```) should not be included in the actual change. If that is the case, it would be appropriate to remove these backticks.

Suggested change
{{< note >}}
```suggestion
This feature does not track image usage across kubelet restarts. If the kubelet
is restarted, the tracked image age is reset, causing the kubelet to wait the full
`ImageMaximumGCAge` duration before qualifying images for garbage collection
based on image age.
```
{{< /note>}}
{{< note >}}
This feature does not track image usage across kubelet restarts. If the kubelet
is restarted, the tracked image age is reset, causing the kubelet to wait the full
`ImageMaximumGCAge` duration before qualifying images for garbage collection
based on image age.
{{< /note>}}

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops

Copy link
Member

Choose a reason for hiding this comment

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

Please exclude the changes made to this generated file.

Copy link
Member

@dipesh-rawat dipesh-rawat left a comment

Choose a reason for hiding this comment

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

The PR is currently lacking the change to transition the feature gate from Alpha to Beta. The necessary change should be made in the feature gate description file -
image-maximum-gc-age.md (here).

Please refer to the documentation here for further information.

@haircommander
Copy link
Contributor Author

updated! thanks @dipesh-rawat

Comment on lines +9 to +15
- stage: beta
defaultValue: true
fromVersion: "1.30"
Copy link
Member

Choose a reason for hiding this comment

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

The changes to the stages block appear incorrect. Please refer to the documentation here for further information. Additionally, I've provided some suggested changes below for your consideration. I hope these recommendations prove helpful.

Suggested change
- stage: beta
defaultValue: true
fromVersion: "1.30"
- stage: alpha
defaultValue: false
fromVersion: "1.29"
toVersion: "1.29"
- stage: beta
defaultValue: true
fromVersion: "1.30"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated!

Signed-off-by: Peter Hunt <pehunt@redhat.com>
@haircommander haircommander force-pushed the image-max-gc-beta-1.30 branch from eb29831 to 067648a Compare March 26, 2024 14:53
@fsmunoz
Copy link
Contributor

fsmunoz commented Mar 26, 2024

@haircommander , did your forced-push address @sftim review? Mentioning it because it still appears as "changes requested", which could be in the way.

@drewhagen
Copy link
Member

drewhagen commented Mar 26, 2024

Please omit the generated files from this PR; it's simpler to generate them once just before release day. Look for auto_generated: true at the start of the files.

I also added some inline feedback.

Yup it looks like the changes requested in this post may be blocking merge.

@sftim sftim dismissed their stale review March 26, 2024 16:53

Review was stale

@kannon92
Copy link
Contributor

LGTM from sig-node side.

Copy link
Member

@dipesh-rawat dipesh-rawat left a comment

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

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

LGTM label has been added.

Git tree hash: b64b446355a9d9e0cd3514e9fe527544b0aa8b8b

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dipesh-rawat, mrunalp

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, 2024
@k8s-ci-robot k8s-ci-robot merged commit cbf0322 into kubernetes:dev-1.30 Mar 26, 2024
6 checks passed
@drewhagen
Copy link
Member

/milestone 1.30

@k8s-ci-robot k8s-ci-robot added this to the 1.30 milestone Apr 25, 2024
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/node Categorizes an issue or PR as relevant to SIG Node. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

10 participants