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:
parent
bc21212980
commit
b2d481812f
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user