fix: align opencode workspace event root
This commit is contained in:
@@ -761,6 +761,11 @@ test("v03 render includes D518 secret-plane smoke on D518 gitops root", async ()
|
||||
assert.equal(opencodeDeployment.metadata?.annotations?.["hwlab.pikastech.local/opencode-provider-proxy-boot-sh"], "deploy/runtime/boot/opencode-provider-proxy.sh");
|
||||
assert.equal(opencodeDeployment.metadata?.annotations?.["hwlab.pikastech.local/values-printed"], "false");
|
||||
assert.match(opencodeDeployment.spec?.template?.metadata?.annotations?.["hwlab.pikastech.local/opencode-config-sha256"] ?? "", /^[a-f0-9]{64}$/u);
|
||||
const opencodeGitInit = opencodeDeployment.spec?.template?.spec?.initContainers?.find((container) => container.name === "opencode-workspace-git-init");
|
||||
assert.ok(opencodeGitInit, "expected opencode workspace git init container");
|
||||
assert.deepEqual(opencodeGitInit.command, ["/bin/sh", "-ec"]);
|
||||
assert.match(opencodeGitInit.args?.[0] ?? "", /git -C \/workspace init/u);
|
||||
assert.ok(opencodeGitInit.volumeMounts?.some((entry) => entry.name === "workspace" && entry.mountPath === "/workspace"));
|
||||
const opencodeContainer = collectContainersFromItem(opencodeDeployment).find((container) => container.name === "opencode-server");
|
||||
assert.deepEqual(opencodeContainer?.command, ["/bin/sh", "-ec"]);
|
||||
assert.equal(opencodeContainer?.args?.[0], "exec opencode serve --hostname 0.0.0.0 --port 4096");
|
||||
|
||||
Reference in New Issue
Block a user