From b948224008f9cf80621e72b9531b8f8c626ef25a Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Thu, 11 Jun 2026 20:38:46 +0000 Subject: [PATCH] android-emulator: import orphaned namespace into state (lock-race recovery) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pipeline 85 created the namespace but a Terraform pg-backend workspace-creation lock race (new stack schema initializing while other stacks applied concurrently) left it out of the recorded state — every later apply then died with 'namespaces android-emulator already exists'. Adopt it with an import block per the house recovery pattern; stanza gets removed once it has applied. --- stacks/android-emulator/main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stacks/android-emulator/main.tf b/stacks/android-emulator/main.tf index 8617a480..b25e930c 100644 --- a/stacks/android-emulator/main.tf +++ b/stacks/android-emulator/main.tf @@ -8,6 +8,15 @@ # - privileged + /dev/kvm hostPath (namespace is on the Kyverno exclude list) # - swiftshader rendering — deliberately NOT on the contended T4 GPU node +# Recovery stanza (delete after it applies once): pipeline 85's first apply +# created the namespace but a PG-backend workspace-creation lock race left it +# out of the recorded state, so subsequent plans tried to re-create it. +# House pattern: adopt via import block, plan-to-zero, then drop the stanza. +import { + to = kubernetes_namespace.android-emulator + id = "android-emulator" +} + resource "kubernetes_namespace" "android-emulator" { metadata { name = "android-emulator"