Skip to content

Commit

Permalink
validate helm chart job added (#287)
Browse files Browse the repository at this point in the history
* validate helm chart job added

Signed-off-by: Basit Hasan <[email protected]>

* minor fix

Signed-off-by: Basit Hasan <[email protected]>

* add version in values.yaml

Signed-off-by: Basit Hasan <[email protected]>

---------

Signed-off-by: Basit Hasan <[email protected]>
  • Loading branch information
basit9958 authored Apr 1, 2023
1 parent efab928 commit 6a0e2aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ jobs:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Validate Helm Chart
run: |
chart_version=$(yq e '.version' helm/kubedl/Chart.yaml)
values_version=$(yq e '.version' helm/kubedl/values.yaml)
if [ "$chart_version" != "$values_version" ]; then
echo "ERROR: Chart version ($chart_version) does not match values version ($values_version)"
exit 1
fi
- name: Run Unit Tests
run: |
make generate
Expand Down
6 changes: 6 additions & 0 deletions helm/kubedl/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.


# This is the values version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

replicaCount: 2

image:
Expand Down

0 comments on commit 6a0e2aa

Please sign in to comment.