Skip to content

chore(coderd_template): drop workarounds for Coder versions before v2.15.0 - #450

Merged
ethanndickson merged 3 commits into
mainfrom
provider-version-763h
Oct 1, 2026
Merged

ethanndickson merged 3 commits into
mainfrom
provider-version-763h

Conversation

@ethanndickson

Copy link
Copy Markdown
Member

coderd_template still had workarounds for Coder versions before v2.15.0, which couldn't set max_port_share_level when creating a template. After every create we sent a second PATCH just to set it, and at the end of every create and update we fetched the template again to get the real values.

v2.15.0 came out over two years ago, so this removes both. We now send max_port_share_level in the create request, and read the update result straight from the PATCH response. The template resource now needs Coder v2.15.0 or later.

One gotcha: without the port sharing control entitlement (i.e. AGPL), Coder rejects any max_port_share_level on create, even public, which is the only level it allows there. So we just leave it out in that case.

The extra PATCH for use_classic_parameter_flow stays, as Coder only accepts it on create from v2.25.0.

@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T06:27:33.801065Z a29c9ee Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c61b2b16d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/provider/template_resource.go
@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

re: Document the new Coder v2.15 minimum

Leaving this one out on purpose. v2.15.0 is from September 2024, and #449 already dropped the provider-wide minimum version note for the same reason (floors that old aren't useful). Resource-level version notes are reserved for versions people are realistically still running. The failure here is also loud: the apply errors rather than drifting.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: a29c9ee2ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ethanndickson
ethanndickson requested a review from matifali October 1, 2026 06:24
@ethanndickson
ethanndickson marked this pull request as ready for review October 1, 2026 06:24
Comment thread internal/provider/template_resource_test.go
Comment thread internal/provider/template_resource.go
@ethanndickson
ethanndickson merged commit 7870fb3 into main Oct 1, 2026
13 checks passed
@ethanndickson
ethanndickson deleted the provider-version-763h branch October 1, 2026 14:00
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