application-stacks / runtime-component-operator

A generic Operator capable of deploying any runtime component image with enterprise QoS and bind it to other services
Apache License 2.0
49 stars 23 forks source link

Update the asserts on Deployment/StatefulSet status #274

Closed leochr closed 2 years ago

leochr commented 2 years ago

Few tests assert by checking the status of Deployment and/or StatefulSet. Only replicas and/or readyReplicas are checked. We should also check updatedReplicas to ensure it has the expected value. Otherwise, the old pod that's in ready state will be considered while evaluating pass/fail. Checking all 3 values will ensure that the Deployment/StatfulSet is in expected state.

yongja79 commented 2 years ago

Fixed in OLO with PR295