Skip to content

Commit 4b7f962

Browse files
h4x3rotabclaude
andcommitted
chore(consul-postgres-ha): pin provider >= 0.2.0-beta.3, reframe hot-patch
terraform-provider-phala#8 fixed the env-block in-place-update bug (phala-cloud#246) and shipped as v0.2.0-beta.3, so: - cluster.tf required_providers now pins ">= 0.2.0-beta.3" with a comment explaining why earlier versions are unusable for this stack. - PUBLISHING.md's hot-patch section reframes its motivation: the per-CVM hot-patch path remains useful as a dev shortcut and as the only option on clusters still running 0.2.0-beta.2, but it is no longer the workaround for env updates not landing — terraform apply works correctly now. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6214d3a commit 4b7f962

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

consul-postgres-ha/stage4/PUBLISHING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ real CI workflow.
8787

8888
## 3. Hot-patch on a live cluster — debugging without a redeploy
8989

90-
Sometimes you need to swap a binary on a running CVM right now,
91-
without re-applying terraform (because `terraform-provider-phala` has
92-
a known bug where `env`-block in-place updates silently no-op — see
93-
`Phala-Network/phala-cloud#246` — and you don't want to recreate CVMs
94-
just to roll a new image).
90+
Sometimes you need to swap a binary on a running CVM right now —
91+
faster than re-running `terraform apply` (which propagates env updates
92+
correctly as of provider `0.2.0-beta.3`, but still goes per-CVM and
93+
takes a minute), useful for testing a fix on one CVM before rolling it
94+
cluster-wide, and the only option on clusters running the older
95+
`0.2.0-beta.2` provider where in-place env updates silently no-op'd
96+
(Phala-Network/phala-cloud#246; fixed by
97+
Phala-Network/terraform-provider-phala#8).
9598

9699
```bash
97100
GW=dstack-pha-prod5.phala.network

consul-postgres-ha/stage4/cluster-example/cluster.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ terraform {
1414
required_version = ">= 1.5"
1515
required_providers {
1616
phala = {
17-
source = "phala-network/phala"
18-
version = "0.2.0-beta.2"
17+
source = "phala-network/phala"
18+
# >= 0.2.0-beta.3 is required for in-place env-block updates to
19+
# actually take effect — earlier versions silently no-op'd them
20+
# (Phala-Network/phala-cloud#246, fixed in
21+
# Phala-Network/terraform-provider-phala#8).
22+
version = ">= 0.2.0-beta.3"
1923
}
2024
}
2125
}

0 commit comments

Comments
 (0)