Skip to content
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

Add github action to release helm charts #35

Merged
merged 3 commits into from
Feb 4, 2021

Conversation

yonatankahana
Copy link
Contributor

Add github action to create chart releases automatically once the chart version is bumped.
After this PR and creation of orphan branch named gh-pages - this repository could be used in helm repo add command.

helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/

For example, my fork can be used:

$ helm repo add nfs-subdir-external-provisioner https://yonatankahana.github.io/nfs-subdir-external-provisioner/
"nfs-subdir-external-provisioner" has been added to your repositories
$ helm search repo
NAME                                           	CHART VERSION	APP VERSION	DESCRIPTION                                       
nfs-subdir-external-provisioner/nfs-subdir-external-provisioner	4.0.0        	3.1.0      	nfs-subdir-external-provisioner is an automatic...

To create the gh-pages branch use: git checkout --orphan gh-pages.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 11, 2021
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 11, 2021
Signed-off-by: Yonatan Kahana <yonatankahana.il@gmail.com>
@wongma7
Copy link
Contributor

wongma7 commented Jan 11, 2021

I'm not sure if I have permission to create a new branch, will try.

Also will need make sure the gh-pages branch gets marked unprotected so that the action has permission to write to it (obviously github action cannot sign a cla):

https://github.com/kubernetes/test-infra/pull/20323/files

git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Install Helm
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

excellent, i deleted that.

Signed-off-by: Yonatan Kahana <yonatankahana.il@gmail.com>
@yonatankahana
Copy link
Contributor Author

Also will need make sure the gh-pages branch gets marked unprotected so that the action has permission to write to it (obviously github action cannot sign a cla)

follow: kubernetes/test-infra#20453

@kmova
Copy link
Contributor

kmova commented Jan 22, 2021

Was able to push in the gh-pages branch. @yonatankahana @wongma7 - please check if you would like to modify/update the default index.md with any further information.

@yonatankahana
Copy link
Contributor Author

yonatankahana commented Jan 22, 2021

please check if you would like to modify/update the default index.md with any further information.

i have left 2 cosmetics comments and 1 important comment about the readme location.

edit:
also solved the merged conflict since #39 merged.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 22, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 22, 2021
yonatankahana referenced this pull request Jan 22, 2021
Signed-off-by: kmova <kiran.mova@mayadata.io>
@yonatankahana yonatankahana requested a review from wongma7 January 24, 2021 16:18
@kmova
Copy link
Contributor

kmova commented Feb 2, 2021

@yonatankahana - just wondering if we should keep the charts in the following location => deploy/helm/charts, to have all the different ways of deployments in the deploy folder.

The chart release can be configured with a custom directory as follows: https://github.com/openebs/node-disk-manager/blob/master/.github/workflows/release-charts.yml#L33

@yonatankahana
Copy link
Contributor Author

yonatankahana commented Feb 4, 2021

@yonatankahana - just wondering if we should keep the charts in the following location => deploy/helm/charts, to have all the different ways of deployments in the deploy folder.

The chart release can be configured with a custom directory as follows: https://github.com/openebs/node-disk-manager/blob/master/.github/workflows/release-charts.yml#L33

I always prefer to stick with as many defaults as possible, it leads to conventions. If everyone uses the default it will be easier for the user to find what they are looking for because it will be the same in every (git as helm) repositories.
In a short search I did in other repositories I see that there is a lack of convention and everyone places the chart in a different place so that in any case - there is no real convention other than this default.
(One way or another - the deploy/ folder with the deploy/objects/ feels a bit like duplication.)

tl;dr
I'll go with the default: charts/.

@kmova
Copy link
Contributor

kmova commented Feb 4, 2021

@yonatankahana, I agree with:

stick with as many defaults as possible

Copy link
Contributor

@kmova kmova left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kmova, yonatankahana

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants