Skip to content

validation: more than one dependency with name or alias #12748

@dbluxo

Description

@dbluxo

With Helm v3.14.0 the following use case is broken:

dependencies:
  - name: kube-rbac-proxy
    version: "0.9.1"
    repository: "<redacted>"
    alias: loki-query-proxy
    condition: loki-query-proxy.enabled
  - name: kube-rbac-proxy
    version: "0.9.1"
    repository: "<redacted>"
    alias: loki-ingestion-proxy
    condition: loki-ingestion-proxy.enabled

Various Helm commands (e.g. helm dependency update) now lead to the following error message:

index.go:366: skipping loading invalid entry for chart "<redacted>" "1.3.0" from <redacted>: validation: more than one dependency with name or alias "kube-rbac-proxy"

According to the documentation for the Chart.yaml using name twice with separate aliases seems to be valid:

alias: (optional) Alias to be used for the chart. Useful when you have to add the same chart multiple times

The error was probably introduced with this PR. With Helm v3.13.2 it worked without any problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions