Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

feat(secondary-directory): Support for secondary directory to get hel… #16

Conversation

loverto
Copy link
Contributor

@loverto loverto commented Sep 22, 2018

  1. Support for such a repo and is compatible with the previous
    https://burdenbear.github.io/kube-charts-mirror/

It relates to the following issue #s:

1. format project style
}
//remove leading "/" to avoid URI missing, by ref: https://github.com/helm/helm/issues/3878
//fix https://github.com/sonatype-nexus-community/nexus-repository-helm/issues/14
fileName = fileName.startsWith("/") ? fileName.substring(fileName.lastIndexOf("/") + 1) : fileName;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! Now I understand the change you are making.

This assumes that you setup a repo that is like:

http://host.name/path/

That path has an index.yaml underneath it, and then also the charts, and the charts are being referenced via:

http://host.name/path/chart.tgz

This change will make that work for sure, and should work fine for others where the all the files are at the root, however if someone does:

http://host.name/index.yaml

http://host.name/charts/charts.tgz

It will fail in this case. I'm not knowledgeable enough to know if anyone has done that yet, but we should think about it. Any thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the case, I think I can add a path to the original characters in the metadata. At the time of the proxy, get the original address

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, what you say is similar to another issue I mentioned.
#8

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where the second options can be satisfied, I think that's another problem.

@ronny35
Copy link

ronny35 commented Sep 27, 2018

When these features can be merged ?

@loverto
Copy link
Contributor Author

loverto commented Sep 27, 2018

now

@mlukaretkyi
Copy link
Contributor

#81

@mlukaretkyi mlukaretkyi closed this Sep 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for secondary directory to get helm warehouse
4 participants