Simple core and layered reconciler implementation for v6
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Refactorización
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- java, kubernetes
- Área
- backend-api-design
Línea de trabajo
Lee las responsabilidades actuales de Reconciler y ReconciliationDispatcher, incluido updateErrorStatus, y luego crea un prototipo de las capas propuestas GenericReconciler y WorkflowReconciler. Se considera terminado cuando haya un prototipo funcional y una descripción de diseño adecuada que explique la separación principal y mantenga trivial la migración para los usuarios existentes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
TL;DR We could make the core of the framework simpler by introducing a more layered architecture. While keeping the migration for the users trivial.
Problem definition
Currently the core of a framework has baked logic to work with higher level logic like:
- Adding finalizers by implementing
Cleanerinterface - Managed workflows inside the controller
- Automatic generation filtering
- Catching error and error handling, thus
updateErrorStatusmethod.
We recently added a generic mode Trigger reconciliation on all events
While it makes a nice API for the users, an maybe even nice out of the box experience, makes the core of the framework more complex - and even for users I assume hard to follow, if some wants to read the code.
What we could do in next major version is to layer those functionalities:
- The core will just work on top of a simplified
Reconcilerinterface. What will handle basically be the all event mode. So we won't support finalizers,UpdateControl.patch methods,and most of the functionality ofReconciliationDispatcherwould be moved to an abstract Reconciler implementation:GenericReconciler. - Retry, Rate limiting would stay as it is now
- The managed workflow handling would an additional extension of
GenericReconciler:WorkflowReconciler. That will handle the managed workflow discovery, their configuration etc.
Migration
Note that migration for the users could be kept trivial, basically just extending the GenericReconciler / WorkflowReconciler (Where we could support the UpdateControl etc as is now) instead of implementing Reconciler.
Pros
- The core would be much simpler
- The logic around these extended reconcilers much easier to be followed by the users (from source code)
Cons
- This does not provide direct value for users, other than easier to handle
Notes
- before we make a decision, we should explore this first in a proptotype
- TODO: proper design description
- Lenguaje dominante
- Java
- Estrellas
- 944
- Forks
- 242
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 46
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de operator-framework/java-operator-sdk
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
operator-framework/java-operator-sdk#3621 · 7 comentarios · 1 asignado ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
operator-framework/java-operator-sdk#3615 · 1 comentario · 3 reacciones ·
-
Set baseline Java version to 21 Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
operator-framework/java-operator-sdk#3568 · 1 comentario · 1 reacción ·
-
Support for Virtual Threads Abierto
operator-framework/java-operator-sdk#3538 · 2 comentarios · 2 asignados ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
operator-framework/java-operator-sdk#3498 · 1 reacción ·
Todos los issues de operator-framework/java-operator-sdk
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
checkstyle/test-configs#263 ·
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Cannot differ own consent and managed consents in My Consents view and detailed consent view. Abierto1.0.0-alpha2 Type/Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
wso2/dpdp-accelerator#272 ·