Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Aug 15, 2024

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.

@johnstcn johnstcn requested a review from mafredri August 15, 2024 21:07
@johnstcn johnstcn self-assigned this Aug 15, 2024
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

} else {
data.Env = appendKnownEnvToList(data.Env, "ENVBUILDER_REMOTE_REPO_BUILD_MODE", data.RemoteRepoBuildMode)
env["ENVBUILDER_REMOTE_REPO_BUILD_MODE"] = tfValueToString(data.RemoteRepoBuildMode)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side-note: I feel like we're missing some input parameters here 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I need to go through and add all the rest! Follow up though.

@johnstcn johnstcn merged commit 6cf3d93 into main Aug 16, 2024
14 checks passed
@johnstcn johnstcn deleted the cj/envmap branch August 16, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants