-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync pod status logic with kubectl and simplify API #5660
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5660 +/- ##
==========================================
- Coverage 44.64% 44.38% -0.26%
==========================================
Files 214 214
Lines 9067 9120 +53
Branches 113 113
==========================================
Hits 4048 4048
- Misses 4753 4798 +45
- Partials 266 274 +8
Continue to review full report at Codecov.
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floreks, maciaszczykm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I now get green tick icons for pods that aren't ready :( When using Dashboard v2.0.5+0.g8b89a1c7b and Kube Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:48:36Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} |
I don't see how it is possible as logic is simple here: [Status.Succeeded, Status.Running, Status.Completed].some(s => resource.status === s) If pod status is different than one of those 3, then it can't be green. |
I'd say that right now it is consistent. Status is Running therefore green icon is shown. This should be consistent with what kubectl reports. |
It may well be consistent but the previous user experience was better since, allowing me to see from the list view that the pod isn't ready |
Our goal is and always have been to be consistent with kubectl output. Previous logic was invalid and was considered a bug by us. If status in Dashboard will be different than the one reported by kubectl we will fix it. |
I understand that and dont disagree that it should be consistent with kubectl, however I also think that dashboard can provide a better experience. kubectl shows this in the default pod list view
So it is immediately obvious from that list that 0 of 2 pods are ready. So to be consistent, dashboard should also show this 'Ready' information. Would you consider adding a Ready column to dashboard ? Or better still incorporate this ready state into the icon like like dashboard 2.0.2 does. You could also add a mouseover/tooltip for the icon which reads "ready: 0/2" |
Add an issue for that because otherwise we will lose track of it. |
The logic that figures out the icon to use basically checks if the returned status is a known one and only then the specific icon will be used. For unchecked statuses, it will most often be a question mark icon meaning that we simply do not have a specific icon for it or it is not recognized by us.
I have checked the output with
kubectl
and it was the same at all times.Other resources might still require additional work as they work on much simpler statuses. The pod itself has a wider range of possible statuses.
Fixes #5656