Skip to content

Commit

Permalink
fix(helm_release): update chart releaser image. (#512)
Browse files Browse the repository at this point in the history
fix(helm_release): update chart releaser image.

1. Updates the chart releaser action version to v1.1.0
2. Provides the chart directory to the releaser action.
3. Indents NOTES.txt

Signed-off-by: Ashutosh Kumar <[email protected]>
  • Loading branch information
Ashutosh Kumar authored Nov 19, 2020
1 parent 682db56 commit 015fbd6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 27 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/chart-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,49 @@ on:
push:
paths:
- 'deploy/helm/**'
branches:
- master
pull_request:
paths:
- 'deploy/helm/**'
branches:
- master

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

- name: Fetch history
run: git fetch --prune --unshallow
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-testing (lint)
id: lint
uses: helm/[email protected]
- uses: actions/setup-python@v2
with:
command: lint
config: ct.yaml
python-version: 3.7

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config ct.yaml)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml

- name: Create kind cluster
uses: helm/[email protected]
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
uses: helm/[email protected]
with:
command: install
config: ct.yaml
run: ct install --config ct.yaml
17 changes: 8 additions & 9 deletions .github/workflows/release-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Fetch history
run: git fetch --prune --unshallow
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
# See https://github.com/helm/chart-releaser-action/issues/6
- name: Install Helm
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.0.0
uses: helm/chart-releaser-action@v1.1.0
env:
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
with:
charts_dir: deploy/helm
4 changes: 2 additions & 2 deletions deploy/helm/charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: openebs-ndm
description: Kubernetes Storage Device Management. Also used to maintain the inventory of block devices.
version: 1.0.0
appVersion: 1.0.0
version: 1.0.1
appVersion: 1.0.1
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
home: http://www.openebs.io/
keywords:
Expand Down
7 changes: 4 additions & 3 deletions deploy/helm/charts/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
The OpenEBS Node Disk Manager has been installed. Check its status by running:
$ kubectl get pods -n {{ .Release.Namespace }}

Use `kubectl get bd -n {{ .Release.Namespace }} ` to see the list of blockdevices attached to the
Kubernetes cluster nodes.
Use `kubectl get bd -n {{ .Release.Namespace }} ` to see the list of
blockdevices attached to the Kubernetes cluster nodes.

For more information, visit our Slack at https://openebs.io/community or view the documentation online at http://docs.openebs.io/.
For more information, visit our Slack at https://openebs.io/community or view
the documentation online at http://docs.openebs.io/.

0 comments on commit 015fbd6

Please sign in to comment.