Skip to content

Commit 09a8c8f

Browse files
committed
operator cleanup docs
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 2d2c38b commit 09a8c8f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/io/csviri/operator/resourceglue/reconciler/glue/GlueReconciler.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ public class GlueReconciler implements Reconciler<Glue>, Cleaner<Glue> {
4545
private final InformerRegister informerRegister = new InformerRegister();
4646
private final GenericTemplateHandler genericTemplateHandler = new GenericTemplateHandler();
4747

48+
/**
49+
* Handling finalizers for GlueOperator: Glue ids a finalizer to parent, that is necessary since
50+
* on clean up the resource name might be calculated based on the parents name, and it this way
51+
* makes sure that parent is not cleaned up until the Glue is cleaned up. The finalizer is removed
52+
* during cleanup. On Glue side however it is important to make sure that if the parent is deleted
53+
* glue gets deleted too, this is made sure in the reconcile method for glue explicitly deleting
54+
* itself.
55+
*/
56+
4857
@Override
4958
public UpdateControl<Glue> reconcile(Glue primary,
5059
Context<Glue> context) {

0 commit comments

Comments
 (0)