Versions in this module Expand all Collapse all v0 v0.0.3 Apr 15, 2022 v0.0.1 Apr 15, 2022 Changes in this version + func Eventf(eventType, reason, messageFmt string, args ...interface{}) string + func InduceFailure(verb, resource string) clientgotesting.ReactionFunc + func KeyOrDie(obj interface{}) string + func PrependGenerateNameReactor(f *clientgotesting.Fake) + func RunAndSyncInformers(ctx context.Context, informers ...controller.Informer) (func(), error) + func SetupFakeContext(t testing.TB, fs ...func(context.Context) context.Context) (context.Context, []controller.Informer) + func SetupFakeContextWithCancel(t testing.TB, fs ...func(context.Context) context.Context) (context.Context, context.CancelFunc, []controller.Informer) + func ValidateCreates(ctx context.Context, action clientgotesting.Action) (handled bool, ret runtime.Object, err error) + func ValidateUpdates(ctx context.Context, action clientgotesting.Action) (handled bool, ret runtime.Object, err error) + type ActionRecorder interface + Actions func() []clientgotesting.Action + type ActionRecorderList []ActionRecorder + func (l ActionRecorderList) ActionsByVerb() (Actions, error) + type Actions struct + Creates []clientgotesting.CreateAction + DeleteCollections []clientgotesting.DeleteCollectionAction + Deletes []clientgotesting.DeleteAction + Gets []clientgotesting.GetAction + Patches []clientgotesting.PatchAction + Updates []clientgotesting.UpdateAction + type CreateHookFunc func(runtime.Object) HookResult + func ExpectNormalEventDelivery(t *testing.T, messageRegexp string) CreateHookFunc + func ExpectWarningEventDelivery(t *testing.T, messageRegexp string) CreateHookFunc + type DeleteHookFunc func(string) HookResult + type EventList struct + Recorder *record.FakeRecorder + func (l EventList) Events() []string + type Factory func(*testing.T, *TableRow) (controller.Reconciler, ActionRecorderList, EventList) + type FakeTracker struct + func (*FakeTracker) OnChanged(interface{}) + func (n *FakeTracker) GetObservers(obj interface{}) []types.NamespacedName + func (n *FakeTracker) OnDeletedObserver(obj interface{}) + func (n *FakeTracker) References() []tracker.Reference + func (n *FakeTracker) Track(ref corev1.ObjectReference, obj interface{}) error + func (n *FakeTracker) TrackReference(ref tracker.Reference, obj interface{}) error + type GenerateNameReactor struct + func (r *GenerateNameReactor) Handles(action clientgotesting.Action) bool + func (r *GenerateNameReactor) React(action clientgotesting.Action) (handled bool, ret runtime.Object, err error) + type HookResult bool + const HookComplete + const HookIncomplete + type Hooks struct + func NewHooks() *Hooks + func (h *Hooks) OnCreate(fake *kubetesting.Fake, resource string, rf CreateHookFunc) + func (h *Hooks) OnDelete(fake *kubetesting.Fake, resource string, rf DeleteHookFunc) + func (h *Hooks) OnUpdate(fake *kubetesting.Fake, resource string, rf UpdateHookFunc) + func (h *Hooks) WaitForHooks(timeout time.Duration) error + type NullTracker = FakeTracker + type ObjectSorter struct + func NewObjectSorter(scheme *runtime.Scheme) ObjectSorter + func (o *ObjectSorter) AddObjects(objs ...runtime.Object) + func (o *ObjectSorter) IndexerForObjectType(obj runtime.Object) cache.Indexer + func (o *ObjectSorter) ObjectsForScheme(scheme *runtime.Scheme) []runtime.Object + func (o *ObjectSorter) ObjectsForSchemeFunc(funcs ...func(scheme *runtime.Scheme) error) []runtime.Object + type TableRow struct + CmpOpts []cmp.Option + Ctx context.Context + Key string + Name string + Objects []runtime.Object + OtherTestData map[string]interface{} + PostConditions []func(*testing.T, *TableRow) + Reconciler controller.Reconciler + SkipNamespaceValidation bool + WantCreates []runtime.Object + WantDeleteCollections []clientgotesting.DeleteCollectionActionImpl + WantDeletes []clientgotesting.DeleteActionImpl + WantErr bool + WantEvents []string + WantPatches []clientgotesting.PatchActionImpl + WantStatusUpdates []clientgotesting.UpdateActionImpl + WantUpdates []clientgotesting.UpdateActionImpl + WithReactors []clientgotesting.ReactionFunc + func (r *TableRow) Test(t *testing.T, factory Factory) + type TableTest []TableRow + func (tt TableTest) Test(t *testing.T, factory Factory) + type UpdateHookFunc func(runtime.Object) HookResult