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
Description:
When we deploy a SiddhiProcess YAML at the initial step the status of the SiddhiProcess becomes empty. After that, it moves through general state change Pending -> Running. Though it would be better to have this pending state right after the kubectl installation of the SiddhiProcess.
Suggested Labels:
Type improvement
Affected Product Version:
0.2.0-alpha
The text was updated successfully, but these errors were encountered:
In order to fix this issue, we need to move the update pending status initially in the reconcile loop.
We are updating the status to Running or Error when we are creating the K8s artifacts(deployment, service, and ingress, etc). We are doing this because we need to create or update the artifact and according to the output of that creation, we are changing the status.
As described in this issue kubernetes-sigs/controller-runtime#490 it is intended behavior to run reconcile loop twice for each request. Therefore we cannot move pending status change to top-level because if we do so it will execute as follow and Siddhi process comes to the pending state even after the creation of all the artifacts.
The first call of the reconcile loop status becomes Pending.
This reconcile loop creates K8s artifacts and come to the running or error status.
In the second call of reconcile loop again status becomes Pending.
But at this time there is no create or update to the existing artifacts. Therefore SiddhiProcess will be retained in the Pending state.
That is why we got rid of this Pending state currently.
Description:
When we deploy a SiddhiProcess YAML at the initial step the status of the SiddhiProcess becomes empty. After that, it moves through general state change Pending -> Running. Though it would be better to have this pending state right after the kubectl installation of the SiddhiProcess.
Suggested Labels:
Type improvement
Affected Product Version:
0.2.0-alpha
The text was updated successfully, but these errors were encountered: