@@ -165,6 +165,7 @@ func (c *Collector) Collect(ctx context.Context) {
165
165
EgressMTLSPolicies : int64 (report .EgressMTLSCount ),
166
166
OIDCPolicies : int64 (report .OIDCCount ),
167
167
WAFPolicies : int64 (report .WAFCount ),
168
+ CachePolicies : int64 (report .CacheCount ),
168
169
GlobalConfiguration : report .GlobalConfiguration ,
169
170
IngressAnnotations : report .IngressAnnotations ,
170
171
AppProtectVersion : report .AppProtectVersion ,
@@ -219,6 +220,7 @@ type Report struct {
219
220
EgressMTLSCount int
220
221
OIDCCount int
221
222
WAFCount int
223
+ CacheCount int
222
224
GlobalConfiguration bool
223
225
IngressAnnotations []string
224
226
AppProtectVersion string
@@ -297,6 +299,7 @@ func (c *Collector) BuildReport(ctx context.Context) (Report, error) {
297
299
egressMTLSCount int
298
300
oidcCount int
299
301
wafCount int
302
+ cacheCount int
300
303
)
301
304
// Collect Custom Resources (Policies) only if CR enabled at startup.
302
305
if c .Config .CustomResourcesEnabled {
@@ -312,6 +315,7 @@ func (c *Collector) BuildReport(ctx context.Context) (Report, error) {
312
315
egressMTLSCount = policies ["EgressMTLS" ]
313
316
oidcCount = policies ["OIDC" ]
314
317
wafCount = policies ["WAF" ]
318
+ cacheCount = policies ["Cache" ]
315
319
}
316
320
317
321
ingressAnnotations := c .IngressAnnotations ()
@@ -374,6 +378,7 @@ func (c *Collector) BuildReport(ctx context.Context) (Report, error) {
374
378
EgressMTLSCount : egressMTLSCount ,
375
379
OIDCCount : oidcCount ,
376
380
WAFCount : wafCount ,
381
+ CacheCount : cacheCount ,
377
382
GlobalConfiguration : c .Config .GlobalConfiguration ,
378
383
IngressAnnotations : ingressAnnotations ,
379
384
AppProtectVersion : appProtectVersion ,
0 commit comments