Updating operator examples in examples/operator folder to be more in line with our idea of how to write operators using the SDK.
This PR adds the following:
A basic watcher using the basic package and the Watcher pattern (in basic/watcher/main.go);
A basic reconciler using the basic package and the Reconciler pattern (in basic/reconciler/main.go);
An opinionated watcher using the operator package and the Watcher pattern (in opinionated/watcher/main.go);
An opinionated reconciler using the operator package and the Reconciler pattern (in opinionated/reconciler/main.go).
Why
So we do have clear and useful examples for our users.
What
Updating operator examples in
examples/operator
folder to be more in line with our idea of how to write operators using the SDK. This PR adds the following:basic
package and the Watcher pattern (inbasic/watcher/main.go
);basic
package and the Reconciler pattern (inbasic/reconciler/main.go
);operator
package and the Watcher pattern (inopinionated/watcher/main.go
);operator
package and the Reconciler pattern (inopinionated/reconciler/main.go
).Why
So we do have clear and useful examples for our users.