const SandboxRuntimeClass … const SandboxRuntimeHandler … const EmptyRuntimeClass … // NewPopulatedClient creates a fake client for use with the runtimeclass.Manager, // and populates it with a few test RuntimeClass objects. func NewPopulatedClient() clientset.Interface { … } // StartManagerSync starts the manager, and waits for the informer cache to sync. // Returns a function to stop the manager, which should be called with a defer: // // defer StartManagerSync(t, m)() func StartManagerSync(m *runtimeclass.Manager) func() { … } // NewRuntimeClass is a helper to generate a RuntimeClass resource with // the given name & handler. func NewRuntimeClass(name, handler string) *nodev1.RuntimeClass { … }