Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BNQbenchmark = &benchmark.Benchmark{ Run: func(tenant string, tenantNamespace string, kclient, tclient *kubernetes.Clientset) (bool, error) { resources := []util.GroupResource{ { APIGroup: "", APIResource: metav1.APIResource{ Name: "resourcequotas", }, }, } verbs := []string{"create", "update", "patch", "delete", "deletecollection"} for _, resource := range resources { for _, verb := range verbs { access, msg, err := util.RunAccessCheck(tclient, tenantNamespace, resource, verb) if err != nil { fmt.Println(err.Error()) } if access { return false, fmt.Errorf(msg) } } } return true, nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.