Cause: The logic used to aggregate status descriptors on operand details pages had a flaw causing only one podStatus descriptor to be used.
Consequence: Only the last podStatus descriptor defined on the CSV would be rendered on operand details pages.
Fix: Update the logic on the operand details page to ensure all podStatus descriptors are aggregated.
Result: All podStatus descriptors are rendered as donut charts at the top of the operand details page.
Description of problem:
Only one pod status donut is rendered on operand details page, no matter how many `podStatuses` descriptors are used.
Version-Release number of selected component (if applicable):
4.8
How reproducible:
Always
Steps to Reproduce:
1. In a namespace of your choice, create crd, csv, and operand from https://gist.github.com/TheRealJon/3680c8a573bde88a974588e269230562
2. Navigate to Operators > Installed Operators > Mock Operator > Mock Resource tab > 'mock-resource-instance' details page
Actual results:
Only one "Other Statuses" donut is rendered on the details page
Expected results:
Both a "Pod Statuses" and "Other Statuses" donut should be rendered.
Checked on ocp 4.8 cluster with payload 4.8.0-0.nightly-2021-05-15-141455.
Steps to verify:
1. In a namespace of your choice, create crd, csv, and operand from https://gist.github.com/TheRealJon/3680c8a573bde88a974588e269230562
2. Navigate to Operators > Installed Operators > Mock Operator > Mock Resource tab > 'mock-resource-instance' details page. Check "Pod Statuses" and "Other Statuses", both have donut rendered.
The bug is fixed.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2021:2438