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
KEP-4210: add support for ImageMaximumGCAge field #121275
Conversation
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
3b33da6
to
f7ee92b
Compare
/triage accepted |
f7ee92b
to
d85dcc6
Compare
d85dcc6
to
c797098
Compare
d5a4e20
to
6a67588
Compare
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.
API bits lgtm. One nit on the field doc.
Once this has lgtm / approve for non API packages tag me and I'll add approve for the API config field package
pkg/kubelet/apis/config/types.go
Outdated
// garbage collected. | ||
ImageMinimumGCAge metav1.Duration | ||
// ImageMaximumGCAge is the maximum age an image can be unused before it is garbage collected. | ||
// The default of this field is "0s", which disables it. |
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 guess "which disables it" could be read two ways – does it disable GC or mean there is no max age? make that clearer in the doc (here and in v1beta1/types.go)
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
to free images older than configured ImageGCMaximumAge Signed-off-by: Peter Hunt <pehunt@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
to help find MaxAge thresholds and detect image addition/removal thrashing Signed-off-by: Peter Hunt <pehunt@redhat.com>
6a67588
to
49c947b
Compare
/lgtm /assign @dchen1107 @mrunalp |
LGTM label has been added. Git tree hash: 67f667dd609370c45c3896583482a502494d6d58
|
/assign @mrunalp @dchen1107 |
/approve |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haircommander, liggitt, 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 |
Add ImageMaximumGCAge field to Kubelet configuration for consistency with the unit test payload. kubernetes/kubernetes#121275
Add ImageMaximumGCAge field to Kubelet configuration for consistency with the unit test payload. kubernetes/kubernetes#121275
Add ImageMaximumGCAge with default value to kubelet conf in the unit test spec. See kubernetes/kubernetes#121275
Add ImageMaximumGCAge with default value to kubelet conf in the unit test spec. See kubernetes/kubernetes#121275
What type of PR is this?
/kind feature
What this PR does / why we need it:
adds support for ImageGCMaximumAge kubelet configuration field, which sets the maximum age of an image before it's deemed unused and worthy of garbage collecting.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: