1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-22 06:38:06 +00:00

No need to load config just to check if components are running.

This also allows for there to be no master.yaml file, for environments where such a thing doesn’t need to exist
This commit is contained in:
Liz Rice 2019-04-11 18:28:08 +01:00
parent 596dae03d9
commit de623220e1
No known key found for this signature in database
GPG Key ID: 837476CA214296CB

View File

@ -199,7 +199,6 @@ func loadConfig(nodetype check.NodeType) string {
// isMaster verify if master components are running on the node.
func isMaster() bool {
_ = loadConfig(check.MASTER)
glog.V(2).Info("Checking if the current node is running master components")
masterConf := viper.Sub(string(check.MASTER))
components, err := getBinaries(masterConf)