Skip to content
Snippets Groups Projects
Unverified Commit b2d48181 authored by Neha Viswanathan's avatar Neha Viswanathan Committed by GitHub
Browse files

deprecate master and node subcommands (#812)

* deprecate master and node subcommands

* deprecate master and node subcommands
parent bc212129
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment