-
Notifications
You must be signed in to change notification settings - Fork 203
ci: add workflow to bump OpenTelemetry Kube Stack version #10620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
bb42aea
ci: add workflow to bump OpenTelemetry Kube Stack version
rogercoll 9a2baf8
Update .github/workflows/bump-kube-stack-version.yml
rogercoll 77ff9c7
Update .ci/updatecli/updatecli-bump-kube-stack.yml
rogercoll 34a766b
use regex group for version replacement
rogercoll 4a53ad5
add script codeowners and target backport-9 branch
rogercoll 1130f45
Merge branch 'main' into bump_kube_stack_helm_chart
rogercoll 1ffe054
Update .ci/updatecli/updatecli-bump-kube-stack.yml
rogercoll 6e2d134
Merge branch 'main' into bump_kube_stack_helm_chart
rogercoll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # This script is executed by the automation we are putting in place | ||
| # and it requires the git add/commit commands. | ||
| # | ||
| set -euo pipefail | ||
|
|
||
| echo "~~~ Running mage integration:buildKubernetesTestData" | ||
| mage integration:buildKubernetesTestData | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| --- | ||
| name: Bump OpenTelemetry Kube Stack Helm Chart to latest versions | ||
|
|
||
| scms: | ||
| elastic-agent: | ||
| kind: github | ||
| spec: | ||
| user: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
| username: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
| owner: '{{ .scm.owner }}' | ||
| repository: '{{ .scm.repository }}' | ||
| token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
| commitusingapi: true | ||
| branch: '{{ .scm.branch }}' | ||
| force: false | ||
|
|
||
|
|
||
| actions: | ||
| elastic-agent: | ||
| kind: github/pullrequest | ||
| scmid: elastic-agent | ||
| spec: | ||
| automerge: false | ||
| labels: | ||
| - backport-active-9 | ||
| - dependencies | ||
| - skip-changelog | ||
| - Team:Elastic-Agent-Control-Plane | ||
| title: '[otel/kube-stack] Update the OpenTelemetry Kube Stack Helm Chart to latest versions' | ||
| description: | | ||
| Update the versions of the OpenTelemetry Kube Stack Helm Chart being used in the OpenTelemetry Onboarding configuration. | ||
|
|
||
| sources: | ||
| opentelemetry-kube-stack-helm: | ||
| name: "Get latest OpenTelemetry Kube Stack Helm Chart release" | ||
| kind: helmchart | ||
| spec: | ||
| url: https://open-telemetry.github.io/opentelemetry-helm-charts | ||
| name: opentelemetry-kube-stack | ||
|
|
||
| targets: | ||
| update-tested-kube-stack: | ||
| name: "Update tested OpenTelemetry Kube Stack Helm Chart in k8s.go" | ||
| kind: file | ||
| scmid: elastic-agent | ||
| sourceid: opentelemetry-kube-stack-helm | ||
| spec: | ||
rogercoll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| file: "testing/integration/k8s/k8s.go" | ||
| matchpattern: '(KubeStackChartVersion\s*=\s)".*"' | ||
| replacepattern: '$1"{{ source "opentelemetry-kube-stack-helm" }}"' | ||
|
|
||
| update-testdata: | ||
rogercoll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| name: 'Update local OpenTelemetry Kube Stack Helm Chart files' | ||
| dependson: | ||
| - update-tested-kube-stack | ||
| scmid: elastic-agent | ||
| kind: shell | ||
| spec: | ||
| command: .ci/scripts/update-integration-testdata.sh | ||
| environments: | ||
| - name: PATH | ||
| - name: HOME | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --- | ||
| name: bump-kube-stack-version | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "0 20 * * 1-6" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
|
|
||
| jobs: | ||
| bump: | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install mage | ||
| uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0 | ||
| with: | ||
| version: v1.14.0 | ||
| install-only: true | ||
|
|
||
| - uses: elastic/oblt-actions/updatecli/run@v1 | ||
| with: | ||
| command: apply --config .ci/updatecli/updatecli-bump-kube-stack.yml --values .ci/updatecli/values.d/scm.yml | ||
| version-file: .updatecli-version | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - if: ${{ failure() }} | ||
| uses: elastic/oblt-actions/slack/send@v1 | ||
| with: | ||
| bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
| channel-id: "#ingest-notifications" | ||
| message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.