In instances CRD, "Targets" field indicates how many targets involve in the solution deployment defined by this instance. And "Deployed" field indicates how many targets succeeded in the solution deployment in this round.
These two should always be the same in Create or Update scenario if the deployment succeeded. However, if any target is removed from the instance, “Deployed" field could be greater than "Targets" field like the figure below. This is because "Targets" is the target count in the new state but "Deployed" counts all the targets in mergedState.
We should define four variables to make it clear
Name
meaning
"New Targets"
original "Targets"
"New successful Targets"
new targets that's in desired state
"Targets touched"
total targets touched in this deployment
"Targets successfully touched"
total targets run deployment successfully
For example, originally there are 5 targets bind with instance and now a change to delete 2 target from instance while another 1 target is added. Then we expect the above values to be 4, 4, 3, 3 in success scenario.
DEPLOYED means N target has applications deployed. And put the detailed info in status. @RemindD please have a check in target deletion case for detailed status.
In instances CRD, "Targets" field indicates how many targets involve in the solution deployment defined by this instance. And "Deployed" field indicates how many targets succeeded in the solution deployment in this round.
These two should always be the same in Create or Update scenario if the deployment succeeded. However, if any target is removed from the instance, “Deployed" field could be greater than "Targets" field like the figure below. This is because "Targets" is the target count in the new state but "Deployed" counts all the targets in mergedState.![image](https://github.com/eclipse-symphony/symphony/assets/9944145/afecdb0d-39c8-46b7-b718-5f9bc996b0bf)
For example, originally there are 5 targets bind with instance and now a change to delete 2 target from instance while another 1 target is added. Then we expect the above values to be 4, 4, 3, 3 in success scenario.