Skip to content

Commit 9cabce4

Browse files
committed
KEP 4210: add a feature gate
Signed-off-by: Peter Hunt <[email protected]>
1 parent 78f1bf8 commit 9cabce4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

keps/sig-node/4210-max-image-gc-age/README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Items marked with (R) are required *prior to targeting to a milestone / release*
6666
## Summary
6767

6868
Add an option ImageMaximumGCAge, which allows an admin to specify a time after which unused images will be garbage collected
69-
by the Kubelet, regardless of disk usage.
69+
by the Kubelet, regardless of disk usage, as well as an associated feature gate to toggle the behavior.
7070

7171
## Motivation
7272

@@ -81,7 +81,7 @@ through the disk usage condition, they will needlessly occupy disk space before
8181

8282
### Goals
8383

84-
- Introduce an option to the Kubelet ImageMaximumGCAge
84+
- Introduce an option to the Kubelet ImageMaximumGCAge and a feature gate ImageMaximumGCAge
8585

8686
### Non-Goals
8787

@@ -115,6 +115,8 @@ The proposal of this KEP is to add an option to the KubeletConfiguration object
115115

116116
To begin, this option will be set to 0, which will be interpreted as "disabled". In the future, a more reasonable default may be chosen.
117117

118+
This option will only be adhered to if the feature gate ImageMaximumGCAge is configured for the Kubelet.
119+
118120
### User Stories (Optional)
119121

120122
#### Story 1
@@ -238,18 +240,15 @@ Version skew is not a worry assuming the internal Kubelet changes are synchroniz
238240

239241
###### How can this feature be enabled / disabled in a live cluster?
240242

241-
- [ ] Feature gate (also fill in values in `kep.yaml`)
242-
- Feature gate name:
243-
- Components depending on the feature gate:
244-
- [x] Other
243+
- [x] Feature gate (also fill in values in `kep.yaml`)
244+
- Feature gate name: ImageGCMaximumAge
245+
- Components depending on the feature gate: kubelet
246+
- [ ] Other
245247
- Describe the mechanism:
246-
- Kubelet configuration field
247248
- Will enabling / disabling the feature require downtime of the control
248249
plane?
249-
- No, it's a kubelet only configuration
250250
- Will enabling / disabling the feature require downtime or reprovisioning
251251
of a node?
252-
- Potentially, to restart the Kubelet.
253252

254253
###### Does enabling the feature change any default behavior?
255254

keps/sig-node/4210-max-image-gc-age/kep.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ milestone:
2828
# The following PRR answers are required at alpha release
2929
# List the feature gate name and the components for which it must be enabled
3030
feature-gates:
31+
- name: ImageGCMaximumAge
3132
disable-supported: true
3233

3334
# The following PRR answers are required at beta release

0 commit comments

Comments
 (0)