Skip to content

Commit e37bd4c

Browse files
committed
fix: bump module refs to v1.1.11, simplify dind chown
- Update dind and openclaw to use kubernetes-workspace v1.1.11 (init container fix for PVC permissions) - Remove -R from dind startup chown (kept as safety net only)
1 parent d4c2a0b commit e37bd4c

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

dind/module/main.tf

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ resource "coder_agent" "main" {
268268
set -e
269269
echo "=== Starting ${var.project_name} workspace ==="
270270
271-
# Fix home directory ownership on first PVC mount (created as root)
271+
# Safety net: fix home directory ownership if init container was skipped
272272
if [ ! -w /home/coder ]; then
273-
sudo chown -R coder:coder /home/coder
273+
sudo chown coder:coder /home/coder
274274
fi
275275
276276
# Install Coder CLI (user-space, running as coder)
@@ -363,12 +363,6 @@ resource "coder_agent" "main" {
363363
fi
364364
%{ endif }
365365
366-
# Start OpenClaw gateway if setup script exists (baked into openclaw image)
367-
if [ -f /opt/coder-scripts/setup-openclaw.sh ]; then
368-
echo "Starting OpenClaw gateway..."
369-
bash /opt/coder-scripts/setup-openclaw.sh
370-
fi
371-
372366
# Launch Claude in a codewire session (non-blocking)
373367
# Wait for claude CLI (installed by claude-code module)
374368
for i in {1..30}; do
@@ -392,7 +386,7 @@ resource "coder_agent" "main" {
392386
# =============================================================================
393387

394388
module "workspace" {
395-
source = "git::https://github.com/codespacesh/templates.git//modules/kubernetes-workspace?ref=v1.1.8"
389+
source = "git::https://github.com/codespacesh/templates.git//modules/kubernetes-workspace?ref=v1.1.11"
396390

397391
namespace = var.namespace
398392
workspace_id = data.coder_workspace.me.id

openclaw/module/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ resource "coder_agent" "main" {
229229
# =============================================================================
230230

231231
module "workspace" {
232-
source = "git::https://github.com/codespacesh/templates.git//modules/kubernetes-workspace?ref=v1.1.8"
232+
source = "git::https://github.com/codespacesh/templates.git//modules/kubernetes-workspace?ref=v1.1.11"
233233

234234
namespace = var.namespace
235235
workspace_id = data.coder_workspace.me.id

0 commit comments

Comments
 (0)