Commit 0840a20
authored
direct: resolve immutable fields during plan (#4417)
## Changes
If field is in recreate_on_changes resource setting then we assume it
does not change unless the resource is recreated and can resolve it
before deploying the resource (like we do with "id" field).
## Why
More precise plan. In some cases this can downgrade 'recreate' to
'update' or 'update' to 'skip'.
## Tests
New regression test.1 parent aaab9a1 commit 0840a20
File tree
8 files changed
+67
-19
lines changed- acceptance/bundle/resource_deps/immutable_field_ref
- bundle/direct
- dresources
8 files changed
+67
-19
lines changedLines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
| |||
519 | 518 | | |
520 | 519 | | |
521 | 520 | | |
522 | | - | |
523 | | - | |
| 521 | + | |
524 | 522 | | |
525 | 523 | | |
526 | 524 | | |
| |||
598 | 596 | | |
599 | 597 | | |
600 | 598 | | |
| 599 | + | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
610 | 608 | | |
611 | 609 | | |
612 | 610 | | |
| |||
619 | 617 | | |
620 | 618 | | |
621 | 619 | | |
622 | | - | |
| 620 | + | |
623 | 621 | | |
624 | 622 | | |
625 | 623 | | |
| |||
640 | 638 | | |
641 | 639 | | |
642 | 640 | | |
643 | | - | |
644 | | - | |
645 | 641 | | |
646 | 642 | | |
647 | 643 | | |
| |||
667 | 663 | | |
668 | 664 | | |
669 | 665 | | |
670 | | - | |
| 666 | + | |
671 | 667 | | |
672 | 668 | | |
673 | 669 | | |
| |||
676 | 672 | | |
677 | 673 | | |
678 | 674 | | |
679 | | - | |
| 675 | + | |
680 | 676 | | |
681 | 677 | | |
682 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
358 | 367 | | |
359 | 368 | | |
360 | 369 | | |
| |||
0 commit comments