Add OPA examples on pathType restrictions (#9992)
This commit is contained in:
parent
8d9210fd38
commit
897783557a
7 changed files with 132 additions and 0 deletions
14
docs/examples/openpolicyagent/rule.yaml
Normal file
14
docs/examples/openpolicyagent/rule.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: constraints.gatekeeper.sh/v1beta1
|
||||
kind: K8sBlockIngressPathType
|
||||
metadata:
|
||||
name: implspecificisblocked
|
||||
spec:
|
||||
match:
|
||||
kinds:
|
||||
- apiGroups: ["networking.k8s.io"]
|
||||
kinds: ["Ingress"]
|
||||
parameters:
|
||||
namespacesExceptions:
|
||||
- "privileged"
|
||||
blockedTypes:
|
||||
- "ImplementationSpecific"
|
||||
Loading…
Add table
Add a link
Reference in a new issue