You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should pick a single way of doing things. I tend to think working with the Pods and StatefulSets retrieved through ResourcesState, only once at the beginning of the reconciliation, is cleaner and produces more deterministic actions.
We should also make sure the entire thing plays well with the expectations mechanism.
The text was updated successfully, but these errors were encountered:
sebgl
changed the title
Refactor Elasticsearch controller ResourcesState
Refactor how the Elasticsearch controller retrieves resources (rely on ResourcesState?)
Jul 20, 2020
There is a bit of confusion coming from the way we check Pods and StatefulSets in the Elasticsearch controller.
In some places we rely on a
ResourcesState
struct:cloud-on-k8s/pkg/controller/elasticsearch/reconcile/resources_state.go
Lines 18 to 30 in 459d005
This struct contains the actual Pods (and StatefulSets), retrieved only once.
In other places we retrieve Pods and StatefulSets from the client in the middle of the reconciliation:
cloud-on-k8s/pkg/controller/elasticsearch/driver/nodes.go
Lines 37 to 49 in 459d005
We should pick a single way of doing things. I tend to think working with the Pods and StatefulSets retrieved through
ResourcesState
, only once at the beginning of the reconciliation, is cleaner and produces more deterministic actions.We should also make sure the entire thing plays well with the expectations mechanism.
The text was updated successfully, but these errors were encountered: