module Kubescape
Defined in:
tasks/utils/kubescape.crClass Method Summary
- .alerts_by_test(test_json)
- .description(test_json)
- .description_by_test_name(results_json, test_name)
- .parse(results_file = "kubescape_results.json")
- .remediation(test_json)
- .remediation_by_test_name(results_json, test_name)
-
.scan(cmd = "framework nsa --use-from ./tools/kubescape/nsa.json --exclude-namespaces kube-system,kube-public --format json --output kubescape_results.json")
kubescape scan framework nsa --exclude-namespaces kube-system,kube-public
- .score(test_json)
- .score_by_test_name(results_json, test_name)
- .test_by_test_name(results_json, test_name)
- .test_passed?(test_json)
Class Method Detail
def self.scan(cmd = "framework nsa --use-from ./tools/kubescape/nsa.json --exclude-namespaces kube-system,kube-public --format json --output kubescape_results.json")
#
kubescape scan framework nsa --exclude-namespaces kube-system,kube-public