diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 9af8708..741b203 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -8,14 +8,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Helm uses: azure/setup-helm@v3 with: - version: v3.5.4 + version: v3.16.2 - uses: actions/setup-python@v4 with: diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index f303b51..f15e437 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -25,3 +25,4 @@ jobs: VALIDATE_YAML: false DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FILTER_REGEX_EXCLUDE: .*(README\.md|NOTES.txt).* diff --git a/.github/workflows/test-charts.yaml b/.github/workflows/test-charts.yaml index 26dc13a..7af5a1a 100644 --- a/.github/workflows/test-charts.yaml +++ b/.github/workflows/test-charts.yaml @@ -8,7 +8,9 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Create k8s Kind Cluster uses: helm/kind-action@v1.5.0 @@ -18,24 +20,18 @@ jobs: - name: Install Helm uses: azure/setup-helm@v3 with: - version: v3.5.4 + version: v3.16.2 - - name: Install yq - run: | - sudo snap install yq + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.6.0 + + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + check-latest: true - - name: Install and test Redis Related Helm charts + - name: Install and test Helm charts run: | kubectl cluster-info --context kind-kind - chart_dirs=("redis-operator" "redis" "redis-cluster" "redis-replication" "redis-sentinel") - for dir in "${chart_dirs[@]}" - do - if [[ -f ./charts/$dir/Chart.yaml ]]; then - helm dependency update ./charts/$dir/ - fi - chart_version=$(yq e .version ./charts/$dir/Chart.yaml) - echo "Installing $dir chart with version $chart_version..." - helm install $dir ./charts/$dir/ - helm test $dir - done - echo "Listing installed Helm charts..." + changed=$(ct list-changed --config ct.yaml) + ct install --config ct.yaml diff --git a/README.md b/README.md index a268b64..9425882 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,6 @@ helm repo add ot-helm https://ot-container-kit.github.io/helm-charts You can then run `helm search repo ot-helm` to see the charts. -### Helm Charts List - -Currently supported helm charts are:- - -- [Redis Operator](./charts/redis-operator) -- [Redis Standalone](./charts/redis) -- [Redis Cluster](./charts/redis-cluster) -- [K8s Vault Webhook](./charts/k8s-vault-webhook) ### Pre-Requisities