diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3d01b3dc..748cf766 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/helm/kubedl/values.yaml b/helm/kubedl/values.yaml index 075950b3..17314df3 100644 --- a/helm/kubedl/values.yaml +++ b/helm/kubedl/values.yaml @@ -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: