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 @@ -444,6 +444,12 @@ The e2e framework does not currently support enabling or disabling feature
444
444
gates. However, unit tests in each component dealing with managing data, created
445
445
with and without the feature, are necessary. At the very least, think about
446
446
conversion tests if API types are being modified.
447
+
448
+ Additionally, for features that are introducing a new API field, unit tests that
449
+ are exercising the `switch` of feature gate itself (what happens if I disable a
450
+ feature gate after having objects written with the new field) are also critical.
451
+ You can take a look at one potential example of such test in:
452
+ https://github.com/kubernetes/kubernetes/pull/97058/files#diff-7826f7adbc1996a05ab52e3f5f02429e94b68ce6bce0dc534d1be636154fded3R246-R282
447
453
-->
448
454
449
455
### Rollout, Upgrade and Rollback Planning
You can’t perform that action at this time.
0 commit comments