1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-18 12:48:08 +00:00
kube-bench/cmd
Liz Rice f2caa1f0ec
Add run subcommand (#529)
* test: fix TestGetConfigFilePath

This test wasn't correctly creating the test file due to the wrong directory permissions on the temp file. This wasn't detected due to a lack of error checking.

Also, the code was only checking for file not exist rather than lack of permission to read file (or any other error).

The combination of these two things means the test wasn't checking what it thought it was checking, and passed more by luck than judgment.

* add getYamlFilesFromDir

* add getTestYamlFiles and test

* docs: Update master / node help text

* return path + filename from getYamlFilesFromDir

* subcommand run to run specific section files
2019-12-02 15:40:44 +00:00
..
common_test.go Fixes issue #517: Determines Kubernetes version using the REST API (#518) 2019-11-12 13:47:42 -08:00
common.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
database.go Check error before deferring db.Close() (#491) 2019-11-05 20:17:03 -05:00
kubernetes_version_test.go Fixes issue #517: Determines Kubernetes version using the REST API (#518) 2019-11-12 13:47:42 -08:00
kubernetes_version.go Fixes issue #517: Determines Kubernetes version using the REST API (#518) 2019-11-12 13:47:42 -08:00
master.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
node.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
root.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
run_test.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
run.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
util_test.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
util.go Add run subcommand (#529) 2019-12-02 15:40:44 +00:00
version.go kube-bench: add version subcommand 2019-06-12 01:41:09 -07:00