Skip to content

Commit

Permalink
remove controllerrevision
Browse files Browse the repository at this point in the history
Signed-off-by: David Wertenteil <dwertent@armosec.io>
  • Loading branch information
dwertent committed Aug 6, 2023
1 parent 693cb02 commit 445a068
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 97 deletions.
1 change: 0 additions & 1 deletion controls/C-0212-thedefaultnamespaceshouldnotbeused.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"resourcequota-in-default-namespace",
"service-in-default-namespace",
"serviceaccount-in-default-namespace",
"controllerrevision-in-default-namespace",
"endpointslice-in-default-namespace",
"horizontalpodautoscaler-in-default-namespace",
"lease-in-default-namespace",
Expand Down
71 changes: 71 additions & 0 deletions exceptions/k8s-system.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[
{
"name": "system-resources",
"policyType": "postureExceptionPolicy",
"actions": [
"alertOnly"
],
"attributes": {
"systemException": true
},
"resources": [
{
"designatorType": "Attributes",
"attributes": {
"namespace": "kube-system"
}
},
{
"designatorType": "Attributes",
"attributes": {
"namespace": "kube-public"
}
},
{
"designatorType": "Attributes",
"attributes": {
"namespace": "kube-node-lease"
}
}
],
"posturePolicies": [
{}
]
},
{
"name": "exclude-system-namespaces",
"policyType": "postureExceptionPolicy",
"actions": [
"alertOnly"
],
"attributes": {
"systemException": true
},
"resources": [
{
"designatorType": "Attributes",
"attributes": {
"kind": "Namespace",
"name": "kube-system"
}
},
{
"designatorType": "Attributes",
"attributes": {
"kind": "Namespace",
"name": "kube-public"
}
},
{
"designatorType": "Attributes",
"attributes": {
"kind": "Namespace",
"name": "kube-node-lease"
}
}
],
"posturePolicies": [
{}
]
}
]
40 changes: 0 additions & 40 deletions rules/controllerrevision-in-default-namespace/raw.rego

This file was deleted.

25 changes: 0 additions & 25 deletions rules/controllerrevision-in-default-namespace/rule.metadata.json

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 445a068

Please sign in to comment.