-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOJIRA Break PodReconciler.Reconcile() into helpers (#66)
* NOJIRA Break PodReconciler.Reconcile() into helpers # Context The `PodReconciler.Reconcile()` is long and convoluted, making it hard to understand and parse. As there are distinct steps in its operation, let's break them into helpers named after the logical operation to simplify understanding it. # What this changes - Extract interface for caching and platform statistics into its own private methods, starting a new internal API. - Group all the code required to determine if an existing Pod is already scheduled properly into its own private method. - Streamline the main method's flow to reduce indentation and clarify the logical process. # Non-goals - Modify the behaviour of the reconcile method Change-Id: Id39d5caf4120b1f20a138b6dfecd5ae8be344eab Co-authored-by: João Alves <[email protected]>
- Loading branch information
1 parent
7fbdc30
commit 62ea3e9
Showing
1 changed file
with
124 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters