mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
Merge pull request #3 from fjogeleit/development
Fix missing caching update
This commit is contained in:
commit
7e70ec672d
2 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,8 @@ func (m ClusterPolicyReportMetrics) GenerateMetrics() {
|
|||
).
|
||||
Set(1)
|
||||
}
|
||||
|
||||
m.cachedReport(report)
|
||||
case watch.Deleted:
|
||||
policyGauge.WithLabelValues(report.Name, "Pass").Set(0)
|
||||
policyGauge.WithLabelValues(report.Name, "Fail").Set(0)
|
||||
|
|
|
@ -102,6 +102,8 @@ func (m PolicyReportMetrics) GenerateMetrics() {
|
|||
).
|
||||
Set(1)
|
||||
}
|
||||
|
||||
m.cachedReport(report)
|
||||
case watch.Deleted:
|
||||
policyGauge.WithLabelValues(report.Namespace, report.Name, "Pass").Set(0)
|
||||
policyGauge.WithLabelValues(report.Namespace, report.Name, "Fail").Set(0)
|
||||
|
|
Loading…
Reference in a new issue