-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add tests for tailing-sidecar-otel
- Loading branch information
1 parent
0c4c013
commit fd9ba76
Showing
7 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,14 +97,26 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.21' | ||
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 | ||
run: make e2e-helm | ||
- name: Run Helm e2e tests for Fluent Bit in tailing sidecar | ||
run: make e2e-helm TAILING_SIDECAR=fluentbit | ||
- name: Run Helm e2e tests for otelcol in tailing sidecar | ||
run: make e2e-helm TAILING_SIDECAR=otelcol | ||
|
||
test-helm-chart-with-cert-manager: | ||
name: Test Helm chart with cert-manager | ||
|
@@ -115,14 +127,26 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.21' | ||
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 e2e tests | ||
run: make e2e-helm-certmanager | ||
- name: Run Helm e2e tests for Fluent Bit in tailing sidecar | ||
run: make e2e-helm-certmanager TAILING_SIDECAR=fluentbit | ||
- name: Run Helm e2e tests for otelcol in tailing sidecar | ||
run: make e2e-helm-certmanager TAILING_SIDECAR=otelcol | ||
|
||
test-helm-chart-with-custom-configuration: | ||
name: Test Helm chart with custom configuration | ||
|
@@ -133,11 +157,23 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.21' | ||
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 e2e tests | ||
run: make e2e-helm-custom-configuration | ||
- name: Run Helm e2e tests for Fluent Bit in tailing sidecar | ||
run: make e2e-helm-custom-configuration TAILING_SIDECAR=fluentbit | ||
- name: Run Helm e2e tests for otelcol in tailing sidecar | ||
run: make e2e-helm-custom-configuration TAILING_SIDECAR=otelcol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
operator: | ||
image: | ||
repository: registry.localhost:5000/sumologic/tailing-sidecar-operator | ||
tag: test | ||
|
||
sidecar: | ||
image: | ||
repository: registry.localhost:5000/sumologic/tailing-sidecar | ||
tag: test | ||
|
||
resources: | ||
limits: | ||
cpu: "0" | ||
memory: "0" | ||
requests: | ||
cpu: "0" | ||
memory: "0" | ||
|
||
config: | ||
content: | ||
mountPath: /etc/otel/ | ||
config.yaml: | | ||
receivers: | ||
filelog: | ||
include: | ||
- ${PATH_TO_TAIL} | ||
start_at: beginning | ||
storage: file_storage | ||
exporters: | ||
file: | ||
path: /dev/stdout | ||
encoding: text_encoding | ||
extensions: | ||
text_encoding: | ||
file_storage: | ||
directory: /var/lib/otc | ||
service: | ||
extensions: | ||
- text_encoding | ||
- file_storage | ||
telemetry: | ||
metrics: | ||
level: none | ||
logs: | ||
output_paths: | ||
- /var/log/otelcol.log | ||
pipelines: | ||
logs: | ||
exporters: [file] | ||
receivers: [filelog] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestSuite | ||
artifactsDir: ./tests/_build/artifacts/ | ||
testDirs: | ||
- ./tests/sidecar/ | ||
- ./tests/operator/ | ||
timeout: 150 | ||
parallel: 4 | ||
startKIND: true | ||
kindNodeCache: true | ||
kindContainers: | ||
- registry.localhost:5000/sumologic/tailing-sidecar-operator:test | ||
- registry.localhost:5000/sumologic/tailing-sidecar:test | ||
commands: | ||
- command: helm upgrade --install test-release ./helm/tailing-sidecar-operator -f ./helm/tests/values.withOtelcolCustomConfiguration.yaml -n tailing-sidecar-system --create-namespace | ||
- command: make e2e-wait-until-operator-ready |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters