Commit cd931d9
authored
feat(cli): Interactive confirmation (#3360)
### Proposed Changes
1.) Cleanup some of the plan artifact to only include what is needed.
2.) Remove the output file from `namespaced-policy` and print summary of
information to the screen
3.) Add confirmation prompt before `commit`
4.) Add option to `skip`, `abort`, 'commit' a specific object. Skipping
an object that another requires causes both to be skipped.
5.) Cleanup unused files
6.) Skip integration tests for now
### Example screen shot of aborted plan
<img width="1873" height="829" alt="Screenshot 2026-04-21 at 8 32 31 PM"
src="https://github.com/user-attachments/assets/df593f29-2d23-464e-b850-8c8aa259f72c"
/>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Removed Features**
* Removed the `registered-resources` migration subcommand from the
migrate command
* Removed the `--output` flag from the `namespaced-policy` command
* **New Features**
* Added interactive backup confirmation prompt before committing
namespaced policy migrations
* **Changed Behavior**
* Namespaced-policy command now prints a human-readable migration
summary to stdout instead of writing JSON files
* **Documentation**
* Updated namespaced-policy command documentation to reflect removed
flag and new summary output behavior
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 2529e11 commit cd931d9
36 files changed
Lines changed: 2377 additions & 3246 deletions
File tree
- otdfctl
- cmd/migrate
- docs/man/migrate
- e2e
- migrations
- artifact
- metadata
- v1
- namespacedpolicy
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
37 | 30 | | |
38 | | - | |
| 31 | + | |
39 | 32 | | |
40 | 33 | | |
41 | 34 | | |
| |||
51 | 44 | | |
52 | 45 | | |
53 | 46 | | |
54 | | - | |
| 47 | + | |
55 | 48 | | |
56 | 49 | | |
57 | 50 | | |
| |||
65 | 58 | | |
66 | 59 | | |
67 | 60 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 61 | + | |
76 | 62 | | |
77 | 63 | | |
78 | | - | |
79 | | - | |
| 64 | + | |
| 65 | + | |
80 | 66 | | |
81 | 67 | | |
82 | 68 | | |
83 | | - | |
84 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
85 | 77 | | |
86 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
90 | | - | |
| 92 | + | |
91 | 93 | | |
92 | | - | |
93 | 94 | | |
94 | | - | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 11 | | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
19 | | - | |
| 15 | + | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | | - | |
24 | | - | |
25 | 19 | | |
26 | 20 | | |
27 | | - | |
28 | | - | |
29 | 21 | | |
30 | 22 | | |
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
34 | 26 | | |
35 | 27 | | |
36 | | - | |
37 | | - | |
| 28 | + | |
| 29 | + | |
38 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| |||
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
356 | | - | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
| 370 | + | |
384 | 371 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
| 372 | + | |
401 | 373 | | |
402 | 374 | | |
403 | 375 | | |
| |||
441 | 413 | | |
442 | 414 | | |
443 | 415 | | |
444 | | - | |
| 416 | + | |
445 | 417 | | |
446 | 418 | | |
447 | 419 | | |
| |||
452 | 424 | | |
453 | 425 | | |
454 | 426 | | |
455 | | - | |
| 427 | + | |
456 | 428 | | |
457 | 429 | | |
458 | 430 | | |
| |||
718 | 690 | | |
719 | 691 | | |
720 | 692 | | |
721 | | - | |
| 693 | + | |
722 | 694 | | |
723 | 695 | | |
724 | 696 | | |
| |||
756 | 728 | | |
757 | 729 | | |
758 | 730 | | |
759 | | - | |
| 731 | + | |
760 | 732 | | |
761 | 733 | | |
762 | 734 | | |
| |||
1237 | 1209 | | |
1238 | 1210 | | |
1239 | 1211 | | |
| 1212 | + | |
| 1213 | + | |
1240 | 1214 | | |
1241 | 1215 | | |
1242 | 1216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
This file was deleted.
0 commit comments