|
|
@ -16,6 +16,7 @@ package cmd
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"os"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/aquasecurity/kube-bench/check"
|
|
|
|
"github.com/aquasecurity/kube-bench/check"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
@ -36,6 +37,7 @@ var masterCmd = &cobra.Command{
|
|
|
|
filename := loadConfig(check.MASTER, bv)
|
|
|
|
filename := loadConfig(check.MASTER, bv)
|
|
|
|
runChecks(check.MASTER, filename, detecetedKubeVersion)
|
|
|
|
runChecks(check.MASTER, filename, detecetedKubeVersion)
|
|
|
|
writeOutput(controlsCollection)
|
|
|
|
writeOutput(controlsCollection)
|
|
|
|
|
|
|
|
os.Exit(exitCodeSelection(controlsCollection))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Deprecated: "this command will be retired soon. Please use the `run` command with `--targets=master` instead.",
|
|
|
|
Deprecated: "this command will be retired soon. Please use the `run` command with `--targets=master` instead.",
|
|
|
|
}
|
|
|
|
}
|
|
|
|