Skip to content

feat: add use_classic_parameter_flow to coderd_template resource #251

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
Aug 19, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 18, 2025

Closes #240.

By popular demand, this exposes the fallback to classic parameters via the Template resource.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment on lines -704 to -708
// TODO(ethanndickson): Remove this once the provider requires a Coder
// deployment running `v2.15.0` or later.
if newState.MaxPortShareLevel.IsUnknown() {
newState.MaxPortShareLevel = curState.MaxPortShareLevel
}
Copy link
Member Author

@ethanndickson ethanndickson Aug 18, 2025

Choose a reason for hiding this comment

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

Removed this because I realised I could use planmodifier UseStateForUnknown for it.

Comment on lines +605 to +606
// TODO: Remove this update call (and the attribute) once the provider
// requires a Coder version where this flag has been removed.
Copy link
Member Author

Choose a reason for hiding this comment

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

Coder 2.24 does not include the bool on CreateTemplateRequest, only on UpdateTemplateMeta. 2.25 does include it on CreateTemplateRequest, however.

@ethanndickson ethanndickson requested a review from aslilac August 18, 2025 09:24
@ethanndickson ethanndickson marked this pull request as ready for review August 18, 2025 09:24
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

one small clerical suggestion, but the code looks great!

Copy link
Member Author

ethanndickson commented Aug 19, 2025

Merge activity

  • Aug 19, 12:31 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 19, 12:31 AM UTC: @ethanndickson merged this pull request with Graphite.

@ethanndickson ethanndickson merged commit ac0a928 into main Aug 19, 2025
14 checks passed
@ethanndickson ethanndickson deleted the ethan/classic-parameter-flow branch August 19, 2025 00:31
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.

Missing support for "Enable dynamic parameters for workspace creation" setting
2 participants