Skip to content

kro: instance in ERROR with “schema not found for field”

GitOpstested on kro 0.10.0 auf k3s v1.37.2+k3s1

After extending the RGD with new status fields, an existing instance suddenly shows ERROR. The CRD is correct – only the kro controller still works with the schema in its memory.

Symptom

kubectl -n app get notesapp
NAME    REPLICAS   AVAILABLE   PORT    STATE
notes   1          1           30080   ERROR

Alternatively it shows IN_PROGRESS and ACTIVE after a minute – the error does not occur every time.

Diagnosis

The Ready condition names the missing field.

kubectl -n app get notesapp notes \
  -o jsonpath='{.status.conditions[?(@.type=="Ready")].message}{"\n"}'
graph-engine build failed: rgdadapter: compile: build node "instance": parse patch
payload: error getting field schema for path status.database: schema not found for
field database

Causes

neue Status-Felderkro works with the CRD's old schema

When an RGD gets new status fields while instances already exist, the controller in kro 0.10.0 sometimes keeps working with the old schema. The CRD itself is correct; only kro holds the old version in memory.

Fix

Restart the kro controller; it loads the current schema. The instance moves through IN_PROGRESS to ACTIVE.
kubectl -n kro-system rollout restart deploy/kro
kubectl -n kro-system rollout status deploy/kro
kubectl -n app get notesapp -w
deployment.apps/kro restarted
deployment "kro" successfully rolled out
NAME    REPLICAS   AVAILABLE   PORT    STATE
notes   1                              IN_PROGRESS
notes   1          1           30080   ACTIVE

Don't: Deleting and recreating the instance. With an RGD that includes a database you may lose the data, and the problem returns with the next instance.

▶
Break it yourself and find it – free
kro hands-on, day 6: a Postgres database in the NotesApp, status fields and a quirk of kro 0.10.0.
Go to day 6 →

FAQ

Is the CRD broken?

No. The CRD has the new fields; only the running controller does not know them yet.

How do I recognise the pattern quickly?

New status fields in the RGD, instances in ERROR, message schema not found for field – then restart the controller.

Related error patterns

More