File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,18 @@ Example reconcile Logic:
6767
6868reconcile may be implemented as either a type:
6969
70- type reconcile struct {}
70+ type reconciler struct {}
7171
72- func (reconcile) reconcile(controller. Request) (controller .Result, error) {
72+ func (reconciler) Reconcile(ctx context.Context, o reconcile. Request) (reconcile .Result, error) {
7373 // Implement business logic of reading and writing objects here
74- return controller .Result{}, nil
74+ return reconcile .Result{}, nil
7575 }
7676
7777Or as a function:
7878
79- controller .Func(func(o controller .Request) (controller .Result, error) {
79+ reconcile .Func(func(ctx context.Context, o reconcile .Request) (reconcile .Result, error) {
8080 // Implement business logic of reading and writing objects here
81- return controller .Result{}, nil
81+ return reconcile .Result{}, nil
8282 })
8383
8484Reconciliation is level-based, meaning action isn't driven off changes in individual Events, but instead is
You can’t perform that action at this time.
0 commit comments