aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/src/check/rancher/rancher.go
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-09-27 18:26:13 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2019-09-27 18:54:30 +0200
commit5a61d615fe1c05487c26c32b2e8e4416f6cbb421 (patch)
tree0946f05a67fddc552ba5b807503784fa323cd40f /test/security/k8s/src/check/rancher/rancher.go
parent744f732b177c2449ab3ac2ee0ed8fa316122f393 (diff)
k8s: Add controller manager information collection
Issue-ID: SECCOM-235 Change-Id: Ieceb6337f935e6a5a6b94248ccf072229116510a Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s/src/check/rancher/rancher.go')
-rw-r--r--test/security/k8s/src/check/rancher/rancher.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/security/k8s/src/check/rancher/rancher.go b/test/security/k8s/src/check/rancher/rancher.go
index 41f3c38e2..842fd3ff6 100644
--- a/test/security/k8s/src/check/rancher/rancher.go
+++ b/test/security/k8s/src/check/rancher/rancher.go
@@ -40,6 +40,12 @@ func (r *Rancher) GetSchedulerParams() ([]string, error) {
return getProcessParams(check.SchedulerProcess, check.SchedulerService)
}
+// GetControllerManagerParams returns parameters of running Kubernetes scheduler.
+// It queries default environment set in configuration file.
+func (r *Rancher) GetControllerManagerParams() ([]string, error) {
+ return getProcessParams(check.ControllerManagerProcess, check.ControllerManagerService)
+}
+
func getProcessParams(process check.Command, service check.Service) ([]string, error) {
hosts, err := listHosts()
if err != nil {