You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #882 from SimoneDutto/upgrade-deprecated-fieldss
#882
## Description
Handle deprecated fields.
I've decided not to handle `machines` automatically because it can require creating new machine resources, and in general is not an obvious upgrade path.
Copy file name to clipboardExpand all lines: tf-upgrader/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ It also upgrades output blocks that reference `juju_model.*.name` to use `juju_m
26
26
27
27
It also upgrades the `required_providers` block from specifying version `0.x` to `>= 1.0.0`.
28
28
29
+
It also handles deprecated fields in resource configurations:
30
+
31
+
-**`placement`**: Shows a warning for `juju_application` resources using the deprecated `placement` field, recommending migration to the `machines` field
32
+
-**`principal`**: Automatically removes the unused `principal` field from `juju_application` resources
33
+
-**`series`**: Automatically upgrades the deprecated `series` field to `base` for both `juju_application` and `juju_machine` resources
34
+
29
35
## Usage
30
36
31
37
Upgrade a single file:
@@ -78,6 +84,8 @@ output "model_name" {
78
84
79
85
The tool will show warnings for variables that contain "model" in their name, as these may need manual review.
80
86
87
+
The tool will also show warnings for deprecated fields that require manual intervention, such as the `placement` field which should be migrated to use the `machines` field according to the documentation.
0 commit comments