Title: bug: Terraform Identity Change Error with Coder v2.28.7 · Issue #21719 · coder/coder · GitHub
Open Graph Title: bug: Terraform Identity Change Error with Coder v2.28.7 · Issue #21719 · coder/coder
X Title: bug: Terraform Identity Change Error with Coder v2.28.7 · Issue #21719 · coder/coder
Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Problem After upgrading to Coder v2.28.7 via Helm, Terraform fails when managing workspace pods due to an Unexpected Identity Change error. This oc...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Problem After upgrading to Coder v2.28.7 via Helm, Terraform fails when managing workspace pods due to an U...
X Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Problem After upgrading to Coder v2.28.7 via Helm, Terraform fails when managing workspace pods due to an U...
Opengraph URL: https://github.com/coder/coder/issues/21719
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Terraform Identity Change Error with Coder v2.28.7","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### Current Behavior\n\n### Problem\nAfter upgrading to **Coder v2.28.7** via Helm, Terraform fails when managing workspace pods due to an **Unexpected Identity Change** error. This occurs for all new and existing workspace pods in the `coder` namespace where coder runs.\n\n### Error Message\n```text\nError: Unexpected Identity Change\n\nDuring the read operation, the Terraform Provider unexpectedly returned a different identity than the previously stored one.\n\nCurrent Identity:\ncty.ObjectVal(map[string]cty.Value{\n \"api_version\": cty.NullVal(cty.String),\n \"kind\": cty.NullVal(cty.String),\n \"name\": cty.NullVal(cty.String),\n \"namespace\": cty.NullVal(cty.String),\n})\n\nNew Identity:\ncty.ObjectVal(map[string]cty.Value{\n \"api_version\": cty.StringVal(\"v1\"),\n \"kind\": cty.StringVal(\"Pod\"),\n \"name\": cty.StringVal(\"coder-rbhope-sup-pytorch1\"),\n \"namespace\": cty.StringVal(\"coder\"),\n})\n\non main.tf line 220, in resource \"kubernetes_pod\" \"main\"\n```\n\n### Environment\n- **Coder Version:** v2.28.7 (recently upgraded)\n- **Kubernetes Cluster:** v1.32\n- **Terraform Provider:** Kubernetes provider (suspected incompatibility)\n\n### Steps to Reproduce\n1. Upgrade Coder to v2.28.7\n2. Access or manage an existing workspace\n3. Terraform identity change error occurs\n\n\nI am also working on adding **Gateway API HTTPRoute support** to Coder (PR #21615), including `sectionName` support, which surfaced while investigating provider compatibility issues. Can any maintainers take a look at that?\n\n\n\n### Relevant Log Output\n\n```shell\nError: Unexpected Identity Change\n\nDuring the read operation, the Terraform Provider unexpectedly returned a different identity than the previously stored one.\n\nCurrent Identity:\ncty.ObjectVal(map[string]cty.Value{\n \"api_version\": cty.NullVal(cty.String),\n \"kind\": cty.NullVal(cty.String),\n \"name\": cty.NullVal(cty.String),\n \"namespace\": cty.NullVal(cty.String),\n})\n\nNew Identity:\ncty.ObjectVal(map[string]cty.Value{\n \"api_version\": cty.StringVal(\"v1\"),\n \"kind\": cty.StringVal(\"Pod\"),\n \"name\": cty.StringVal(\"coder-rbhope-sup-pytorch1\"),\n \"namespace\": cty.StringVal(\"coder\"),\n})\n\non main.tf line 220, in resource \"kubernetes_pod\" \"main\"\n```\n\n### Expected Behavior\n\n_No response_\n\n### Steps to Reproduce\n\n1. Upgrade Coder to v2.28.7\n2. Access or manage an existing workspace\n3. Terraform identity change error occurs\n\n\n### Environment\n\n- **Coder Version:** v2.28.7 (recently upgraded)\n- **Kubernetes Cluster:** v1.32\n- **Terraform Provider:** Kubernetes provider (suspected incompatibility)\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/groundsada","@type":"Person","name":"groundsada"},"datePublished":"2026-01-28T01:30:08Z","url":"https://github.com/coder/coder/issues/21719"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad2ee980-2bd8-a8af-d69b-541854c97bf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7A0:36A3E:1F43A33:29A8D68:6B017BC4 |
| html-safe-nonce | 4a114fb5b203d9d2939e44bfe34963c5b3a4bbeef4425374f452b3c565f9c526 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0EwOjM2QTNFOjFGNDNBMzM6MjlBOEQ2ODo2QjAxN0JDNCIsInZpc2l0b3JfaWQiOiI0ODIzOTEyNjEyMTU0NjcwMDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b528a5c8b905b6e63e65e09622d68ce7724d4ffe9029a53a124b817097c7b051 |
| hovercard-subject-tag | issue:3863125696 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/21719/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c27cdf04b0dbec2805a2fb97696918e9e4ecf41dff798ddf64cb43694964ca9/coder/coder/issues/21719 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c27cdf04b0dbec2805a2fb97696918e9e4ecf41dff798ddf64cb43694964ca9/coder/coder/issues/21719 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues Current Behavior Problem After upgrading to Coder v2.28.7 via Helm, Terraform fails when managing workspace pods due to an U... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | groundsada |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width