Skip to content

Add alias support for OCI Charts #10013

Closed as not planned
Closed as not planned

Description

@cobexer

Helm charts can have dependencies to other charts.
The root chart and those other charts may come from OCI "repositories" (registries) which the charts have to reference directly currently.

However in the datacenters we have to operate and during the development of our helm charts (dev, staging and production environments) the repositories where those charts are stored change. With the legacy helm repositories we could use repository aliases to avoid global references to other charts.

OCI charts can't currently use repository aliases to point to other helm charts in their dependencies.

Please add alias support for OCI dependencies.

Explaining this using bitnami as an example:
bitnami recommends to use

helm repo add bitnami https://charts.bitnami.com/bitnami

Using bitnamis Drupal chart as an example: https://github.com/bitnami/charts/blob/041766798ed98af83465cab490bb63b73720a79a/bitnami/drupal/Chart.yaml

...
dependencies:
  - condition: mariadb.enabled
    name: mariadb
    repository: https://charts.bitnami.com/bitnami
    version: 9.x.x
  - name: common
    repository: https://charts.bitnami.com/bitnami
    tags:
      - bitnami-common
    version: 1.x.x
...

bitnami would need to patch every Chart to support co-existence of traditional and OCI charts... or use repo aliases:

# bitnais Drupal helm chart
...
dependencies:
  - condition: mariadb.enabled
    name: mariadb
    repository: alias:bitnami
    version: 9.x.x
  - name: common
    repository: alias:bitnami
    tags:
      - bitnami-common
    version: 1.x.x
...

with that change, the helm chart can be used in both tar.gz and OCI formats with dependencies that come from the appropriate repository. Alias support for OCI registries would also make migration to OCI easier.

AND most importantly for our usecase: The repository may be different in every datacenter: it may be hosted inside said datacenter without access to the internet (yes, this is a thing - it's non negotiable actually)

Activity

  1. mattfarina commented on Aug 10, 2021

    @mattfarina
    Collaborator

    I appreciate this issue and I've talked with others about it in the past.

    Repositories are easy to alias. When they are added you know the URL and you get an index. OCI registries are a little different. You can't get anything like an index file and there is no ability to search them. The way we would need to handle those are different.

    At the same time, it could be nice to be able to override something like https://charts.bitnami.com/bitnami without the upstream author making a change or the need to patch each chart. I wonder if there is an opportunity for an overrides file.

    In any case, I think the change would need to be written up as a Helm Improvement Proposal.

  2. cobexer commented on Aug 13, 2021

    @cobexer
    Author

    I don't consider this a feature request actually, I guess I wrote the issue to positively. This is a regression in functionality! (and yes I am aware that OCI is still experimental)

    I disagree about the complexity tough: the repository format/api is completely unrelated to the complexity of implementing alias functionality.

    I agree that adding the ability to override the repository URL as you suggest would need a HIP. That would be an interesting alternative to the alias functionality! I think that the alias functionality is sufficient for my usecase.

    Care to write a Helm Improvement Proposal for your idea?

  3. github-actions commented on Nov 12, 2021

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

  4. RomanBats commented on Nov 15, 2022

    @RomanBats

    The issue is closed as completed, but I haven't found this to be implemented. Am I missing something?

    I have a similar issue. Dev, Stage, and Prod environments use different registries and dev cannot access prod (and visa versa) so previously I used an alias to reference a base chart from the repository added to my environment. But with OCI I would need to build and push a chart 3 times with a different target OCI Registry (for each env), which is not an option.

    This is the only thing preventing me from migrating to OCI.

  5. sarathsprakash commented on Nov 23, 2023

    @sarathsprakash

    This has to be reopened , something essential!

  6. gjenkins8 commented on Dec 6, 2023

    @gjenkins8
    Member

    In any case, I think the change would need to be written up as a Helm Improvement Proposal.

    @sarathsprakash -- would you be willing to contribute a HIP here? I can reopen if so. Otherwise we close stale issues as completed, due to lack of community interest in implementing/actioning.

  7. sarathsprakash commented on Dec 11, 2023

    @sarathsprakash

    @gjenkins8 , The HIP already exists helm/community#259 , However the issue is marked completed

  8. GCHQDeveloper926 commented on Jan 16, 2024

    @GCHQDeveloper926

    This is blocking my ability to use aliases and deploy across multiple environments using aliases - is it possible to reopen this issue please or provide guidance if it has been implemented?

  9. sarathsprakash commented on Apr 10, 2024

    @sarathsprakash

    This has to be reopened

  10. pupseba commented on Apr 11, 2024

    @pupseba

    There is PR that seems to do the job: #11771

    This issue seems to be closed but with no fix, while the proposal done to implement the fix is still being ignored.

    Is this feature request/improvement being disregarded for a particular reason? We are moving our charts to an OCI repository and this limitation had put our migration into a stop.

  11. sarathsprakash commented on Jun 6, 2024

    @sarathsprakash

    @gjenkins8 This is necessary feature. HIP and code changes are waiting to be merged and released, can this be prioritized for upcoming release

  12. sarathsprakash commented on Jul 7, 2024

    @sarathsprakash

    It would be a great relief for lot of people for this feature to be released considering the PR already exist from more than an year to be merged @gjenkins8

  13. 4 remaining items

  14. Robsmon commented on Nov 8, 2024

    @Robsmon

    Is there any update for the feature?

  15. sjadema-duo commented on Jan 9, 2025

    @sjadema-duo

    We're waiting on an implementation of this feature as well. Any updates?

  16. github-actions commented on Aug 26, 2025

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

  17. Ghabi-ISC commented on Aug 26, 2025

    @Ghabi-ISC

    More waiting for a solution! This feature is very important for many people!

  18. cobexer commented on Sep 21, 2025

    @cobexer
    Author

    I rebased #11771 on top of main for inclusion in v4 PTAL

  19. github-actions commented on Dec 21, 2025

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

  20. grigoni commented on Jan 13, 2026

    @grigoni

    Looking forward to this

  21. TerryHowe commented on Jan 18, 2026

    @TerryHowe
    Contributor

    I think helm/community#391 would be a better way to handling mirroring/aliases.

  22. github-actions commented on Apr 19, 2026

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

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