forked from open-telemetry/opentelemetry-helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.77 KB
/
Copy pathebpf-test.yaml
File metadata and controls
59 lines (50 loc) · 1.77 KB
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 eBPF Chart
on:
pull_request:
paths:
- "charts/opentelemetry-ebpf/**"
branches:
- main
permissions:
contents: read
jobs:
ebpf-test-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
helm-version:
- "v4.0.5"
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
with:
create-kind-cluster: "true"
helm-version: ${{ matrix.helm-version }}
- name: Run chart-testing (install)
run: ct install --charts charts/opentelemetry-ebpf
- name: Run daemonset and deployment install test
run: |
kubectl apply -f ./charts/opentelemetry-collector/examples/daemonset-and-deployment/rendered
kubectl rollout status deployment example-opentelemetry-collector --timeout=30s
kubectl apply -f ./charts/opentelemetry-ebpf/examples/cloud-collector/rendered
kubectl rollout status daemonset example-opentelemetry-ebpf-kernel-collector --timeout=30s
kubectl rollout status deployment example-opentelemetry-ebpf-cloud-collector --timeout=30s
kubectl rollout status deployment example-opentelemetry-ebpf-k8s-collector --timeout=30s
kubectl rollout status deployment example-opentelemetry-ebpf-reducer --timeout=30s
ebpf-test:
if: always()
runs-on: ubuntu-latest
needs: [ebpf-test-matrix]
steps:
- name: Check matrix result
run: |
if [[ "${{ needs.ebpf-test-matrix.result }}" == "success" ]]; then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
exit 1
fi