-
Notifications
You must be signed in to change notification settings - Fork 14
196 lines (186 loc) · 6.47 KB
/
pull_requests.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
name: PRs checks
on:
pull_request:
branches:
- main
- 'release-v[0-9]+.[0-9]+'
env:
DOCKER_BUILDKIT: 1
KUTTL_VERSION: 0.12.1
jobs:
markdownlint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: install markdownlint
run: gem install mdl
- name: markdownlint check
run: make markdownlint
yamllint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: install yamllint
run: pip install yamllint
- name: yamllint
run: make yamllint
build-operator:
name: Build tailing sidecar operator
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: operator/go.sum
- name: Run tests for tailing sidecar operator
working-directory: ./operator
run: make test
- name: Build tailing sidecar operator
working-directory: ./operator
run: make manager
build-otelcol-sidecar:
name: Build otelcol sidecar
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: |
sidecar/otelcol/.otelcol-builder.yaml
sidecar/otelcol/.goreleaser.yaml
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build otelcol sidecar
working-directory: ./sidecar/otelcol
run: |
make install-builder
make build
test-without-helm:
name: Test resources created without Helm chart
runs-on: ubuntu-20.04
timeout-minutes: 15
strategy:
matrix:
sidecar: [fluentbit, otelcol]
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: |
.otelcol-builder.yaml
.goreleaser.yaml
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Install opentelemetry-collector-builder
working-directory: ./sidecar/otelcol
run: make install-builder
- uses: imranismail/setup-kustomize@v2
- name: Install kuttl
run: |
curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v${{ env.KUTTL_VERSION }}/kubectl-kuttl_${{ env.KUTTL_VERSION }}_linux_x86_64
chmod +x /usr/local/bin/kubectl-kuttl
- name: Run e2e tests for ${{ matrix.sidecar }} in tailing sidecar
run: make e2e TAILING_SIDECAR=${{ matrix.sidecar }}
test-helm-chart:
name: Test Helm chart
runs-on: ubuntu-20.04
timeout-minutes: 15
strategy:
matrix:
sidecar: [fluentbit, otelcol]
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: |
.otelcol-builder.yaml
.goreleaser.yaml
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Install opentelemetry-collector-builder
working-directory: ./sidecar/otelcol
run: make install-builder
- uses: imranismail/setup-kustomize@v2
- name: Install kuttl
run: |
curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v${{ env.KUTTL_VERSION }}/kubectl-kuttl_${{ env.KUTTL_VERSION }}_linux_x86_64
chmod +x /usr/local/bin/kubectl-kuttl
- name: Run Helm e2e tests for ${{ matrix.sidecar }} in tailing sidecar
run: make e2e-helm TAILING_SIDECAR=${{ matrix.sidecar }}
test-helm-chart-with-cert-manager:
name: Test Helm chart with cert-manager
runs-on: ubuntu-20.04
timeout-minutes: 15
strategy:
matrix:
sidecar: [fluentbit, otelcol]
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: |
sidecar/otelcol/.otelcol-builder.yaml
sidecar/otelcol/.goreleaser.yaml
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Install opentelemetry-collector-builder
working-directory: ./sidecar/otelcol
run: make install-builder
- uses: imranismail/setup-kustomize@v2
- name: Install kuttl
run: |
curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v${{ env.KUTTL_VERSION }}/kubectl-kuttl_${{ env.KUTTL_VERSION }}_linux_x86_64
chmod +x /usr/local/bin/kubectl-kuttl
- name: Run Helm e2e tests for ${{ matrix.sidecar }} in tailing sidecar
run: make e2e-helm-certmanager TAILING_SIDECAR=${{ matrix.sidecar }}
test-helm-chart-with-custom-configuration:
name: Test Helm chart with custom configuration
runs-on: ubuntu-20.04
timeout-minutes: 15
strategy:
matrix:
sidecar: [fluentbit, otelcol]
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: |
sidecar/otelcol/.otelcol-builder.yaml
sidecar/otelcol/.goreleaser.yaml
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Install opentelemetry-collector-builder
working-directory: ./sidecar/otelcol
run: make install-builder
- uses: imranismail/setup-kustomize@v2
- name: Install kuttl
run: |
curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v${{ env.KUTTL_VERSION }}/kubectl-kuttl_${{ env.KUTTL_VERSION }}_linux_x86_64
chmod +x /usr/local/bin/kubectl-kuttl
- name: Run Helm e2e tests for ${{ matrix.sidecar }} in tailing sidecar
run: make e2e-helm-custom-configuration TAILING_SIDECAR=${{ matrix.sidecar }}