Skip to content

Commit

Permalink
Merge pull request #65 from kvaps/helm-release
Browse files Browse the repository at this point in the history
Add github action to release helm charts
  • Loading branch information
k8s-ci-robot committed Sep 30, 2021
2 parents 5652f4f + f9faf45 commit fec7159
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/chart-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: Chart Lint and Test
on:
push:
paths:
- 'deploy/helm/**'
- 'charts/nfs-server-provisioner/**'
branches:
- master
pull_request:
paths:
- 'deploy/helm/**'
- 'charts/nfs-server-provisioner/**'
branches:
- master

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/helm-chart-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Helm Charts

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ maintainers:
email: joaocc-dev@live.com
home: https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner
sources:
- https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner/tree/HEAD/deploy/helm
- https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner/tree/HEAD/charts/nfs-server-provisioner
keywords:
- nfs
- storage
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ package manager.
To install the chart with the release name `my-release`:

```console
$ helm install stable/nfs-server-provisioner --name my-release
$ helm repo add nfs-ganesha-server-and-external-provisioner https://kubernetes-sigs.github.io/nfs-ganesha-server-and-external-provisioner/
$ helm install my-release nfs-ganesha-server-and-external-provisioner/nfs-server-provisioner
```

The command deploys nfs-server-provisioner on the Kubernetes cluster in the default
Expand Down Expand Up @@ -86,15 +87,15 @@ their default values.
| `podSecurityContext` | Security context settings for nfs-server-provisioner pod (see https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) | `{}` |

```console
$ helm install stable/nfs-server-provisioner --name my-release \
$ helm install nfs-server-provisioner nfs-ganesha-server-and-external-provisioner/nfs-server-provisioner \
--set=image.tag=v1.0.8,resources.limits.cpu=200m
```

Alternatively, a YAML file that specifies the values for the above parameters
can be provided while installing the chart. For example,

```console
$ helm install stable/nfs-server-provisioner --name my-release -f values.yaml
$ helm install nfs-server-provisioner nfs-ganesha-server-and-external-provisioner/nfs-server-provisioner -f values.yaml
```

> **Tip**: You can use the default [values.yaml](values.yaml) as an example
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
remote: origin
target-branch: master
chart-dirs:
- deploy/helm
- charts/nfs-server-provisioner
helm-extra-args: --timeout=500s

0 comments on commit fec7159

Please sign in to comment.