Restores display of object status when displaying helm status
Changes to the Kubernetes API server and kubectl libraries caused the status to no longer display when helm status was run for a release. This change restores the status display. Generation of the tables for display was moved server side. A request for the data as a table is made and a kubectl printer for tables can display this data. Kubectl uses this setup and the structure here closely resembles kubectl. kubectl is still able to display objects as tables from prior to server side printing but only prints limited information. Note, an extra request is made because table responses cannot be easily transformed into Go objects for Kubernetes types to work with. There is one request to get the resources for display in a table and a second request to get the resources to lookup the related pods. The related pods are now requested as a table as well for display purposes. This is likely part of the larger trend to move features like this server side so that more libraries in more languages can get to the feature. Closes #6896 Signed-off-by:Matt Farina <matt@mattfarina.com> (cherry picked from commit e8396c92)
Showing
+162 -58
Please register or sign in to comment