Serve helm chart more idiomatically
See https://github.com/cdr/code-server/pull/2048#issuecomment-724951228
Instead of GH pages, we can push to https://artifacthub.io
@nhooyr is this to be picked up internally due to the dependence on ArtifactHub or are you looking for people to contribute to the CI/GitHub Actions element?
So re artifact hub looks like I was wrong, we still need to host our own helm repository.
I think this is best handled internally. I'll try to get this done for the next release.
Anything we (the community) can do to push this along?
Good question! So I am not too familiar with helm chart, not sure exactly how I can help. Any ideas @jawnsy? (apologies for the lack of context, I know just about as much as you in terms of what this is, but you have Helm experience I believe)
@jsjoeio My suggestion would be to use ArtifactHub. You'll need to create an Account/Organization. The Docs are located here and it's fairly simple to setup.
LitigationsSent using the mobile mail appOn 10/27/21 at 6:23 PM, Dan wrote:
From: "Dan" ***@***.***>Date: October 27, 2021To: "cdr/code-server" ***@***.***>Cc: "Subscribed" ***@***.***>Subject: Re: [cdr/code-server] Serve helm chart more idiomatically (#2302)
@jsjoeio My suggestion would be to use ArtifactHub. You'll need to create an Account/Organization. The Docs are located here and it's fairly simple to setup.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
Hi @maxirus
Thank you for your interest in finally clearing this issue from the backlog!
Hopefully I can set you on the right track to getting this resolved and making it easier than ever to install the Helm chart.
As you mentioned, the first thing we'll need is a method of hosting the charts. Really this decision needs to be made by someone like @jsjoeio as it may affect commercials due to hosting costs.
I would first settle on a distribution method, be that Artifactory, ArtifactHub or ChartMuseum what ever, once we all agree. I'd PR changes to the pipelines to support publishing based on Git Refs to said repository.
I guess if we get to that point we can we review where we're up to and decide the next steps.
Hope this helps, if you have any questions don't hesitate to ask me!
Stop please
Sent from my iPhone
On Oct 28, 2021, at 4:43 AM, Matthew Beckett @.***> wrote:
Hi @maxirus
Thank you for your interest in finally clearing this issue from the backlog!
Hopefully I can set you on the right track to getting this resolved and easier than every to install the Helm chart.
As you mentioned, the first thing we'll need is a method of hosting the charts. Really this decision needs to be made by some like @jsjoeio as it may affect commercials due to hosting costs.
I would first settle on a distribution method, be that Artifactory or ChartMuseum what ever, once all agreee. I'd PR changes to the pipelines to support publishing based on Git Refs.
I guess if we get to that point we can we review where we're up to and decide the next steps.
Hope this helps, if you have any questions don't hesitate to ask me!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Thank you all for the context! Super helpful. We have some higher priorities but I've added it to the next milestone (after this one) so we'll tackle it together then.
You can use GitHub actions to build the chart automatically and host it on this repo's gh-pages branch, there is no need for another service. It's super simple, here is a sample repo that uses this setup.
Let me know if I can help.
Oh wow, good to know! Thanks for the links and offering to help. When we tackle this, we may add you as a PR reviewer if that's okay
Any updates on this? Not sure if this chart is official or not, but it is quite out of date when compared to the Chart version in this git repo (1.0.3 vs 2.0.1 for Chart, 3.10.2 vs 4.0.2 for Application). Having a "real" Helm repository to refer to would make gitops deployments much easier.
Hello,
Do we have any news on that issue?
No plans on changing anything with the Helm chart at the moment.
Proposal: Publish the Helm chart to an OCI registry (e.g., GitHub Container Registry) to enable direct installation.
Example pipeline
name: Publish Helm Chart
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to GHCR
run: echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Package and Push Chart
run: |
helm package ./ci/helm-chart
helm push code-server-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts