Skip to content

How can I run once in a reconcile loop? #2699

Closed Answered by camilamacedo86
imaimaibah asked this question in Support
Discussion options

You must be logged in to vote

The controller’s reconciliation loop needs to be idempotent when developing operators. By following the Operator pattern, you will create Controllers which provide a reconcile function responsible for synchronizing resources until the desired state is reached on the cluster.

That means the idea is to observe the resources on the cluster (watches feature) and then ensure that when anything that matters changes, the controllers will reconcile the Kinds and ensure the desired state. Maybe look at can be helpful: https://sdk.operatorframework.io/docs/best-practices/common-recommendation/

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@imaimaibah
Comment options

@camilamacedo86
Comment options

Answer selected by camilamacedo86
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants