Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path naming issue in gitops helm mirror command #772

Open
thecooldrop opened this issue Jun 5, 2021 · 0 comments
Open

Path naming issue in gitops helm mirror command #772

thecooldrop opened this issue Jun 5, 2021 · 0 comments

Comments

@thecooldrop
Copy link
Contributor

During mirroring of Helm repositories based on charts/repositories.yml file the repositories listed in that file get downloaded into temporary directory.

Assuming that following entry is present in repositories.yml :

repositories:
- prefix: banzaicloud-stable
  urls:
  - https://kubernetes-charts.banzaicloud.com

then this content would be mirrored into directories named:

<temp root as chosen by Golang>/gh-pages-tmp-<some random string>/banzaicloud-stable/https:/kubernetes-charts.banzaicloud.com/charts/<name of chart>-<version of chart>.tgz

Now locally this leads to directory structure which has folder named https: with further subfolders.

This seems incorrect to me because:

  • If we want to mirror a repository, then I would expect the result also to be proper repository structure
  • In mirror.go on line 206 in function DownloadIndex the name of the variable is name and not url, which kind of implies that the code writer was actually meaning to use a name and not an URL.

Expected behavior:

In this case I would expect the repository to be mirrored in following directory structure:

<temp root>/gh-pages-<random string>/banzaicloud-stable/<name of chart>/<name-of-chart>-<version>.tgz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant