We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917bb41 commit d02d232Copy full SHA for d02d232
internal/mode/static/telemetry/collector.go
@@ -201,9 +201,9 @@ func collectGraphResourceCount(
201
ngfResourceCounts.BackendTLSPolicyCount = int64(len(g.BackendTLSPolicies))
202
203
for policyKey, policy := range g.NGFPolicies {
204
- switch gvk := policyKey.GVK; gvk.Kind {
+ switch policyKey.GVK.Kind {
205
case kinds.ClientSettingsPolicy:
206
- if policy.TargetRefs == nil {
+ if len(policy.TargetRefs) == 0 {
207
continue
208
}
209
0 commit comments