You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when a yurtappoverrider instance is deleted, the cache data in CacheOverriderMap should also be removed. so we can add cache cleanup in the following code snippet.
if cacheOverrider, ok := r.CacheOverriderMap[instance.Namespace+"/"+instance.Name]; ok {
if reflect.DeepEqual(cacheOverrider.Entries, instance.Entries) {
return reconcile.Result{}, nil
}
}
r.CacheOverriderMap[instance.Namespace+"/"+instance.Name] = instance.DeepCopy()
Environment:
OpenYurt version: v1.4.0
Kubernetes version (use kubectl version):
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:
others
/kind bug
The text was updated successfully, but these errors were encountered:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
What happened:
CacheOverriderMap
should also be removed. so we can add cache cleanup in the following code snippet.openyurt/pkg/yurtmanager/controller/yurtappoverrider/yurtappoverrider_controller.go
Line 129 in 3636ec0
CacheOverriderMap
.openyurt/pkg/yurtmanager/controller/yurtappoverrider/yurtappoverrider_controller.go
Lines 162 to 168 in 3636ec0
so we can improve the up codes as following:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):others
/kind bug
The text was updated successfully, but these errors were encountered: