[Add] : Helm chart for the support of multiple versions #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install and Test Helm Chart | |
on: pull_request | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Install Kind | |
uses: helm/[email protected] | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: '3.6.0' | |
- name: Create Kind Cluster | |
run: | | |
kind create cluster | |
- name: Install yq | |
run: | | |
sudo snap install yq | |
- name: Install and test Redis Related 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 | |
chart_version=$(yq e .version ./charts/$dir/Chart.yaml) | |
echo "Installing $dir chart with version $chart_version..." | |
helm install $dir ./charts/$dir/ --version $chart_version | |
helm test $dir | |
done | |
echo "Listing installed Helm charts..." | |
helm ls | |