aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/src/check/check.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/security/k8s/src/check/check.go')
-rw-r--r--test/security/k8s/src/check/check.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/security/k8s/src/check/check.go b/test/security/k8s/src/check/check.go
index 728be18ff..91e9e5fd2 100644
--- a/test/security/k8s/src/check/check.go
+++ b/test/security/k8s/src/check/check.go
@@ -39,31 +39,3 @@ func (c Command) String() string {
}
return names[c]
}
-
-// Service represents services run on Rancher-based cluster.
-type Service int
-
-const (
- // APIService represents API server service ("kubernetes/kubernetes").
- APIService Service = iota
- // SchedulerService represents scheduler service ("kubernetes/scheduler").
- SchedulerService
- // ControllerManagerService represents controller manager service ("kubernetes/controller-manager").
- ControllerManagerService
- // EtcdService represents etcd service ("kubernetes/etcd").
- EtcdService
-)
-
-func (s Service) String() string {
- names := [...]string{
- "kubernetes/kubernetes",
- "kubernetes/scheduler",
- "kubernetes/controller-manager",
- "kubernetes/etcd",
- }
-
- if s < APIService || s > EtcdService {
- return ""
- }
- return names[s]
-}