diff options
author | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2019-10-07 17:00:49 +0200 |
---|---|---|
committer | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2020-01-29 17:14:53 +0100 |
commit | f649f22f8e4ec272fff3d806f8e4ba9b82ec7b4d (patch) | |
tree | bc796efda6b6a01582cb83396d4949e040d99e6f /test/security/k8s/src/check/raw | |
parent | e5766d0eaa2441cbd1d52c8082442a689b752874 (diff) |
k8s: Mock etcd information collection
Rancher does not provide information on etcd as container arguments.
Its collection requires implementation of a new information extraction
method.
RKE does not include etcd process name in container arguments.
Issue-ID: SECCOM-235
Change-Id: I7576474fb2848962360771d2850aeb3f3869790a
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s/src/check/raw')
-rw-r--r-- | test/security/k8s/src/check/raw/raw.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/security/k8s/src/check/raw/raw.go b/test/security/k8s/src/check/raw/raw.go index 555115950..eea5c01d2 100644 --- a/test/security/k8s/src/check/raw/raw.go +++ b/test/security/k8s/src/check/raw/raw.go @@ -46,6 +46,12 @@ func (r *Raw) GetControllerManagerParams() ([]string, error) { return getProcessParams(check.ControllerManagerProcess) } +// GetEtcdParams returns parameters of running etcd. +// It queries only cluster nodes with "controlplane" role. +func (r *Raw) GetEtcdParams() ([]string, error) { + return []string{}, check.ErrNotImplemented +} + func getProcessParams(process check.Command) ([]string, error) { nodes, err := config.GetNodesInfo() if err != nil { |