-
Notifications
You must be signed in to change notification settings - Fork 100
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
feat: create helm chart repository in gh-pages #1931
Conversation
|
Welcome @patrickleet! It looks like this is your first PR to knative/operator 🎉 |
Hi @patrickleet. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
example: https://patrickleet.github.io/knative-operator/
|
perhaps a better trigger than push to main could be used maybe on tag published
but it wouldn't run until there was a new tag that way |
Amazing! |
@houshengbo you still the person to tag to review this? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1931 +/- ##
=======================================
Coverage 63.88% 63.88%
=======================================
Files 54 54
Lines 2622 2622
=======================================
Hits 1675 1675
Misses 830 830
Partials 117 117 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@patrickleet Thanks for the contribution. Could you first rebase this PR on the main branch? |
have to - no, worth doing so - I think so. gh-pages is a special branch in Github to host static sites - so therefore the index.yaml file can be used more easily. The file could be kept in main, but that adds the responsibility to main of being a helm repository as well, and it's triggered on push to main, so that could cause the action to run, commit, and run again. gh-pages is a new branch without any history of the project to be clear. The user experience is better with gh pages, imo
vs
The |
@houshengbo rebased |
where would you like to add
to the docs - seems they aren't in this repo? https://knative.dev/docs/install/operator/knative-with-operators/ would make the most sense |
I just want to point out that people have been asking for this for nearly 3 and half years - myself included, I've been using knative for years - being able to install it like every other tool I use would be fantastic |
Docs to go along with new helm chart repository knative/operator#1931
Added PR for docs knative/docs#6158 |
rebased again |
@patrickleet The only thing I need to do to cut a new release is to create a new branch named |
@houshengbo I have it set up to run on every commit to main The script checks the knative operator releases and builds the index.yaml file based on what's in there. So if the script is run, and nothing has changed since the last time, the same file will be generated. The script checks if there any diffs using git, and only commits to gh-pages if there has been changes, which only happens when there is a new release. So this would kick off the next time a commit to main happened after you released. Wouldn't be manual work, really, just a waiting period, which isn't ideal. Probably running when a tag is added is best, I'm not sure if release is an event type or not - on tag for sure is. |
Ok, yea, looks like there are release triggers
should do the trick. I'll make an update. |
@patrickleet Thanks for the work, would you mind doing one more rebased? I would like to approve it. |
try with helm index.yaml (@kromanow94) find all helm chart releases and put to index.yaml (@kromanow94) add chart description and version (@kromanow94) add bash script for helm repo index.yaml generation from releases (@kromanow94) script doesnt need token, rm unused python version, move to hack/, run from publish-helm gha workflow push changes remove unused py file create clean branch for gh-pages dont delete the script we need typo typo gh-pages html remove debug logs git fetch if statement wasnt working copy needed files from hack to .tmp to use in empty gh-pages debug debug cleanup debug logs remove test file fix: token not needed to install helm fix: change trigger to release published
@houshengbo rebased! |
I see @dprotaso set up a gh-pages branch yesterday |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: houshengbo, patrickleet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@patrickleet That's per my request. |
Fixes #1851 and fixes #1881
Also requested in #751, #914, #1525,
Proposed Changes
This publishes a gh-pages branch as a helm repo for the package.
You will need to go to repo settings and enable it (Settings -> Pages):
I cherry picked @kromanow94's commits from #1851 but they got squashed out. I modified that script, moved it to hack/, created a go template to render HTML from the index.yaml file, and added a github workflow that handles all of that.
It runs on every push to main but only commits to gh-pages if there are differences, which only happens when y'all release.
This allows users to use Helm chart via:
Release Note