This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate k8s autodiscovery pipeline (#3596)
* Migrate k8s-autodiscovery test to GH Actions workflow * Remove Jenkins jobs * Test stack snapshot branches * Use sha for action version * empty (cherry picked from commit 37e80f6)
- Loading branch information
1 parent
fe509ba
commit 367def7
Showing
5 changed files
with
45 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
name: k8s-autodiscovery-test | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 18 * * *' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
elastic-stack-snapshot-branches: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
outputs: | ||
matrix: ${{ steps.generator.outputs.matrix }} | ||
steps: | ||
- id: generator | ||
uses: elastic/apm-pipeline-library/.github/actions/elastic-stack-snapshot-branches@current | ||
|
||
k8s-autodiscovery-test: | ||
needs: elastic-stack-snapshot-branches | ||
strategy: | ||
matrix: ${{ fromJson(needs.elastic-stack-snapshot-branches.outputs.matrix) }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
- id: get-go-version | ||
name: Get Go version | ||
run: echo "version=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ steps.get-go-version.outputs.version }} | ||
- name: Create k8s Kind Cluster | ||
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0 | ||
- name: Run k8s autodiscovery test | ||
working-directory: e2e/_suites/kubernetes-autodiscover | ||
env: | ||
OP_LOG_LEVEL: DEBUG | ||
run: go test -timeout 90m -v |
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