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:
67
67
68
68
reconcile may be implemented as either a type:
69
69
70
- type reconcile struct {}
70
+ type reconciler struct {}
71
71
72
- func (reconcile) reconcile(controller. Request) (controller .Result, error) {
72
+ func (reconciler) Reconcile(ctx context.Context, o reconcile. Request) (reconcile .Result, error) {
73
73
// Implement business logic of reading and writing objects here
74
- return controller .Result{}, nil
74
+ return reconcile .Result{}, nil
75
75
}
76
76
77
77
Or as a function:
78
78
79
- controller .Func(func(o controller .Request) (controller .Result, error) {
79
+ reconcile .Func(func(ctx context.Context, o reconcile .Request) (reconcile .Result, error) {
80
80
// Implement business logic of reading and writing objects here
81
- return controller .Result{}, nil
81
+ return reconcile .Result{}, nil
82
82
})
83
83
84
84
Reconciliation 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