Documentation ¶
Index ¶
- Variables
- func AssertTrackingObject(gvk schema.GroupVersionKind, namespace, name string) func(*testing.T, *rtesting.TableRow)
- func AssertTrackingProvisionedService(namespace, name string) func(*testing.T, *rtesting.TableRow)
- func AssertTrackingSecret(namespace, name string) func(*testing.T, *rtesting.TableRow)
- func GetTracker(ctx context.Context) tracker.Interface
- func MakeFactory(ctor Ctor) rtesting.Factory
- func NewScheme() *runtime.Scheme
- func ToUnstructured(t *testing.T, sch *runtime.Scheme, objs []runtime.Object) (us []runtime.Object)
- type Ctor
- type Listers
- func (l *Listers) GetKubeObjects() []runtime.Object
- func (l *Listers) GetNamespaceLister() corev1listers.NamespaceLister
- func (l *Listers) GetProvisionedServiceLister() labslisters.ProvisionedServiceLister
- func (l *Listers) GetSecretLister() corev1listers.SecretLister
- func (l *Listers) GetServiceBindingLister() servicebindinglisters.ServiceBindingLister
- func (l *Listers) GetServiceBindingProjectionLister() labsinternallisters.ServiceBindingProjectionLister
- func (l *Listers) GetServiceBindingsObjects() []runtime.Object
- func (l *Listers) IndexerFor(obj runtime.Object) cache.Indexer
- func (*Listers) NewScheme() *runtime.Scheme
Constants ¶
This section is empty.
Variables ¶
View Source
var TrackerKey key = struct{}{}
TrackerKey is used to looking a FakeTracker in a context.Context
Functions ¶
func AssertTrackingObject ¶
func AssertTrackingObject(gvk schema.GroupVersionKind, namespace, name string) func(*testing.T, *rtesting.TableRow)
AssertTrackingObject will ensure the following objects are being tracked
func AssertTrackingProvisionedService ¶
AssertTrackingProvsisionedService will ensure the provided ProvisionedService is being tracked
func AssertTrackingSecret ¶
AssertTrackingSecret will ensure the provided Secret is being tracked
func MakeFactory ¶
MakeFactory creates a reconciler factory with fake clients and controller created by `ctor`.
func ToUnstructured ¶
ToUnstructured takes a list of k8s resources and converts them to Unstructured objects. We must pass objects as Unstructured to the dynamic client fake, or it won't handle them properly.
Types ¶
type Ctor ¶
type Ctor func(context.Context, *Listers, configmap.Watcher) controller.Reconciler
Ctor functions create a k8s controller with given params.
type Listers ¶
type Listers struct {
// contains filtered or unexported fields
}
func NewListers ¶
func (*Listers) GetKubeObjects ¶
func (*Listers) GetNamespaceLister ¶
func (l *Listers) GetNamespaceLister() corev1listers.NamespaceLister
func (*Listers) GetProvisionedServiceLister ¶
func (l *Listers) GetProvisionedServiceLister() labslisters.ProvisionedServiceLister
func (*Listers) GetSecretLister ¶
func (l *Listers) GetSecretLister() corev1listers.SecretLister
func (*Listers) GetServiceBindingLister ¶
func (l *Listers) GetServiceBindingLister() servicebindinglisters.ServiceBindingLister
func (*Listers) GetServiceBindingProjectionLister ¶
func (l *Listers) GetServiceBindingProjectionLister() labsinternallisters.ServiceBindingProjectionLister
func (*Listers) GetServiceBindingsObjects ¶
Click to show internal directories.
Click to hide internal directories.