Skip to content

Commit 69f6a8f

Browse files
authored
Feat: Add AIBrix Helm chart CI (#1370)
* Feat: Add chart CI Signed-off-by: Omer Aplatony <[email protected]> * Fixed chart-ci to work with envoy-gateway helm Signed-off-by: Omer Aplatony <[email protected]> --------- Signed-off-by: Omer Aplatony <[email protected]>
1 parent 60b8dde commit 69f6a8f

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/chart-ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Test Helm Chart
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'dist/chart/**'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out source repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Helm
16+
uses: azure/[email protected]
17+
with:
18+
version: v3.17.0
19+
20+
- uses: actions/[email protected]
21+
with:
22+
python-version: '3.x'
23+
check-latest: true
24+
25+
- name: Set up chart-testing
26+
uses: helm/[email protected]
27+
28+
- name: Run chart-testing (lint)
29+
run: helm lint ./dist/chart
30+
31+
- name: Create kind cluster
32+
uses: helm/[email protected]
33+
34+
- name: Install kubectl
35+
uses: azure/setup-kubectl@v4
36+
37+
- name: Install Envoy Gateway
38+
run: |
39+
helm install eg oci://docker.io/envoyproxy/gateway-helm --version v0.0.0-latest -n envoy-gateway-system --create-namespace --wait
40+
41+
- name: Install Kuberay operator
42+
run: |
43+
helm install kuberay-operator kuberay/kuberay-operator \
44+
--namespace kuberay-system \
45+
--version 1.2.1 \
46+
--set env[0].name=ENABLE_PROBES_INJECTION \
47+
--set-string env[0].value=false \
48+
--set fullnameOverride=kuberay-operator \
49+
--set featureGates[0].name=RayClusterStatusConditions \
50+
--set featureGates[0].enabled=true \
51+
--create-namespace \
52+
--wait
53+
54+
- name: Install Aibrix CRDs
55+
run: |
56+
kubectl apply -f dist/chart/crds
57+
58+
- name: Chart test
59+
working-directory: ./dist/chart
60+
run: |
61+
kubectl create namespace aibrix-system
62+
ct install --chart-dirs . --charts . --namespace aibrix-system

0 commit comments

Comments
 (0)