Commit 7fe41da
KEP-4603: Node specific kubelet config for maximum backoff down to 1 second (kubernetes#128374)
* Add feature gate, API, and conflict validation tests for enablecrashloopbackoffmax
Signed-off-by: Laura Lorenz <[email protected]>
* Handle when current base is longer than node max
Signed-off-by: Laura Lorenz <[email protected]>
* Update pkg/features/kube_features.go
Co-authored-by: Tsubasa Nagasawa <[email protected]>
* Fix indentation
Signed-off-by: Laura Lorenz <[email protected]>
* Follow convention for success test
Signed-off-by: Laura Lorenz <[email protected]>
* Normalize casing, and change field to Duration
Signed-off-by: Laura Lorenz <[email protected]>
* Fix json name and some other casing errors
Signed-off-by: Laura Lorenz <[email protected]>
* Another one I missed before
Signed-off-by: Laura Lorenz <[email protected]>
* Don't clobber global max function
Signed-off-by: Laura Lorenz <[email protected]>
* Change to flat value in defaults.go
Signed-off-by: Laura Lorenz <[email protected]>
* Streamline validation and defaults
Signed-off-by: Laura Lorenz <[email protected]>
* Fix typecheck
Signed-off-by: Laura Lorenz <[email protected]>
* Lint
Signed-off-by: Laura Lorenz <[email protected]>
* Tighten up validation for subsecond values
Signed-off-by: Laura Lorenz <[email protected]>
* Rename field from MaxBackOffPeriod to MaxContainerRestartPeriod
Signed-off-by: Laura Lorenz <[email protected]>
* A few missed references to renames
Signed-off-by: Laura Lorenz <[email protected]>
* Only compare flags in flags test
Signed-off-by: Laura Lorenz <[email protected]>
* Don't mess with SetDefault signature
Nobody messes with SetDefault signature
Signed-off-by: Laura Lorenz <[email protected]>
* Fix stale signature change, and update test data
Signed-off-by: Laura Lorenz <[email protected]>
* Inspect current feature gates at defaulting time
Signed-off-by: Laura Lorenz <[email protected]>
* Don't use the global feature gate for temp usage
Signed-off-by: Laura Lorenz <[email protected]>
* Expose default error, and some comments
Signed-off-by: Laura Lorenz <[email protected]>
* Hint fuzzer for less arbitrary values to FeatureGates
Signed-off-by: Laura Lorenz <[email protected]>
---------
Signed-off-by: Laura Lorenz <[email protected]>
Co-authored-by: Tsubasa Nagasawa <[email protected]>1 parent 591c75e commit 7fe41da
File tree
20 files changed
+664
-276
lines changed- cmd/kubelet/app
- options
- pkg
- features
- generated/openapi
- kubelet
- apis/config
- fuzzer
- scheme/testdata/KubeletConfiguration
- after
- roundtrip/default
- v1beta1
- validation
- staging/src/k8s.io/kubelet/config/v1beta1
- test/featuregates_linter/test_data
20 files changed
+664
-276
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
305 | 306 | | |
306 | 307 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
509 | 515 | | |
510 | 516 | | |
511 | 517 | | |
| |||
684 | 690 | | |
685 | 691 | | |
686 | 692 | | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
0 commit comments