Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BHIPCbenchmark = &benchmark.Benchmark{ Run: func(tenant string, tenantNamespace string, kclient, tclient *kubernetes.Clientset) (bool, error) { podSpec := &util.PodSpec{NS: tenantNamespace, HostIPC: true} err := podSpec.SetDefaults() if err != nil { return false, err } pod := util.MakeSecPod(*podSpec) _, err = tclient.CoreV1().Pods(tenantNamespace).Create(context.TODO(), pod, metav1.CreateOptions{DryRun: []string{metav1.DryRunAll}}) if err == nil { return false, fmt.Errorf("Tenant must be unable to create pod with HostIPC set to true") } return true, nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.