dashboard
dashboard copied to clipboard
Displaying wrong Dapr Control Plane version in Overview page intermittently
Expected Behavior
Expect to see accurate info.
Actual Behavior
The version displayed keeps changing from time to time.
Most time shows
But sometimes, it shows
Checked the controlplanestatus
API call in both cases but got a similar response,
[
{
"service": "dapr-placement-server",
"name": "dapr-placement-server-0",
"namespace": "dapr-system",
"healthy": "True",
"status": "Running",
"version": "1.3.0",
"age": "18d",
"created": "2021-08-25 11:59.09"
},
{
"service": "dapr-operator",
"name": "dapr-operator-696977d4fb-9g85k",
"namespace": "dapr-system",
"healthy": "True",
"status": "Running",
"version": "1.3.0",
"age": "18d",
"created": "2021-08-25 11:59.05"
},
{
"service": "dapr-dashboard",
"name": "dapr-dashboard-5dd8555b7b-t7mx9",
"namespace": "dapr-system",
"healthy": "True",
"status": "Running",
"version": "0.7.0",
"age": "18d",
"created": "2021-08-25 11:59.05"
},
{
"service": "dapr-sidecar-injector",
"name": "dapr-sidecar-injector-7b974549c6-hqgc9",
"namespace": "dapr-system",
"healthy": "True",
"status": "Running",
"version": "1.3.0",
"age": "18d",
"created": "2021-08-25 11:59.05"
},
{
"service": "dapr-sentry",
"name": "dapr-sentry-575465868f-gtbk5",
"namespace": "dapr-system",
"healthy": "True",
"status": "Running",
"version": "1.3.0",
"age": "18d",
"created": "2021-08-25 11:59.05"
}
]
Steps to Reproduce the Problem
Just watch the dashboard for some time.
Release Note
RELEASE NOTE: FIX Dapr control plane version displayed in the overview.
Thanks. It is because the dashboard has a different version itself. Thanks for bringing this up.
I could fix this by modifying here.
But to do that, I need to know, which plan we can take ahead,
Plan A
Out of the number of services in the controlplanestatus
API response, which service version we should consider as the Dapr control plane version in case of,
- Kubernetes mode
- Self-hosed mode
Plan B
Can we use something like semver
package to figure out the latest version out of all services (eg. here)
Plan C (out of my scope)
Align the dashboard version with the rest of the dapr services.