Fix readiness-check ready.py script for stateful set 94/108294/2
authorSebastien Premont-Tendland <sebastien.premont@bell.ca>
Tue, 26 May 2020 22:32:33 +0000 (18:32 -0400)
committerSebastien Premont-Tendland <sebastien.premont@bell.ca>
Tue, 26 May 2020 22:38:58 +0000 (18:38 -0400)
commitc1e95eec5660abd9540400784e9777257d7abcac
treeda1c36a01cb3a54f4debfb817c1b69564c0721f0
parentdbab15fde615d85748f4664bf16376f5643453ac
Fix readiness-check ready.py script for stateful set

Only check the status field readyReplicas instead of
currentReplicas and updatedReplicas. The value of currentReplicas
relates to the number of pods created with the first revision of
the stateful set. If a change is made to the stateful set and pods are restarted
then currentReplicas is no longer returned in the status.
Check JIRA for more information.

Issue-ID: OOM-2418
Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca>
Change-Id: If5dbc892b6d807e6ca681457f9874613fce7db04
kubernetes/readiness/src/main/scripts/ready.py