const qps …
const eventKind …
const nonEventKind …
func attributesForRequest(rq request) admission.Attributes { … }
type request …
func newRequest(kind string) request { … }
func newEventRequest() request { … }
func newNonEventRequest() request { … }
func (r request) withNamespace(namespace string) request { … }
func (r request) withEvent(event *api.Event) request { … }
func (r request) withEventComponent(component string) request { … }
func (r request) withDryRun(dryRun bool) request { … }
func (r request) withUser(name string) request { … }
func (r request) blocked() request { … }
func (r request) withDelay(delayInSeconds int) request { … }
func createSourceAndObjectKeyInclusionRequests(eventFactory func(label string) *api.Event) []request { … }
func TestEventRateLimiting(t *testing.T) { … }