Skip to content

fix(provisioner/terraform/tfparse): allow empty values in coder_workspace_tag defaults #16303

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 3 commits into from
Jan 28, 2025

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Jan 27, 2025

This removes a check we previously had requiring all workspace tag values sniffed in tfparse to have a non-empty value. This allows template authors to provide an initially empty value that is later overriden with tag values either in the request or passed in via template variables when importing the template.

Also updates documentation removing references to the non-empty default value requirement.

Also addresses an issue in our test code for starting a new external provisioner that causes an error if the test name is longer than 64 characters, which is longer than our DB schema allows.

Screen.Recording.2025-01-27.at.21.21.03.mov

@johnstcn johnstcn self-assigned this Jan 27, 2025
@johnstcn johnstcn force-pushed the cj/tfparse-allow-empty-defaults branch from b4f9bec to 85a168e Compare January 27, 2025 20:09
@johnstcn johnstcn requested review from mtojek and Emyrk January 27, 2025 21:23
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

👍

@johnstcn johnstcn merged commit 76adde9 into main Jan 28, 2025
42 checks passed
@johnstcn johnstcn deleted the cj/tfparse-allow-empty-defaults branch January 28, 2025 09:11
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants