controller-runtime: Index | Files

package reconciletest

import ""


Package Files


type FakeReconcile Uses

type FakeReconcile struct {

    // Result is the result that will be returned by Reconciler
    Result reconcile.Result

    // Err is the error that will be returned by Reconciler
    Err error

    // Chan will have requests written to it, if not nil
    Chan chan reconcile.Request

FakeReconcile implements reconcile.Reconciler by always returning Result and Err

Deprecated: Please don't use this. There's some subtle concurrency issues with it, and there are better ways to test reconciliation.

func (*FakeReconcile) Reconcile Uses

func (f *FakeReconcile) Reconcile(r reconcile.Request) (reconcile.Result, error)

Reconcile implements reconcile.Reconciler

Package reconciletest imports 1 packages (graph). Updated 2019-10-16. Refresh now. Tools for package owners.