Otel collector integration #261
Workflow file for this run
This file contains hidden or 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
| --- | |
| name: Lint and Test Charts | |
| on: pull_request | |
| jobs: | |
| lint-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: v3.12.0 | |
| - uses: actions/setup-python@v6.2.0 | |
| with: | |
| python-version: 3.13 | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@v2.8.0 | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | |
| if [[ -n "$changed" ]]; then | |
| echo "changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Install helm-docs | |
| run: | | |
| GOBIN=/usr/local/bin/ go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.14.2 | |
| - name: Add helm repo for otel | |
| run: | | |
| helm repo add opentelemetry-collector https://open-telemetry.github.io/opentelemetry-helm-charts | |
| - name: Build chart dependencies | |
| run: | | |
| helm dependency build charts/netdata | |
| - name: Check documentation is up-to-date | |
| run: | | |
| ./generate-documentation.sh | |
| if ! git diff --exit-code charts/netdata/README.md; then | |
| echo "::error::README.md is out of date. Please run ./generate-documentation.sh and commit the changes." | |
| exit 1 | |
| fi | |
| - name: Run chart-testing (lint) | |
| run: ct lint --check-version-increment=false --validate-maintainers=false --target-branch ${{ github.event.repository.default_branch }} | |
| - name: Create kind cluster | |
| uses: helm/kind-action@v1.13.0 | |
| if: steps.list-changed.outputs.changed == 'true' | |
| - name: Run chart-testing (install) | |
| run: ct install --target-branch ${{ github.event.repository.default_branch }} --helm-extra-args "--wait --timeout 5m --debug" | |
| - name: Run chart-testing (install with OpenTelemetry) | |
| run: ct install --target-branch ${{ github.event.repository.default_branch }} --helm-extra-set-args "--set netdataOpentelemetry.enabled=true --set otel-collector.enabled=true" --helm-extra-args "--wait --timeout 5m --debug" |