public interface Reconciler
Example reconcile Logic:
1. Read an object and all the Pods it owns. 2. Observe that the object spec specifies 5 replicas but actual cluster contains only 1 Pod replica. 3. Create 4 Pods and set their OwnerReferences to the object.
Reconciliation is level-based, meaning action isn't driven off changes in individual Events, but instead is driven by actual cluster state read from the apiserver or a local cache. For example if responding to a Pod Delete Event, the Request won't contain that a Pod was deleted, instead the reconcile function observes this when reading the cluster state and seeing the Pod as missing.
Modifier and Type | Method and Description |
---|---|
Result |
reconcile(Request request)
Reconcile result.
|
Copyright © 2020. All rights reserved.