Bug 1834695
| Summary: | Charts on Cluster Logging Details page use different color for Running and Pending pods | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Yadan Pei <yapei> | ||||||
| Component: | Management Console | Assignee: | Jon Jackson <jonjacks> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | Yadan Pei <yapei> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 4.5 | CC: | aos-bugs, jokerman, jonjacks, yapei | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | 4.6.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2020-06-02 18:50:48 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Yadan Pei
2020-05-12 09:12:53 UTC
Created attachment 1687592 [details]
DC Donut Color
Created attachment 1687593 [details]
Cluster Logging Details Color
Started work on this between 4.5 blockers and found the source of the problem. Solution still in the works. Will circle back soon. Digging further into this, it seems like we will not be able to fully recreate the behavior of the PodStatus component used in DeploymentConfigs. Operator-defined resources using the podStatuses statusDescriptor do not have a deterministic set of statuses that can be mapped to specific colors. The closest we can get is to create a color scale that uses similar colors to the PodStatus component. (In reply to Jon Jackson from comment #5) > Digging further into this, it seems like we will not be able to fully > recreate the behavior of the PodStatus component used in DeploymentConfigs. > Operator-defined resources using the podStatuses statusDescriptor do not > have a deterministic set of statuses that can be mapped to specific colors. > The closest we can get is to create a color scale that uses similar colors > to the PodStatus component. I'm going to close this as not a bug. The podStatuses descriptor component is working as expected and designed. We are already using the same blue scale that is used in the PodStatus component. We just have no way to associate specific colors to statuses in this component, since the statuses are arbitrary. I think the podStatuses descriptor just has a slightly misleading name. You could point this descriptor at any correctly formatted data and it would produce a donut chart. This means that the resulting component is 'ignorant' of the categories (i.e. 'pod statuses') it is rendering in the chart, and therefore cannot assign specific colors to specific categories. For example, the following would be perfectly valid and would produce a donut chart on the custom resource details page: statusDescriptors: - displayName: This Is a Donut Chart description: I want to show some stuff as a donut chart on the details page. path: donutChartData x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:podStatuses' --- status: donutChartData: category1: - item-1 - item-2 - item-3 category2: - item-5 - item-6 category3: - item-7 category4: - item-8 |