Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .ci/scripts/update-integration-testdata.sh
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 "~~~ Updating integration tests testdata"
mage integration:buildKubernetesTestData
60 changes: 60 additions & 0 deletions .ci/updatecli/updatecli-bump-kube-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
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-8
- 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:
file: "testing/integration/k8s/k8s.go"
matchpattern: "KubeStackChartVersion .*"
replacepattern: 'KubeStackChartVersion = "{{ source "opentelemetry-kube-stack-helm" }}"'

update-testdata:
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
36 changes: 36 additions & 0 deletions .github/workflows/bump-kube-stack-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: bump-edot-images

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

- 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>"
Loading