Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

chart-repo: panics when there are no charts to import #603

Open

Description

@prydonius

First reported on Slack (https://kubernetes.slack.com/archives/C9D3TSUG4/p1550784319000900), it looks like if https://github.com/helm/monocular/blob/v1.2.0/cmd/chart-repo/utils.go#L100 comes back with an empty list (if there are no entries in the index.yaml, or all charts are deprecated), then https://github.com/helm/monocular/blob/v1.2.0/cmd/chart-repo/utils.go#L260 results in a panic as it tries to access the first element of the charts array.

We should exit earlier with a suitable error message when charts is empty.

Activity

  1. Dean-Coakley commented on Mar 30, 2019

    @Dean-Coakley
    Contributor

    @prydonius This can 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions