feat(internal/provider): add env_map to cached_image_resource ()

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:
Cian Johnston 2024-08-16 09:42:27 +01:00 committed by GitHub
commit 6cf3d93444
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 105 additions and 46 deletions
docs/resources

View file

@ -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.