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
feat(update-app-base): add support to update base for application charms
This PR adds support to update the base in application charms by requiring a replace in case of a
machine charm, and perform the upgrade in case of a k8s charm.
We add the model_type computed field on the application schema, and we
use it to make a decision in the planmodifier RequiresReplaceIf.
re juju#635
Copy file name to clipboardexpand all lines: docs/resources/application.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ Notes:
74
74
### Read-Only
75
75
76
76
-`id` (String) The ID of this resource.
77
+
-`model_type` (String) The type of the model where the application is to be deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
77
78
-`principal` (Boolean, Deprecated) Whether this is a Principal application
78
79
79
80
<aid="nestedblock--charm"></a>
@@ -85,7 +86,7 @@ Required:
85
86
86
87
Optional:
87
88
88
-
-`base` (String) The operating system on which to deploy. E.g. ubuntu@22.04.
89
+
-`base` (String) The operating system on which to deploy. E.g. ubuntu@22.04. Changing this value for machine charms will trigger a replace by terraform.
89
90
-`channel` (String) The channel to use when deploying a charm. Specified as \<track>/\<risk>/\<branch>.
90
91
-`revision` (Number) The revision of the charm to deploy. During the update phase, the charm revision should be update before config update, to avoid issues with config parameters parsing.
91
92
-`series` (String, Deprecated) The series on which to deploy.
DeprecationMessage: "Configure base instead. This attribute will be removed in the next major version of the provider.",
317
326
},
318
327
BaseKey: schema.StringAttribute{
319
-
Description: "The operating system on which to deploy. E.g. ubuntu@22.04.",
328
+
Description: "The operating system on which to deploy. E.g. ubuntu@22.04. Changing this value for machine charms will trigger a replace by terraform.",
0 commit comments