mirror of
https://github.com/coder/terraform-provider-envbuilder.git
synced 2025-11-14 16:08:08 +00:00
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.
This commit is contained in:
parent
b55c3783a8
commit
6cf3d93444
3 changed files with 105 additions and 46 deletions
docs/resources
|
|
@ -48,7 +48,8 @@ The cached image resource can be used to retrieve a cached image produced by env
|
|||
|
||||
### Read-Only
|
||||
|
||||
- `env` (List of String, Sensitive) Computed envbuilder configuration to be set for the container. May contain secrets.
|
||||
- `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.
|
||||
- `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.
|
||||
- `exists` (Boolean) Whether the cached image was exists or not for the given config.
|
||||
- `id` (String) Cached image identifier. This will generally be the image's SHA256 digest.
|
||||
- `image` (String) Outputs the cached image repo@digest if it exists, and builder image otherwise.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue