1
0
Fork 0
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:
shravan 2020-02-25 00:07:13 +05:30
parent a140406485
commit 1026fc5236

View file

@ -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 {