fix(kubernetes): register non-DinD runners with host-type labels #36
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/non-dind-host-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A non-privileged pool has no DinD sidecar and therefore no Docker daemon, yet
the operator registered its labels bare (e.g. "trusted,gllm"). Forgejo treats a
bare label as Docker-executed, so the runner demanded a daemon at startup and
crashlooped with "daemon Docker Engine socket not found and docker_host config
was invalid".
The v0.4.0 change tried to address this via docker_host "-", but that value
does not disable Docker — it is forgejo-runner's default "find a host
automatically", which is exactly what failed. The real lever is the label type:
a ":host" label runs the job on the runner container and never requires Docker.
Register non-privileged pools' labels as ":host"; privileged (DinD) pools
keep bare labels and run jobs in Docker against the sidecar. Correct the
misleading docker_host comment and the test that repeated the wrong rationale,
and assert the label type for both pool kinds.
Existing non-DinD pools must re-register (delete and recreate) to pick up the
host labels, since registration is cached in the runner's .runner file.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Automated review by pr-reviewer v0.29.1 | Safety Check | Mistral Small | tracking id
r-3ddb43-8f1a68This is an AI-generated review and may contain mistakes.
Status: ❌ Failed
Review failed. Tracking id
r-3ddb43-8f1a68— see logs for details.Comment
@pr-reviewer-bot retryto try again.218140e979ad2cd83a52Automated review by pr-reviewer v0.29.1 | Safety Check | Mistral Small | tracking id
r-3e185a-022c24This is an AI-generated review and may contain mistakes.
Status: ❌ Failed
Review failed. Tracking id
r-3e185a-022c24— see logs for details.Comment
@pr-reviewer-bot retryto try again.Automated review by pr-reviewer v0.29.1 | Safety Check | Mistral Small | tracking id
r-3e1876-c669c4This is an AI-generated review and may contain mistakes.
Status: ❌ Failed
Review failed. Tracking id
r-3e1876-c669c4— see logs for details.Comment
@pr-reviewer-bot retryto try again.