-
Notifications
You must be signed in to change notification settings - Fork 238
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
[BUG] Helm repo add not working as expected #55
Comments
@mprimeaux could you take a look on this? |
@peterzhuamazon It appears the GitHub pages branch is private or not yet setup. Would you mind confirming that the "Pages" settings on this repository is set correctly. For example, this is how I have my fork repository set for https://mprimeaux.github.io/helm-charts/ |
You will first need to create a branch named |
@peterzhuamazon It seems the chart releaser workflow is failing. Essentially, what happened is the initial merge to Then PR #19 was merged without incrementing the chart version, which caused the subsequent actions workflow to fail. Recall that we enabled the validation of the Helm chart version in compliance with Semver 2; it MUST be incremented with each change. PR #19 should have incremented the chart version. To fix this, we will need to:
I can submit a PR to compensate for PR #19 but I of course do not have permissions to activate GitHub Pages on this repository. Please let me know. Happy to help. Here is an example of it working as documented against my forked repository when the actions workflow succeeds: ❯ helm repo add opensearch https://mprimeaux.github.io/helm-charts/
"opensearch" has been added to your repositories
❯ helm search repo opensearch
NAME CHART VERSION APP VERSION DESCRIPTION
opensearch/opensearch 1.0.1 1.0.0 A Helm chart for Kubernetes
opensearch/opensearch-dashboards 1.0.1 1.0.0 A Helm chart for OpenSearch Dashboards |
Thanks @mprimeaux for the detailed comments. I will try to enable this tomorrow. |
Here is a minor update to watch. While I do not believe it applies to us since we have a public repository, we ran into the issue in our private repository. |
Hi @mprimeaux another question if you dont mind. I assume gh-pages branch is synced with main. If so, how do we approach to enable that? PS: I also realize our description of opensearch helm chart is still:
Probably needs to rename it once I bump versions. Thanks. |
@peterzhuamazon No worries. Happy to provide more detail. The Chart Releaser Github action is what pushes the index to the
There is not a need to create and maintain version-specific branches but more of a stylistic question to be answered by the maintainers. The Chart Releaser tags with the version number and then generates release artifacts. Here is an example. Yes, agree the description should be updated. |
Thanks @mprimeaux this does raise a concern from me. The release show as I am wondering if we can have a fix to this before we enable the repo? |
@peterzhuamazon The reason for the versions at 1.0.2 is because I was playing around in my forked repository. You can see I updated the chart versions here and here (again, in my forked repository). One option to avoid confusion is for me to delete my forked repository or at least make it private. |
@mprimeaux @peterzhuamazon Till we have it working end to end can we revert the commit for linting and releasing as we have put the wrong installation instructions in the README. Once we fix we can re-merge. |
I understand that is your own fork, but still if Semver version bumping is required now, you will have situation where |
@peterzhuamazon I would sincerely prefer to work through this simple fix, which I described in this comment. The A way forward would be to disable the version checking in the Helm Chart releaser action but, as I agree with @smlx , it is critical to enforce Semver in charts so the community using it understands the impact of changes. Can we please work through this? |
@peterzhuamazon This is usual as the The Chart can be at My opinion is we do not want the community to think they are using the same version of the chart when changes to the chart have been made. |
I think chart version and imageTag should match. It makes things clearer and simpler, and I don't care much about the |
@TheAlgo and I have some concerns on release happen on every small changes. @DandyDeveloper @smlx please let us know your thoughts on this. |
Please take this comment as nothing but constructive as it is often difficult to understand tone and intention in written words but this is not how the Kubernetes community broadly works. I can provide countless examples (i.e. here and here for the kube-prometheus-stack and here and here for the AWS Load Balancer Controller) where there is an expectation that the lifecycles of the Helm chart, the application, and the related image remain distinct because they do operate at different frequencies. I sincerely appreciate your understanding and hearing me out on this point. Please let me know how I can support as many of us are eager to use the Helm charts. |
Not sure if I am understanding correct but the chart version and the underlying docker image version is matching for 2 latest versions of AWS Load Balancer Controller. |
@TheAlgo I believe you are comparing the |
@mprimeaux Apologies I believe I mis-interpreted at first 😅. Need to restart myself.
Does this sound good? |
@TheAlgo No worries, mate. Ah yes, that sounds good. I do believe quite a few Helm charts do also prefer to keep the |
@TheAlgo As a follow-up and for completeness, the Helm Chart Releaser only validates the |
Assuming I'm reading right, I agree wholly with @mprimeaux on this. Version is distinctly different from the imageTag referenced by the Example, just to be clear. I make a PR updating the StatefulSet with some simple changes, and I update the That way, when the PR is merged, we have a history of where something broke and exactly what happened to break it. The linting from If I'm misunderstood, disregard and let me know. I'll read again and give a better more coherent answer. |
I agree with @DandyDeveloper and @mprimeaux. The Helm community and tooling is highly opinionated regarding development and release workflow:
The prometheus community repo is a good example of how the See in particular their contribution guidelines: https://github.com/prometheus-community/helm-charts/blob/main/CONTRIBUTING.md |
@smlx @mprimeaux @DandyDeveloper I understand the view point of some of the community charts. Also, @anuragsarkar97 opinions on this? |
@TheAlgo I agree and recommend for consideration that we embrace the Keep A Change Log format, which, in a nutshell, covers:
This format also subscribes to Semver. |
@peterzhuamazon @TheAlgo @smlx @DandyDeveloper If you are supportive, I will submit a PR tomorrow (US Central Time) to address this thread and issue. I appreciate your consideration. If you prefer a different tact, then please let me know. |
Added for new features. This is neat and clean @mprimeaux . I am fine with this. |
Hi @mprimeaux this page is now working but still could not add helm repo
Seems like the yaml still not existing. Thanks. |
Thanks, @peterzhuamazon . I will review it now. Would you please confirm the gh-pages branch is not set to private access? |
The chart releaser thought there was nothing to do as per this step and so the fix is to increment that patch version for each chart. I'll submit a PR after testing in my fork, which I'll do now. |
It works @mprimeaux:
|
Great news! I sincerely appreciate you and all of the maintainers diligence and help. Once you're comfortable then I will submit a PR with the new installation instructions. |
Thanks everyone in the thread for help, especially @mprimeaux who put such efforts into getting it running. Thanks. |
I am not aware of any other steps in this repository other than to update the installation steps. I do see the OpenSearch docs also would need to be updated to reflect the new installation steps but believe this is outside the scope of this repo. Will wait for @smlx @DandyDeveloper and @TheAlgo to review. |
I will contact the doc team to make the changes on OpenSearch docs once we have installations steps ready in this repo, so they can update with the same process. Thanks. |
Thanks, @peterzhuamazon. In advance, I'll submit a PR for review. Should any of the maintainers prefer additional changes then I'm happy to address in the PR. Again, thanks for your support and coordination. |
@peterzhuamazon I did notice that CHANGELOG.md needs to reflect chart versions Question is do we want to remove |
@peterzhuamazon There are a few other observations:
I'll address bullet 1 in the PR. However, it seems to me that we'd want to merge the contents of the README referring to in bullet 2 into the repository root |
If each chart folder has a corresponding changelog, I am in support of removing the root changelog. |
I think @TheAlgo worked on the README of charts, needs his input on 2 here. |
Absolutely. The content of the README in the charts folder seemed more applicable to the |
Sorry @peterzhuamazon @mprimeaux I missed this thread completely. I guess we should add links to different charts in that README.md and have separate README for |
Is this issue ready now for closure?
|
@TheAlgo No worries. We currently have separate CHANGELOGs and READMEs for both charts. i.e. OpenSearch README.md and CHANGELOG.md and OpenSearch Dashboards README.md and CHANGELOG.md. We also reference these in the root README.md. I think we should remove the root-level CHANGELOG.md, which I elevated for discussion in #107. This issue can be closed. |
@mprimeaux I agree on removing the root level README. Closing this issue for now as the issue is already resolved. |
Describe the bug
Helm repo add not working as expected in https://github.com/opensearch-project/helm-charts#installation
To Reproduce
$ helm repo add opensearch https://opensearch-project.github.io/helm-charts/
Error: looks like "https://opensearch-project.github.io/helm-charts/" is not a valid chart repository or cannot be reached: failed to fetch https://opensearch-project.github.io/helm-charts/index.yaml : 404 Not Found
Expected behavior
Helm repo added
Chart Name
All
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: