Skip to content

Remove AgentBuild CRD references, replace with Shipwright - #622

Merged
pdettori merged 2 commits into
rossoctl:mainfrom
Ladas:remove-agentbuild
Feb 9, 2026
Merged

pdettori merged 2 commits into
rossoctl:mainfrom
Ladas:remove-agentbuild

Conversation

@Ladas

@Ladas Ladas commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove all AgentBuild CRD (agent.kagenti.dev/v1alpha1 AgentBuild) references from the codebase
  • Replace Kind CI build step with Shipwright Build/BuildRun (matching the agent build pattern in 74-deploy-weather-agent.sh)
  • Aligns with kagenti-operator PR #159 which removes the AgentBuild CRD from the operator

Changes (12 files, +75 -613)

CI Scripts:

  • 71-build-weather-tool.sh: Replace AgentBuild with Shipwright Build+BuildRun for Kind, add OpenShift BuildConfig path

Backend:

  • Remove deprecated get_agent_build_status endpoint, _build_agent_build_manifest(), _build_agent_manifest() functions
  • Remove useShipwright flag from CreateAgentRequest (Shipwright is now the only build path)
  • Remove AGENTBUILDS_PLURAL constant and agentbuilds_plural/use_shipwright_builds config settings
  • Remove AgentBuild cleanup from delete_agent

UI:

  • Remove getBuildStatus() from API service and useShipwright flag
  • Remove AgentBuild status query and Build Status card from AgentDetailPage
  • Remove useShipwright: true from ImportAgentPage

Helm:

Infrastructure:

  • Remove agentbuilds from Ansible cleanup script
  • Delete weather_tool_build.yaml AgentBuild example
  • Fix Shipwright tool example strategy name (buildah-insecure → buildah-insecure-push)

Test plan

  • pre-commit run --all-files passes (lint, ruff format, secrets scan)
  • Kind E2E CI validates Shipwright-based weather-tool build
  • Verify no remaining functional AgentBuild references (only docs/comments remain)

Related

🤖 Generated with Claude Code

AgentBuild CRD and Tekton pipeline-based builds are deprecated in favor
of Shipwright Build/BuildRun. This aligns with kagenti-operator PR rossoctl#159
which removes the AgentBuild CRD from the operator.

Changes:
- CI: Replace AgentBuild with Shipwright Build+BuildRun in Kind path
- Backend: Remove deprecated AgentBuild endpoint, creation flow, and
  manifest builders from agents router
- UI: Remove AgentBuild status query, build card, and useShipwright flag
- Helm: Remove agentbuilds from RBAC, add operator bump TODO
- Ansible: Remove agentbuilds from cleanup script
- Examples: Delete old AgentBuild manifest, fix Shipwright strategy name

Signed-off-by: Ladislav Smola <[email protected]>

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
The weather_tool_shipwright_buildrun.yaml had 3 YAML documents
separated by ---. kubectl create -f creates all 3 and concatenates
the generated names, producing an invalid BuildRun name like
"weather-tool-run-Xweather-tool-run-manualweather-tool-run-v2-Y".

Keep only the primary BuildRun document with generateName.

Signed-off-by: Ladislav Smola <[email protected]>

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
@Ladas
Ladas force-pushed the remove-agentbuild branch from 343db4f to cdf5a7f Compare February 6, 2026 17:19
@Ladas

Ladas commented Feb 6, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 6, 2026
@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: cdf5a7fe262ccbeea08861ae855f488200eca5f1
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: cdf5a7fe262ccbeea08861ae855f488200eca5f1
Result: All tests passed
Workflow Run: View logs

The safe-to-test label indicates this commit has been approved for E2E testing.


If you push new commits, the label will be removed and you'll need to comment /run-e2e again.

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@pdettori
pdettori merged commit e31faec into rossoctl:main Feb 9, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe-to-test Maintainer reviewed - safe to run E2E tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants