Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Migrating the current reconciler #379

Answered by scothis
roy01ajit asked this question in Q&A
Discussion options

You must be logged in to vote

This is a good question.

First, as a library that sits on top of controller-runtime, you have full access to controller-runtime types and capabilities. This makes it possible to migrate incrementally. Adopt as much (or little) as makes sense for your needs. It's perfectly normal to leave a reconciler or webhook in pure controller-runtime types if r-r doesn't provide a paved path that matches where you want to go.

The best place to start when migrating is with a good test suite for your controller, this way you can have confidence that the refactoring isn't introducing new unintended behavior. The test support in reconciler-runtime is my personal favorite feature. You can use ReconcilerTests

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@roy01ajit
Comment options

Answer selected by roy01ajit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants