© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. MartinKubernetes Programming with Gohttps://doi.org/10.1007/978-1-4842-9026-2_11

11. Writing the Reconcile Loop

Philippe Martin1  
(1)
Blanquefort, France
 

We have seen in the previous chapter how to bootstrap a new project for writing an Operator, using the controller-runtime Library. In this chapter, we will focus on the implementation of the Reconcile function, which is an important part of the implementation of an operator.

The Reconcile function contains all the business logic of the Operator. The function will work on a single resource kind—one says the Operator reconciles this resource—and can be notified when objects of other types trigger events, ...

Get Kubernetes Programming with Go: Programming Kubernetes Clients and Operators Using Go and the Kubernetes API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.