deprecate master and node subcommands (#812)

* deprecate master and node subcommands

* deprecate master and node subcommands
pull/831/head
Neha Viswanathan 3 years ago committed by GitHub
parent bc21212980
commit b2d481812f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,6 +37,7 @@ var masterCmd = &cobra.Command{
runChecks(check.MASTER, filename)
writeOutput(controlsCollection)
},
Deprecated: "this command will be retired soon. Please use the `run` command with `--targets=master` instead.",
}
func init() {

@ -37,6 +37,7 @@ var nodeCmd = &cobra.Command{
runChecks(check.NODE, filename)
writeOutput(controlsCollection)
},
Deprecated: "this command will be retired soon. Please use the `run` command with `--targets=node` instead.",
}
func init() {

@ -16,7 +16,7 @@ spec:
containers:
- name: kube-bench
image: aquasec/kube-bench:latest
command: ["kube-bench", "master"]
command: ["kube-bench", "run", "--targets=master"]
volumeMounts:
- name: var-lib-etcd
mountPath: /var/lib/etcd

@ -10,7 +10,7 @@ spec:
containers:
- name: kube-bench
image: aquasec/kube-bench:latest
command: ["kube-bench", "node"]
command: ["kube-bench", "run", "--targets=node"]
volumeMounts:
- name: var-lib-kubelet
mountPath: /var/lib/kubelet

Loading…
Cancel
Save