flowchart TB
subgraph ide1 [policy/validate.go]
A["validateKinds(..), Background scanning not allowed for subresources"]
end
subgraph ide2 [dclient/discovery.go]
A --> C["FindResource(..)"] --- D["Iterate over server resources, support for subresources added"]
end
subgraph ide3 [policycache/cache.go]
E["Adds policy to the cache store"] --- F["Set(..., client dclient.Interface)"] -- policy matches subresources --> C
end
ide1 --> G["Updating ValidatingWebhookConfiguration"] --> H{{Now Requests matching the webhook are accepted}} --> I[Get policies based on the Kind of Subresource] -...-> ide4
subgraph ide4 [engine/utils.go]
J["checkKind(client dclient.Interface, ....)"] -- policy matches subresources --> C
end
ide4 --> K["Process Validation Rule"]
K --> L[Pass]
K --> M[Fail]
style L fill:green
style M fill:red