-
Notifications
You must be signed in to change notification settings - Fork 8
60 lines (46 loc) · 1.92 KB
/
test-installation.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
59
name: Test Alcide Advisor Helm Charts
on:
push:
branches:
- '*'
jobs:
installation-tests:
name: Alcide Advisor Install Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Launch Cluster
uses: helm/[email protected]
with:
version: v0.7.0
name: kruzer
node_image: kindest/node:v1.16.4
wait: 5m
install_local_path_provisioner: true
- name: Install Helm 3
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: Prepare Namespaces
run: |
kubectl create ns alcide-advisor
- name: Test Advisor CronJob
run: |
echo "Installing Alcide Advisor CronJob with Exported Profile"
helm upgrade -i -n alcide-advisor --wait exportedprofile deploy/charts/alcide-advisor-cronjob
echo "Installing Alcide Advisor CronJob"
helm upgrade -i -n alcide-advisor --wait scan deploy/charts/alcide-advisor-cronjob \
--set alcide.advisorProfileFile=advisor-profiles/alcide-kubernetes-assessment.advisor
kubectl -n alcide-advisor get cronjobs
kubectl -n alcide-advisor describe cronjobs
- name: Test Advisor Job
run: |
echo "Installing Alcide Advisor Job with Exported Profile"
helm upgrade -i -n alcide-advisor --wait scanjob deploy/charts/alcide-advisor-job
echo "Installing Alcide Advisor"
helm upgrade -i -n alcide-advisor --wait argocd deploy/charts/alcide-advisor-cronjob \
--set alcide.advisorProfileFile=advisor-profiles/alcide-kubernetes-assessment.advisor
kubectl -n alcide-advisor get jobs
kubectl -n alcide-advisor describe jobs