@@ -165,6 +165,7 @@ func (c *Collector) Collect(ctx context.Context) {
165165			EgressMTLSPolicies :         int64 (report .EgressMTLSCount ),
166166			OIDCPolicies :               int64 (report .OIDCCount ),
167167			WAFPolicies :                int64 (report .WAFCount ),
168+ 			CachePolicies :              int64 (report .CacheCount ),
168169			GlobalConfiguration :        report .GlobalConfiguration ,
169170			IngressAnnotations :         report .IngressAnnotations ,
170171			AppProtectVersion :          report .AppProtectVersion ,
@@ -219,6 +220,7 @@ type Report struct {
219220	EgressMTLSCount          int 
220221	OIDCCount                int 
221222	WAFCount                 int 
223+ 	CacheCount               int 
222224	GlobalConfiguration      bool 
223225	IngressAnnotations       []string 
224226	AppProtectVersion        string 
@@ -297,6 +299,7 @@ func (c *Collector) BuildReport(ctx context.Context) (Report, error) {
297299		egressMTLSCount          int 
298300		oidcCount                int 
299301		wafCount                 int 
302+ 		cacheCount               int 
300303	)
301304	// Collect Custom Resources (Policies) only if CR enabled at startup. 
302305	if  c .Config .CustomResourcesEnabled  {
@@ -312,6 +315,7 @@ func (c *Collector) BuildReport(ctx context.Context) (Report, error) {
312315		egressMTLSCount  =  policies ["EgressMTLS" ]
313316		oidcCount  =  policies ["OIDC" ]
314317		wafCount  =  policies ["WAF" ]
318+ 		cacheCount  =  policies ["Cache" ]
315319	}
316320
317321	ingressAnnotations  :=  c .IngressAnnotations ()
@@ -374,6 +378,7 @@ func (c *Collector) BuildReport(ctx context.Context) (Report, error) {
374378		EgressMTLSCount :         egressMTLSCount ,
375379		OIDCCount :               oidcCount ,
376380		WAFCount :                wafCount ,
381+ 		CacheCount :              cacheCount ,
377382		GlobalConfiguration :     c .Config .GlobalConfiguration ,
378383		IngressAnnotations :      ingressAnnotations ,
379384		AppProtectVersion :       appProtectVersion ,
0 commit comments