-
Notifications
You must be signed in to change notification settings - Fork 84
58 lines (47 loc) · 1.62 KB
/
test-charts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 cert-manager CRDs and Helm Chart
run: |
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.5.3 \
--set installCRDs=true
- name: Ensure cert-manager is fully deployed
run: |
kubectl rollout status deploy/cert-manager -n cert-manager
kubectl rollout status deploy/cert-manager-cainjector -n cert-manager
kubectl rollout status deploy/cert-manager-webhook -n cert-manager
- 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