New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource template cannot be reconciled again due to cache modification #3878
Comments
/assign |
karmada/pkg/detector/detector.go Line 1139 in a2dc2e8
Do you mean here actually updates the cache? |
here, karmada/pkg/detector/detector.go Line 1131 in d916d87
|
Yeah I get it, It mistakenly updated the cache, but I still don't understand why the update event would be ignored. |
it's ignored by the function karmada/pkg/detector/detector.go Lines 306 to 309 in 946fc72
it removes uncessary fields and calls reflect.DeepEqual to compare if the remaining fields actually changed.karmada/pkg/detector/eventfilter.go Lines 9 to 23 in 946fc72
|
Do you mean |
yes |
Thanks. That makes sense now. |
What happened:
I deleted propagation policy
default/test-pp
to unbind from configmapdefault/test-cm
, but find that configmapdefault/test-cm
cannot be reconciled again.that means configmap
default/test-cm
cannot be matched by new propagation policydefault/test-pp-1
.What you expected to happen:
configmap
default/test-cm
can be matched by new propagation policydefault/test-pp-1
.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
detector
deletes directly policy labels from cached resource template.karmada/pkg/detector/detector.go
Lines 1117 to 1131 in d916d87
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: