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(internal/provider): add env_map to cached_image_resource (#37)
This PR adds `env_map` to `cached_image_resource.` This consists of the computed env in map format, which can be useful for other providers that do not expect `KEY=VALUE` format.
Copy file name to clipboardExpand all lines: docs/resources/cached_image.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ The cached image resource can be used to retrieve a cached image produced by env
48
48
49
49
### Read-Only
50
50
51
-
-`env` (List of String, Sensitive) Computed envbuilder configuration to be set for the container. May contain secrets.
51
+
-`env` (List of String, Sensitive) Computed envbuilder configuration to be set for the container in the form of a list of strings of `key=value`. May contain secrets.
52
+
-`env_map` (Map of String, Sensitive) Computed envbuilder configuration to be set for the container in the form of a key-value map. May contain secrets.
52
53
-`exists` (Boolean) Whether the cached image was exists or not for the given config.
53
54
-`id` (String) Cached image identifier. This will generally be the image's SHA256 digest.
54
55
-`image` (String) Outputs the cached image repo@digest if it exists, and builder image otherwise.
MarkdownDescription: "Computed envbuilder configuration to be set for the container. May contain secrets.",
234
+
MarkdownDescription: "Computed envbuilder configuration to be set for the container in the form of a list of strings of `key=value`. May contain secrets.",
232
235
ElementType: types.StringType,
233
236
Computed: true,
234
237
Sensitive: true,
235
238
PlanModifiers: []planmodifier.List{
236
239
listplanmodifier.RequiresReplace(),
237
240
},
238
241
},
242
+
"env_map": schema.MapAttribute{
243
+
MarkdownDescription: "Computed envbuilder configuration to be set for the container in the form of a key-value map. May contain secrets.",
244
+
ElementType: types.StringType,
245
+
Computed: true,
246
+
Sensitive: true,
247
+
PlanModifiers: []planmodifier.Map{
248
+
mapplanmodifier.RequiresReplace(),
249
+
},
250
+
},
239
251
"exists": schema.BoolAttribute{
240
252
MarkdownDescription: "Whether the cached image was exists or not for the given config.",
0 commit comments