Skip to content

fix: add AgentRuntime CRD to config/crd/kustomization.yaml#254

Open
Schimuneck wants to merge 1 commit intokagenti:mainfrom
Schimuneck:fix-agentruntime-crd-kustomization
Open

fix: add AgentRuntime CRD to config/crd/kustomization.yaml#254
Schimuneck wants to merge 1 commit intokagenti:mainfrom
Schimuneck:fix-agentruntime-crd-kustomization

Conversation

@Schimuneck
Copy link
Copy Markdown

Summary

The AgentRuntime CRD file (agent.kagenti.dev_agentruntimes.yaml) was added in PR #212 but never registered in config/crd/kustomization.yaml. This causes make deploy installations to crash on startup because the AgentRuntime controller can't sync its cache against a non-existent CRD:

no matches for kind "AgentRuntime" in version "agent.kagenti.dev/v1alpha1"
failed to wait for agentruntime caches to sync

Key change

One line added to config/crd/kustomization.yaml:

resources:
- bases/agent.kagenti.dev_agentcards.yaml
- bases/agent.kagenti.dev_agentruntimes.yaml  # ← added

Test plan

  • Fresh make deploy on Kind (Kubernetes 1.35.0) — operator starts cleanly, AgentRuntime controller registers and starts workers
  • Fresh kustomize deploy on OpenShift 4.19.24 (ROSA) — operator starts cleanly, AgentRuntime controller and validating webhook register
  • Both agentcards.agent.kagenti.dev and agentruntimes.agent.kagenti.dev CRDs applied by kustomize output
  • No CrashLoopBackOff — previously the operator would crash within ~90s due to cache sync timeout

Fixes #250

Signed-off-by: Matias Schimuneck mschimun@redhat.com

The AgentRuntime CRD file (agent.kagenti.dev_agentruntimes.yaml) was
added in PR kagenti#212 but never registered in config/crd/kustomization.yaml.
This causes `make deploy` installations to crash on startup because the
AgentRuntime controller can't sync its cache against a non-existent CRD.

Fixes kagenti#250

Signed-off-by: Matias Schimuneck <mschimun@redhat.com>
Made-with: Cursor
@Schimuneck Schimuneck requested a review from a team as a code owner March 27, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: AgentRuntime CRD missing from config/crd/kustomization.yaml

2 participants