Skip to content

(feat/cmd/helm): Add support for longer table column wides using -o wide #1915

Closed

Description

@lachie83

See #1914

Example

Without -o wide - Table colum wide ~30

helm history jaunty-llama
REVISION	UPDATED                 	STATUS  	CHART                         
1       	Fri Feb  3 15:58:10 2017	DEPLOYED	alpine-1.0.847.192312075-16...

With -o wide - Table colum wide ~60

./helm history jaunty-llama
REVISION	UPDATED                 	STATUS  	CHART                              	DESCRIPTION
1       	Fri Feb  3 15:58:10 2017	DEPLOYED	alpine-1.0.847.192312075-165164_365	

Activity

  1. lachie83 commented on Feb 4, 2017

    @lachie83
    ContributorAuthor

    This appears to differ from kubectl behavior (-o wide in kubectl doesn’t change the column width
    it adds more columns and prints them if they are returned) https://github.com/kubernetes/kubernetes/blob/d6f7ae2ffbdc1d5cd89181666e62cf0208830f85/pkg/kubectl/resource_printer.go#L511-L512

  2. added this to the milestone on Feb 14, 2017
  3. bnookala commented on Jun 7, 2017

    @bnookala

    👋 Hello! I thought to try and attempt this, since it seemed fairly simple. I got as far as doing an ack to see how things were currently implemented and found this:

    cmd/helm/dependency.go
    234:	table.MaxColWidth = 80
    
    cmd/helm/history.go
    96:	tbl.MaxColWidth = 60
    
    cmd/helm/list.go
    204:	table.MaxColWidth = 60
    
    cmd/helm/search.go
    126:	table.MaxColWidth = 50
    
    cmd/helm/status.go
    122:	tbl.MaxColWidth = 50
    

    Seems like there's a few different MaxColWidth settings, and all appear to be beyond 30. For this ticket to be marked as closed, should this be standardized back to 60? Just wondering how to start and proceed here… :)

  4. made2591 commented on Jul 27, 2017

    @made2591

    @bnookala I think that uitable.MaxColWidth property of github.com/gosuri/uitable instances should setup only once a single point (or for each specific scenario but in a single place)...

  5. bacongobbler commented on Oct 31, 2017

    @bacongobbler
    Member

    #2950 introduces the --format flag to helm list, so this should be relatively simple issue to pick up if anyone wants to give this a shot!

  6. fgimenez commented on Dec 2, 2017

    @fgimenez

    I'd like to give it a try, hopefully will have a PR ready soon :)

  7. fgimenez commented on Dec 6, 2017

    @fgimenez

    Looks like this is already implemented in #2836 is that correct?

  8. mikeln commented on Apr 23, 2018

    @mikeln

    Would really be helpful also on the output of "helm search " when you are looking for versions of a chart in a chart repo. The version is too short in some cases. Similar type of thing.

  9. bacongobbler commented on Apr 23, 2018

    @bacongobbler
    Member

    @mikeln I opened #3947 to track that feature. Feel like taking a crack at it?

  10. mikeln commented on Apr 23, 2018

    @mikeln

    we'll have someone get to this

  11. mikeln commented on May 8, 2018

    @mikeln

    The PR above appears to have been included in release v2.9.0. This issue could probably be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions