Skip to content

docs: document taskTemplate.metadata and upstreamRepo fields#1128

Merged
gjkim42 merged 1 commit into
mainfrom
kelos-task-1126
May 13, 2026
Merged

docs: document taskTemplate.metadata and upstreamRepo fields#1128
gjkim42 merged 1 commit into
mainfrom
kelos-task-1126

Conversation

@kelos-bot
Copy link
Copy Markdown

@kelos-bot kelos-bot Bot commented May 12, 2026

What type of PR is this?

/kind docs

What this PR does / why we need it:

Adds reference entries to docs/reference.md for three spec.taskTemplate fields that are implemented and in active use but were undocumented:

  • spec.taskTemplate.metadata.labels — labels merged into spawned Tasks, with Go template variable support. Notes the reserved kelos.dev/taskspawner label.
  • spec.taskTemplate.metadata.annotations — annotations merged into spawned Tasks, with Go template variable support. Notes that source annotations override conflicting user values.
  • spec.taskTemplate.upstreamRepo — upstream repo injected as KELOS_UPSTREAM_REPO into the agent container; typically auto-derived but can be set explicitly for fork workflows.

The metadata field already appears in examples/10-taskspawner-github-webhook/taskspawner.yaml, so this fills a documentation gap users would hit when following that example.

Which issue(s) this PR is related to:

Fixes #1126

Special notes for your reviewer:

Documentation-only change. Field semantics were taken from api/v1alpha1/taskspawner_types.go (TaskTemplateMetadata and UpstreamRepo godoc).

Does this PR introduce a user-facing change?

Document the previously undocumented `spec.taskTemplate.metadata.labels`, `spec.taskTemplate.metadata.annotations`, and `spec.taskTemplate.upstreamRepo` fields in the TaskSpawner reference.

Summary by cubic

Documents the missing TaskSpawner fields spec.taskTemplate.metadata.labels, spec.taskTemplate.metadata.annotations, and spec.taskTemplate.upstreamRepo in docs/reference.md. Clarifies template variable support, the reserved kelos.dev/taskspawner label and source-annotation precedence, and that upstreamRepo is injected as KELOS_UPSTREAM_REPO (useful for fork workflows).

Written for commit f19bdf2. Summary will update on new commits.

Add reference entries for spec.taskTemplate.metadata.labels,
spec.taskTemplate.metadata.annotations, and spec.taskTemplate.upstreamRepo
so users can discover these fields without reading the API source.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kelos-bot[bot] has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@gjkim42 gjkim42 added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit 6aa39a2 May 13, 2026
38 checks passed
@gjkim42 gjkim42 deleted the kelos-task-1126 branch May 13, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: spec.taskTemplate.metadata (labels/annotations) and spec.taskTemplate.upstreamRepo undocumented

1 participant