testhelpers

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncWaitingReconciler added in v0.0.1

func SyncWaitingReconciler(informerFactory externalversions.SharedInformerFactory, reconciler knCtrl.Reconciler, hasSynced ...func() bool) knCtrl.Reconciler

Types

type CallCounter added in v0.0.2

type CallCounter struct {
	// contains filtered or unexported fields
}

func (*CallCounter) Reactor added in v0.0.2

func (c *CallCounter) Reactor(action testing.Action) (handled bool, ret runtime.Object, err error)

func (*CallCounter) UpdateCalls added in v0.0.2

func (c *CallCounter) UpdateCalls() int

type Listers

type Listers struct {
	// contains filtered or unexported fields
}

func NewListers

func NewListers(objs []runtime.Object) Listers

func (*Listers) BuildServiceObjects

func (l *Listers) BuildServiceObjects() []runtime.Object

func (*Listers) GetBuildLister

func (l *Listers) GetBuildLister() v1alpha1Listers.BuildLister

func (*Listers) GetBuilderLister

func (l *Listers) GetBuilderLister() v1alpha1Listers.BuilderLister

func (*Listers) GetImageLister

func (l *Listers) GetImageLister() v1alpha1Listers.ImageLister

func (*Listers) GetKubeObjects

func (l *Listers) GetKubeObjects() []runtime.Object

func (*Listers) GetPersistentVolumeClaimLister

func (l *Listers) GetPersistentVolumeClaimLister() corev1listers.PersistentVolumeClaimLister

func (*Listers) GetPodLister

func (l *Listers) GetPodLister() corev1listers.PodLister

func (*Listers) GetSourceResolverLister

func (l *Listers) GetSourceResolverLister() v1alpha1Listers.SourceResolverLister

type RebuildingReconciler added in v0.0.1

type RebuildingReconciler func() knCtrl.Reconciler

func (RebuildingReconciler) Reconcile added in v0.0.1

func (r RebuildingReconciler) Reconcile(ctx context.Context, key string) error

type SpecReconcilerTester

type SpecReconcilerTester struct {
	// contains filtered or unexported fields
}

func ReconcilerTester

func ReconcilerTester(t *testing.T, factory rtesting.Factory) SpecReconcilerTester

func (SpecReconcilerTester) Test

func (rt SpecReconcilerTester) Test(test rtesting.TableRow)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL