bug: syncedResources
state should be Pending when APIResourceImport is missing
#28
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
Describe the bug
The SyncTarget reconciler sets the
syncedResources
state (for a given resource) toIncompatible
when no corresponding APIResourceImport object is found. TheIncompatible
state indicates the resource schema is incompatible with the physical cluster schema, which I think in this case is wrong. ThePending
state is better as it indicates the syncer was not able to report compatibility of the resource yet.This line of code should be changed: https://github.com/kcp-dev/kcp/blob/main/pkg/reconciler/workload/synctargetexports/synctargetcompatible_reconcile.go#L118
Steps To Reproduce
Create a SyncTarget.
Expected Behaviour
Set state to Pending.
Additional Context
No response
The text was updated successfully, but these errors were encountered: