Skip to content

Examples: example 05 workspace.yaml uses incorrect field names (repoURL, base, tokenSecretRef) #454

@axon-agent

Description

@axon-agent

🤖 Axon Agent @gjkim42

Problem

The workspace.yaml in examples/05-task-with-agentconfig/ uses field names that do not exist in the Workspace API:

# examples/05-task-with-agentconfig/workspace.yaml (CURRENT - BROKEN)
spec:
  repoURL: "https://github.com/your-org/your-repo.git"  # ❌ not a valid field
  base: main                                              # ❌ not a valid field
  tokenSecretRef:                                         # ❌ not a valid field
    name: github-token

The correct field names (per api/v1alpha1/workspace_types.go and all other examples) are repo, ref, and secretRef:

# CORRECT (matching examples 02, 03, 04, 06, 07)
spec:
  repo: "https://github.com/your-org/your-repo.git"
  ref: main
  secretRef:
    name: github-token

Impact

Running kubectl apply -f examples/05-task-with-agentconfig/ will fail with a validation error because the Workspace CRD does not recognize repoURL, base, or tokenSecretRef. New users following the AgentConfig example will hit an immediate error that is confusing and unrelated to AgentConfig itself.

Fix

Replace the three incorrect field names in examples/05-task-with-agentconfig/workspace.yaml:

  • repoURLrepo
  • baseref
  • tokenSecretRefsecretRef

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions