1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-19 13:18:07 +00:00

deprecate master and node subcommands (#812)

* deprecate master and node subcommands

* deprecate master and node subcommands
This commit is contained in:
Neha Viswanathan 2021-02-23 06:23:55 -08:00 committed by GitHub
parent bc21212980
commit b2d481812f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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