feat: init commit
This commit is contained in:
8
crates/burrego/examples/opa/no-default-namespace.rego
Normal file
8
crates/burrego/examples/opa/no-default-namespace.rego
Normal file
@@ -0,0 +1,8 @@
|
||||
package kubernetes.admission
|
||||
|
||||
# RBAC alone would suffice here, but we create a policy just to show
|
||||
# how it can be done as well.
|
||||
deny[msg] {
|
||||
input.request.object.metadata.namespace == "default"
|
||||
msg := "you cannot use the default namespace"
|
||||
}
|
||||
Reference in New Issue
Block a user