Skip to content

Commit 4f309a6

Browse files
authored
Update chart-test.yml github action
1 parent 4486dd7 commit 4f309a6

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/chart-test.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,27 @@ jobs:
2626
with:
2727
version: '3.12.0'
2828

29+
- name: Create kind cluster config
30+
run: |
31+
cat > kind-config.yaml << EOF
32+
kind: Cluster
33+
apiVersion: kind.x-k8s.io/v1alpha4
34+
nodes:
35+
- role: control-plane
36+
extraPortMappings:
37+
- containerPort: 30000
38+
hostPort: 3000
39+
protocol: TCP
40+
- containerPort: 30001
41+
hostPort: 4318
42+
protocol: TCP
43+
EOF
44+
2945
- name: Create kind cluster
3046
uses: helm/kind-action@v1
3147
with:
3248
cluster_name: hyperdx-test
33-
config: |
34-
kind: Cluster
35-
apiVersion: kind.x-k8s.io/v1alpha4
36-
nodes:
37-
- role: control-plane
38-
extraPortMappings:
39-
- containerPort: 30000
40-
hostPort: 3000
41-
protocol: TCP
42-
- containerPort: 30001
43-
hostPort: 4318
44-
protocol: TCP
49+
config: kind-config.yaml
4550

4651
- name: Install local-path-provisioner
4752
run: |
@@ -132,4 +137,4 @@ jobs:
132137
if: always()
133138
run: |
134139
helm uninstall hyperdx-test || true
135-
kind delete cluster --name hyperdx-test || true
140+
kind delete cluster --name hyperdx-test || true

0 commit comments

Comments
 (0)