What would you like to be added:
Adding option --field-selector to kubectl top pod, which is similar to kubectl get pod
Why is this needed:
I need to get utilization statistic for pods in a specific node. This can be helped by using --field-selector=spec.nodeName=<...>
/priority backlog
Adding this is at the thin line between feature request and compatibility with other kubectl commands. So I'm going treat this as a the latter. When working on it make sure to use ResourceBuilder like other command. This will ensure all the mechanics used in other command will be available for you for free.
@soltysh I would like to work on this if it is available.
/assign @AnishShah
@soltysh I would like to work on this if it is available.
Sure go ahead.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/assign
/remove-lifecycle rotten
/remove-lifecycle stale
Most helpful comment
Adding this is at the thin line between feature request and compatibility with other kubectl commands. So I'm going treat this as a the latter. When working on it make sure to use ResourceBuilder like other command. This will ensure all the mechanics used in other command will be available for you for free.