Skip to content

CoderTemplateTest: test a template version like a Kubernetes Job #152

Description

@ThomasK33

Goal: a CRD that creates a throwaway workspace from a template version, waits until its agent is healthy, records Succeeded or Failed, and deletes the workspace.

Uses: gate template promotion in GitOps (Argo CD and Flux read the condition); nightly template checks.

First slice: provisioning and agent health only. Running a command inside the workspace is a later, separate security slice.

Open points: cleanup after controller crashes (finalizer plus labels), timeouts, which Coder user owns the test workspace, cost of leaked workspaces.

Acceptance: envtest for the state machine and cleanup; Kind dogfood with a passing and a failing template; docs.

Owner: maintainer desk.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: medium

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementA proposed feature or improvement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions