The resource spec contents of spec PP and RB fields are always different. #5999
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
What happened:
When create pp and workload, pp sets the .spec.suspension.dispatching=true, and then .spec.suspension.dispatching=false , rb is always .spec.suspension.dispatching=true.
As shown in the code below, when the update event starts to be processed, if the creation event has not been completed, that is, rb has not been created, then resourceBindings will not be found, and the result is that the update content of pp will not be synchronized to rb.
karmada/pkg/detector/detector.go
Lines 1169 to 1191 in cf5def1
What you expected to happen:
The relevant fields in the spec of the PP and RB fields must ultimately be the same.
How to reproduce it (as minimally and precisely as possible):
create pp and resource template, set pp field .spec.suspension.dispatching=true, and then set .spec.suspension.dispatching=false, check check rb field .spec.suspension.dispatching.
Anything else we need to know?:
Environment:
v1.12
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: