Skip to content

Commit

Permalink
Removing crd from related objects
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Schendel <[email protected]>
  • Loading branch information
amitschendel committed Jul 21, 2024
1 parent a7da61b commit 432ea94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
1 change: 0 additions & 1 deletion rules/unauthenticated-service/raw.rego
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ deny contains msga if {
"alertObject": {"k8sApiObjects": [wl]},
"relatedObjects": [
{"object": service},
{"object": service_scan_result},
],
}
}
Expand Down
31 changes: 0 additions & 31 deletions rules/unauthenticated-service/test/fail_service/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,6 @@
}
},
"reviewPaths": null
},
{
"deletePaths": null,
"failedPaths": null,
"fixPaths": null,
"object": {
"apiVersion": "kubescape.io/v1",
"kind": "ServiceScanResult",
"metadata": {
"creationTimestamp": "2024-07-03T04:40:17Z",
"generation": 4,
"name": "operator",
"namespace": "kubescape",
"resourceVersion": "2772",
"uid": "24dc622d-ee78-40c2-8654-2a5604715f95"
},
"spec": {
"clusterIP": "10.103.207.220",
"ports": [
{
"applicationLayer": "",
"authenticated": false,
"port": 4002,
"presentationLayer": "http",
"protocol": "TCP",
"sessionLayer": "tcp"
}
]
}
},
"reviewPaths": null
}
],
"reviewPaths": ["spec"],
Expand Down

0 comments on commit 432ea94

Please sign in to comment.