File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,12 @@ The e2e framework does not currently support enabling or disabling feature
432
432
gates. However, unit tests in each component dealing with managing data, created
433
433
with and without the feature, are necessary. At the very least, think about
434
434
conversion tests if API types are being modified.
435
+
436
+ Additionally, for features that are introducing a new API field, unit tests that
437
+ are exercising the `switch` of feature gate itself (what happens if I disable a
438
+ feature gate after having objects written with the new field) are also critical.
439
+ You can take a look at one potential example of such test in:
440
+ https://github.com/kubernetes/kubernetes/pull/97058/files#diff-7826f7adbc1996a05ab52e3f5f02429e94b68ce6bce0dc534d1be636154fded3R246-R282
435
441
-->
436
442
437
443
### Rollout, Upgrade and Rollback Planning
You can’t perform that action at this time.
0 commit comments