-
Notifications
You must be signed in to change notification settings - Fork 261
using alias in HelmRelease.spec.chart.repository #274
Comments
You are not using the Working with 'aliases' is a planned feature, details about this can be found here: #142 (comment) |
What is the purpose of defining own repositories.yaml? Does it only serve as an authentication point? |
Correct, it allows you to configure certificates and other authentication data for repositories requiring this. If they are publicly available, you do not have to add them to your |
Thank you. You may think about writing this in the documentation more clearly and directly. You mention now that it is better to be explicit, but not that it is a requirement. (https://docs.fluxcd.io/projects/helm-operator/en/latest/references/helmrelease-custom-resource.html#cite-why-repo-urls) Then in many places you mention the file |
The first two sentences clearly state in my opinion that using an alias in the
In addition, a bit higher up on the page the following is stated:
What phrasing would have made this easier to grasp for you? |
I treat the first sentence as a feature. For example, I can move all releases to a new location, and change the configuration only in repositories.yaml. Dependency injection pattern. I understand that careless use can be a problem, but it doesn't follow from the sentence that I can't use it. |
Token note of this in the issue linked above, which now supersedes this issue. Thanks for your suggestions 🌷 |
I tried to use alias in HelmRelease.spec.chart.repository. I created secret with our repositories.yml and uncommented both volumes: for repositories and for cache. Unfortunately alias is not parsed. I got this error:
caller=release.go:140 component=release release=prometheus targetNamespace=prometheus resource=prometheus:helmrelease/prometheus helmVersion=v3 erro r="chart unavailable: could not find protocol handler for: "
However when I put actual URL in repository everything works (
repository: https://github.jparrowsec.cnpany.com/pages/helm-charts
).The problem may come from that comparision: https://github.com/fluxcd/helm-operator/blob/master/pkg/helm/v3/pull.go#L54. In my opinion it should compare repoURL with entry.Name.
The text was updated successfully, but these errors were encountered: