diff --git a/cmd/master.go b/cmd/master.go index 5b345e98da655f624e271335c649147f7f411502..e8db8e3c0581541c787e679d81024edef6c5d15d 100644 --- a/cmd/master.go +++ b/cmd/master.go @@ -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() { diff --git a/cmd/node.go b/cmd/node.go index 707bff66dc3fe4572be44a9ba39e333616fddea0..4eb13db8ffd276b2ec9350b5412950ed9b60f18d 100644 --- a/cmd/node.go +++ b/cmd/node.go @@ -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() { diff --git a/job-master.yaml b/job-master.yaml index ad6be4037dc82e417feeb06747512a6bcb5979c7..415450670f0b31aa32c0930e026358787fb38581 100644 --- a/job-master.yaml +++ b/job-master.yaml @@ -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 diff --git a/job-node.yaml b/job-node.yaml index 7160f4ad13627d9cecdffa8846a0a72223db8f11..6d4bbcee55b6b3cf261b547eba032724e08e05fe 100644 --- a/job-node.yaml +++ b/job-node.yaml @@ -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