Policy doesn't work when match.resources.kinds
is set to Policy/ClusterPolicy
#2149
Labels
Milestone
match.resources.kinds
is set to Policy/ClusterPolicy
#2149
Software version numbers
Describe the bug
If we try to create a
ClusterPolicy
withmatch.resource.kinds
value set to eitherPolicy/ClusterPolicy
, the policy does not work. But if we updatekinds
fromPolicy/ClusterPolicy
to for examplePod
the policy will start working.To Reproduce
Steps to reproduce the behavior:
ClusterPolicy
Policy
to testClusterPolicy: deny-unauthorized-access
Policy: disallow-latest-tag
would be successfully createdExpected behavior
ClusterPolicy should have rejected the API request to create Policy
The text was updated successfully, but these errors were encountered: