forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into feature/use-debian-9
* upstream/master: (430 commits) CI: increase timeout (elastic#26764) Heartbeat: add datastream fields to synthetics (elastic#26774) Osquerybeat: Change the query timeout from 3 secs to 60 secs (elastic#26775) Remove experimental warning for inputs with variables. (elastic#26762) Add latest k8s versions in testing (elastic#26729) change type of max_bytes to ByteType (elastic#26699) [Elastic Agent] Fix broken enrollment command (elastic#26749) Update agent managed manifest to include enrolment token variable (elastic#26756) Filebeat: Ensure module pipelines compatibility with previous versions of Elasticsearch (elastic#26737) Forward port changelog for 7.13.3 (elastic#26731) to master (elastic#26754) Upgrade PyYAML dependency used for tests (elastic#26746) Add agent fleet enrolment k8s manifest (elastic#26566) CI: retry the step only (elastic#26736) Osquerybeat: Fix the configuration poll interval setting (elastic#26739) [Filebeat] Replace copy_from with templated value (elastic#26631) Reduce the verbosity of the debug log for monitoring (elastic#26583) Add instructions on testing metricbeat kubernetes module (elastic#26643) Revert "[CI] fight the flakiness with some retry option in the CI only for the Pull Requests (elastic#26617)" (elastic#26704) Packaging: linux/armv7 is not supported (elastic#26706) Cyberarkpas: Link to official docs on how to setup TLS (elastic#26614) ...
- Loading branch information
Showing
2,236 changed files
with
225,213 additions
and
61,479 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Given the Golang release version this script will bump the version. | ||
# | ||
# This script is executed by the automation we are putting in place | ||
# and it requires the git add/commit commands. | ||
# | ||
# Parameters: | ||
# $1 -> the Golang release version to be bumped. Mandatory. | ||
# | ||
set -euo pipefail | ||
MSG="parameter missing." | ||
GO_RELEASE_VERSION=${1:?$MSG} | ||
|
||
OS=$(uname -s| tr '[:upper:]' '[:lower:]') | ||
|
||
if [ "${OS}" == "darwin" ] ; then | ||
SED="sed -i .bck" | ||
else | ||
SED="sed -i" | ||
fi | ||
|
||
echo "Update go version ${GO_RELEASE_VERSION}" | ||
echo "${GO_RELEASE_VERSION}" > .go-version | ||
git add .go-version | ||
|
||
find . -maxdepth 3 -name Dockerfile -print0 | | ||
while IFS= read -r -d '' line; do | ||
${SED} -E -e "s#(FROM golang):[0-9]+\.[0-9]+\.[0-9]+#\1:${GO_RELEASE_VERSION}#g" "$line" | ||
${SED} -E -e "s#(ARG GO_VERSION)=[0-9]+\.[0-9]+\.[0-9]+#\1=${GO_RELEASE_VERSION}#g" "$line" | ||
git add "${line}" | ||
done | ||
|
||
${SED} -E -e "s#(:go-version:) [0-9]+\.[0-9]+\.[0-9]+#\1 ${GO_RELEASE_VERSION}#g" libbeat/docs/version.asciidoc | ||
git add libbeat/docs/version.asciidoc | ||
|
||
git diff --staged --quiet || git commit -m "[Automation] Update go release version to ${GO_RELEASE_VERSION}" | ||
git --no-pager log -1 | ||
|
||
echo "You can now push and create a Pull Request" |
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,49 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Given the stack version this script will bump the version. | ||
# | ||
# This script is executed by the automation we are putting in place | ||
# and it requires the git add/commit commands. | ||
# | ||
# Parameters: | ||
# $1 -> the version to be bumped. Mandatory. | ||
# $2 -> whether to create a branch where to commit the changes to. | ||
# this is required when reusing an existing Pull Request. | ||
# Optional. Default true. | ||
# | ||
set -euo pipefail | ||
MSG="parameter missing." | ||
VERSION=${1:?$MSG} | ||
CREATE_BRANCH=${2:-true} | ||
|
||
OS=$(uname -s| tr '[:upper:]' '[:lower:]') | ||
|
||
if [ "${OS}" == "darwin" ] ; then | ||
SED="sed -i .bck" | ||
else | ||
SED="sed -i" | ||
fi | ||
|
||
FILES="testing/environments/snapshot-oss.yml | ||
testing/environments/snapshot.yml | ||
" | ||
|
||
echo "Update stack with version ${VERSION}" | ||
for FILE in ${FILES} ; do | ||
${SED} -E -e "s#(image: docker\.elastic\.co/.*):[0-9]+\.[0-9]+\.[0-9]+(-[a-f0-9]{8})?#\1:${VERSION}#g" $FILE | ||
done | ||
|
||
echo "Commit changes" | ||
if [ "$CREATE_BRANCH" = "true" ]; then | ||
base=$(git rev-parse --abbrev-ref HEAD | sed 's#/#-#g') | ||
git checkout -b "update-stack-version-$(date "+%Y%m%d%H%M%S")-${base}" | ||
else | ||
echo "Branch creation disabled." | ||
fi | ||
for FILE in ${FILES} ; do | ||
git add $FILE | ||
done | ||
git diff --staged --quiet || git commit -m "[Automation] Update elastic stack version to ${VERSION} for testing" | ||
git --no-pager log -1 | ||
|
||
echo "You can now push and create a Pull Request" |
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 |
---|---|---|
@@ -1,5 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
kind create cluster --image kindest/node:${K8S_VERSION} | ||
kind create cluster --image kindest/node:${K8S_VERSION} --config - <<EOF | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
kubeadmConfigPatches: | ||
- | | ||
kind: ClusterConfiguration | ||
scheduler: | ||
extraArgs: | ||
bind-address: "0.0.0.0" | ||
port: "10251" | ||
secure-port: "10259" | ||
controllerManager: | ||
extraArgs: | ||
bind-address: "0.0.0.0" | ||
port: "10252" | ||
secure-port: "10257" | ||
EOF | ||
kubectl cluster-info |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.15.9 | ||
1.16.5 |
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
Oops, something went wrong.