Skip to content

Helm 3 ignores the output format for empty repos list #7939

Closed

Description

@joncnet

Dear team,

The command helm repo list returns an error when there are no repositories.
Due to this behaviour, the -o json flag is ignored and the same error is returned instead of an empty list []

The expected behaviour would be the same of helm list when no installed charts are present

Output of helm version (I have tried with both):
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}
version.BuildInfo{Version:"v3.2.0-rc.1", GitCommit:"7bffac813db894e06d17bac91d14ea819b5c2310", GitTreeState:"clean", GoVersion:"go1.13.10"}

Thanks

Activity

  1. changed the title [-]Helm ignores the output format for empty repos list[/-] [+]Helm 3 ignores the output format for empty repos list[/+] on Apr 17, 2020
  2. added
    bug
    on Apr 17, 2020
  3. mattfarina commented on Apr 17, 2020

    @mattfarina
    Collaborator

    I'm going to label this as a bug. It's a behavior change from Helm v2 and I believe it's unintentional. I'm going to poke some of the other maintainers to see if they concur.

  4. technosophos commented on Apr 17, 2020

    @technosophos
    Member

    Agreed. If the output is supposed to be JSON and is not, it is a bug. Consequently, there is no compatibility maintenance issue here.

  5. anshulvermapatel commented on Apr 19, 2020

    @anshulvermapatel
    Contributor

    /assign

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

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions