mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-01-03 04:10:55 +00:00
Remove installation flag and some other unused variables
This commit is contained in:
parent
de12829923
commit
c4be4a1240
14
cmd/root.go
14
cmd/root.go
@ -34,14 +34,6 @@ var (
|
|||||||
masterFile string
|
masterFile string
|
||||||
nodeFile string
|
nodeFile string
|
||||||
federatedFile string
|
federatedFile string
|
||||||
|
|
||||||
loud bool
|
|
||||||
|
|
||||||
kubeConfDir string
|
|
||||||
etcdConfDir string
|
|
||||||
flanneldConfDir string
|
|
||||||
|
|
||||||
installation string
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RootCmd represents the base command when called without any subcommands
|
// RootCmd represents the base command when called without any subcommands
|
||||||
@ -67,12 +59,6 @@ func init() {
|
|||||||
cobra.OnInitialize(initConfig)
|
cobra.OnInitialize(initConfig)
|
||||||
|
|
||||||
RootCmd.PersistentFlags().BoolVar(&jsonFmt, "json", false, "Prints the results as JSON")
|
RootCmd.PersistentFlags().BoolVar(&jsonFmt, "json", false, "Prints the results as JSON")
|
||||||
RootCmd.PersistentFlags().StringVar(
|
|
||||||
&installation,
|
|
||||||
"installation",
|
|
||||||
"default",
|
|
||||||
"Specify how kubernetes cluster was installed. Possible values are default,hyperkube,kops,kubeadm",
|
|
||||||
)
|
|
||||||
RootCmd.PersistentFlags().StringVarP(
|
RootCmd.PersistentFlags().StringVarP(
|
||||||
&checkList,
|
&checkList,
|
||||||
"check",
|
"check",
|
||||||
|
Loading…
Reference in New Issue
Block a user