File tree Expand file tree Collapse file tree 4 files changed +114
-0
lines changed Expand file tree Collapse file tree 4 files changed +114
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This script is executed by the automation we are putting in place
4+ # and it requires the git add/commit commands.
5+ #
6+ set -euo pipefail
7+
8+ echo " ~~~ Running mage integration:buildKubernetesTestData"
9+ mage integration:buildKubernetesTestData
Original file line number Diff line number Diff line change 1+ ---
2+ name : Bump OpenTelemetry Kube Stack Helm Chart to latest versions
3+
4+ scms :
5+ elastic-agent :
6+ kind : github
7+ spec :
8+ user : ' {{ requiredEnv "GITHUB_ACTOR" }}'
9+ username : ' {{ requiredEnv "GITHUB_ACTOR" }}'
10+ owner : ' {{ .scm.owner }}'
11+ repository : ' {{ .scm.repository }}'
12+ token : ' {{ requiredEnv "GITHUB_TOKEN" }}'
13+ commitusingapi : true
14+ branch : ' {{ .scm.branch }}'
15+ force : false
16+
17+
18+ actions :
19+ elastic-agent :
20+ kind : github/pullrequest
21+ scmid : elastic-agent
22+ spec :
23+ automerge : false
24+ labels :
25+ - backport-active-9
26+ - dependencies
27+ - skip-changelog
28+ - Team:Elastic-Agent-Control-Plane
29+ title : ' [otel/kube-stack] Update the OpenTelemetry Kube Stack Helm Chart to latest versions'
30+ description : |
31+ Update the versions of the OpenTelemetry Kube Stack Helm Chart being used in the OpenTelemetry Onboarding configuration.
32+
33+ sources :
34+ opentelemetry-kube-stack-helm :
35+ name : " Get latest OpenTelemetry Kube Stack Helm Chart release"
36+ kind : helmchart
37+ spec :
38+ url : https://open-telemetry.github.io/opentelemetry-helm-charts
39+ name : opentelemetry-kube-stack
40+
41+ targets :
42+ update-tested-kube-stack :
43+ name : " Update tested OpenTelemetry Kube Stack Helm Chart in k8s.go"
44+ kind : file
45+ scmid : elastic-agent
46+ sourceid : opentelemetry-kube-stack-helm
47+ spec :
48+ file : " testing/integration/k8s/k8s.go"
49+ matchpattern : ' (KubeStackChartVersion\s*=\s)".*"'
50+ replacepattern : ' $1"{{ source "opentelemetry-kube-stack-helm" }}"'
51+
52+ update-testdata :
53+ name : ' Update local OpenTelemetry Kube Stack Helm Chart files'
54+ dependson :
55+ - update-tested-kube-stack
56+ scmid : elastic-agent
57+ kind : shell
58+ spec :
59+ command : .ci/scripts/update-integration-testdata.sh
60+ environments :
61+ - name : PATH
62+ - name : HOME
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ changelog/fragments/
1313/.buildkite @ elastic/elastic-agent-control-plane @ elastic/observablt-ci
1414/.ci @ elastic/elastic-agent-control-plane @ elastic/observablt-ci
1515/.ci /scripts /ecp-internal-release.sh @ elastic/elastic-agent-control-plane
16+ /.ci /scripts /update-integration-testdata.sh @ elastic/elastic-agent-control-plane
1617/.ci /scripts /update-otel.sh @ elastic/elastic-agent-control-plane
1718/.github @ elastic/elastic-agent-control-plane @ elastic/observablt-ci
1819/.github /CODEOWNERS @ elastic/ingest-tech-lead
Original file line number Diff line number Diff line change 1+ ---
2+ name : bump-kube-stack-version
3+
4+ on :
5+ workflow_dispatch :
6+ schedule :
7+ - cron : " 0 20 * * 1-6"
8+
9+ permissions :
10+ contents : read
11+
12+ env :
13+ JOB_URL : " ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
14+
15+ jobs :
16+ bump :
17+ permissions :
18+ contents : write
19+ pull-requests : write
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v5
23+
24+ - name : Install mage
25+ uses : magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0
26+ with :
27+ version : v1.14.0
28+ install-only : true
29+
30+ - uses : elastic/oblt-actions/updatecli/run@v1
31+ with :
32+ command : apply --config .ci/updatecli/updatecli-bump-kube-stack.yml --values .ci/updatecli/values.d/scm.yml
33+ version-file : .updatecli-version
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+
37+ - if : ${{ failure() }}
38+ uses : elastic/oblt-actions/slack/send@v1
39+ with :
40+ bot-token : ${{ secrets.SLACK_BOT_TOKEN }}
41+ channel-id : " #ingest-notifications"
42+ message : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"
You can’t perform that action at this time.
0 commit comments