Skip to content

Commit

Permalink
Merge pull request #3 from fjogeleit/development
Browse files Browse the repository at this point in the history
Fix missing caching update
  • Loading branch information
fjogeleit authored Feb 20, 2021
2 parents 8273da9 + 8cf6013 commit 7e70ec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/metrics/cluster_policy_report_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions pkg/metrics/policy_report_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e70ec6

Please sign in to comment.