From b2d481812f04123b447653b47e5a540e0a2ce11e Mon Sep 17 00:00:00 2001 From: Neha Viswanathan <12013126+neha-viswanathan@users.noreply.github.com> Date: Tue, 23 Feb 2021 06:23:55 -0800 Subject: [PATCH] deprecate master and node subcommands (#812) * deprecate master and node subcommands * deprecate master and node subcommands --- cmd/master.go | 1 + cmd/node.go | 1 + job-master.yaml | 2 +- job-node.yaml | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/master.go b/cmd/master.go index 5b345e9..e8db8e3 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 707bff6..4eb13db 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 ad6be40..4154506 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 7160f4a..6d4bbce 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