-
Notifications
You must be signed in to change notification settings - Fork 0
/
benchmarks.go
38 lines (34 loc) · 1.76 KB
/
benchmarks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package benchmarks
import (
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_add_capabilities"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_bind_mounts"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_cluster_resources"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_host_ipc"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_host_net_ports"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_host_pid"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_nodeports"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_ns_quota"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_privilege_escalation"
"github.com/phoenixking25/kubectl-mtb/benchmarks/block_privileged_containers"
"github.com/phoenixking25/kubectl-mtb/benchmarks/require_run_as_non_root"
benchmarksuite "github.com/phoenixking25/kubectl-mtb/pkg/benchmarks_suite"
)
var BenchmarkSuite = &benchmarksuite.BenchmarkSuite{
Version: "1.0.0",
Title: "Multi-Tenancy Benchmarks",
}
func init() {
BenchmarkSuite.AddBenchmark(block_privileged_containers.BPCbenchmark)
BenchmarkSuite.AddBenchmark(block_cluster_resources.BCRbenchmark)
BenchmarkSuite.AddBenchmark(require_run_as_non_root.RRANRbenchmark)
BenchmarkSuite.AddBenchmark(block_add_capabilities.BACbenchmark)
BenchmarkSuite.AddBenchmark(block_host_ipc.BHIPCbenchmark)
BenchmarkSuite.AddBenchmark(block_host_pid.BHPIDbenchmark)
BenchmarkSuite.AddBenchmark(block_bind_mounts.BBMbenchmark)
BenchmarkSuite.AddBenchmark(block_host_net_ports.BHNPbenchmark)
BenchmarkSuite.AddBenchmark(block_nodeports.BNPbenchmark)
BenchmarkSuite.AddBenchmark(block_privilege_escalation.BPEbenchmark)
BenchmarkSuite.AddBenchmark(block_ns_quota.BNQbenchmark)
// Sort according to ID and ProfileLevel
BenchmarkSuite.SortBenchmarks()
}