-
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.
Merge branch 'main' into bump-apimachinery-v0-31-3
- Loading branch information
Showing
56 changed files
with
911 additions
and
326 deletions.
There are no files selected for viewing
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
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,33 @@ | ||
#!/bin/bash | ||
|
||
# This script creates a Buildkite notification step and pings the user who triggered the build. | ||
# It assumes the existence of the GitHub user's email. | ||
# If the email doesn't exist, the script attempts to extract it from the build message. | ||
# If no email is found, the default option will be used. | ||
|
||
set -euo pipefail | ||
|
||
default_team="cloudbeat-eng-team" | ||
# Check if BUILDKITE_BUILD_CREATOR_EMAIL is set, defaulting to user not found | ||
build_creator="${BUILDKITE_BUILD_CREATOR_EMAIL:-$default_team}" | ||
build_message="${BUILDKITE_MESSAGE:-}" | ||
slack_channel="${SLACK_CHANNEL:-"#cloud-sec-ci"}" | ||
|
||
default_group_id=$(vault kv get -field=$default_team secret/ci/elastic-cloudbeat/slack-users) | ||
user_id=$(vault kv get -field="$build_creator" secret/ci/elastic-cloudbeat/slack-users 2>/dev/null || echo "$default_group_id") | ||
# If the Slack user is the default one, try to extract email from the BUILD_MESSAGE | ||
if [[ "$user_id" == "$default_group_id" ]]; then | ||
# Extract email from BUILDKITE_MESSAGE | ||
email=$(echo "$build_message" | grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}' || echo $default_team) | ||
user_id=$(vault kv get -field="$email" secret/ci/elastic-cloudbeat/slack-users 2>/dev/null || echo "$default_group_id") | ||
fi | ||
|
||
# Output the YAML configuration | ||
cat <<EOF | ||
notify: | ||
- slack: | ||
channels: | ||
- "$slack_channel" | ||
message: "<$user_id>" | ||
if: build.state != "passed" | ||
EOF |
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
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
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,24 @@ | ||
name: Sync Cloudbeat Versions on release | ||
# Makes sure all cloudbeat versions are updated with release branches | ||
on: | ||
push: | ||
branches: | ||
# matches branches pushed by elasticmachine, e.g. "update-version-next-8.15.3" | ||
- 'update-version-next-*' | ||
|
||
jobs: | ||
synchronize-versions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Synchronize versions using a script | ||
run: | | ||
./scripts/sync_internal_cloudbeat_version.sh | ||
- name: Push changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }} | ||
run: | ||
git push origin |
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1 @@ | ||
.awscli-2.21.3.pkg | ||
.awscli-2.22.7.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.aws-iam-authenticator-0.6.27.pkg | ||
.aws-iam-authenticator-0.6.28.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.awscli-2.21.3.pkg | ||
.awscli-2.22.7.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.gcloud-501.0.0.pkg | ||
.gcloud-502.0.0.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.gcloud-501.0.0.pkg | ||
.gcloud-502.0.0.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.elastic-package-0.107.0.pkg | ||
.elastic-package-0.107.2.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.gcloud-501.0.0.pkg | ||
.gcloud-502.0.0.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.gh-2.62.0.pkg | ||
.gh-2.63.0.pkg |
Oops, something went wrong.