Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate simple.NewOperator and update examples #565

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

IfSentient
Copy link
Contributor

Added deprecation comment to simple.NewOperator and simple.Operator. examples/operator/simple was still using simple.Operator, so the code has been updated to use simple.App and operator.Runner. examples/operator/opinionated was building an operator from scratch, which is no longer advised, so the example has been removed.

@IfSentient IfSentient requested review from a team as code owners January 6, 2025 20:57
String string `json:"stringField"`
}

func NewApp(config app.Config) (app.App, error) {
// Set up the watcher
watcher := &simple.Watcher{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@radiohead mentioned that a reconciler was preferred over a watcher. if so, should the watcher be switched for a reconciler as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an example for each right now, I don't know if we want to remove the watcher examples completely yet (especially since codegen still builds a watcher by default at the moment)

@radiohead radiohead enabled auto-merge (squash) January 7, 2025 10:28
@radiohead radiohead merged commit a943aaf into main Jan 7, 2025
10 checks passed
@radiohead radiohead deleted the deprecate-simple-operator branch January 7, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants