mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
527 clear cache to handle deleting policies
This commit is contained in:
parent
a140406485
commit
1026fc5236
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ func (s *StatSync) updateStats() {
|
|||
for k, v := range s.cache.data {
|
||||
nameToStatus[k] = v
|
||||
}
|
||||
s.cache.data = make(map[string]v1.PolicyStatus)
|
||||
s.cache.mu.Unlock()
|
||||
|
||||
for policyName, status := range nameToStatus {
|
||||
|
|
Loading…
Reference in a new issue