-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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'
- Loading branch information
Showing
4,260 changed files
with
407,018 additions
and
275,062 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,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
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,57 @@ | ||
set GOPATH=%WORKSPACE% | ||
set MAGEFILE_CACHE=%WORKSPACE%\.magefile | ||
|
||
set PATH=%WORKSPACE%\bin;C:\ProgramData\chocolatey\bin;%PATH% | ||
|
||
curl --version >nul 2>&1 && ( | ||
echo found curl | ||
) || ( | ||
choco install curl -y --no-progress --skipdownloadcache | ||
) | ||
|
||
mkdir %WORKSPACE%\bin | ||
|
||
IF EXIST "%PROGRAMFILES(X86)%" ( | ||
REM Force the gvm installation. | ||
SET GVM_BIN=gvm.exe | ||
curl -L -o %WORKSPACE%\bin\gvm.exe https://github.com/andrewkroh/gvm/releases/download/v0.3.0/gvm-windows-amd64.exe | ||
IF ERRORLEVEL 1 ( | ||
REM gvm installation has failed. | ||
del bin\gvm.exe /s /f /q | ||
exit /b 1 | ||
) | ||
) ELSE ( | ||
REM Windows 7 workers got a broken gvm installation. | ||
curl -L -o %WORKSPACE%\bin\gvm.exe https://github.com/andrewkroh/gvm/releases/download/v0.3.0/gvm-windows-386.exe | ||
IF ERRORLEVEL 1 ( | ||
REM gvm installation has failed. | ||
del bin\gvm.exe /s /f /q | ||
exit /b 1 | ||
) | ||
) | ||
|
||
SET GVM_BIN=gvm.exe | ||
WHERE /q %GVM_BIN% | ||
%GVM_BIN% version | ||
|
||
REM Install the given go version | ||
%GVM_BIN% --debug install %GO_VERSION% | ||
|
||
REM Configure the given go version | ||
FOR /f "tokens=*" %%i IN ('"%GVM_BIN%" use %GO_VERSION% --format=batch') DO %%i | ||
|
||
go env | ||
IF ERRORLEVEL 1 ( | ||
REM go is not configured correctly. | ||
rmdir %WORKSPACE%\.gvm /s /q | ||
exit /b 1 | ||
) | ||
|
||
where mage | ||
mage -version | ||
IF ERRORLEVEL 1 ( | ||
go get github.com/magefile/mage | ||
IF ERRORLEVEL 1 ( | ||
exit /b 1 | ||
) | ||
) |
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,7 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
.ci/scripts/install-go.sh | ||
.ci/scripts/install-docker-compose.sh | ||
.ci/scripts/install-terraform.sh | ||
make mage |
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 was deleted.
Oops, something went wrong.
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.12 | ||
1.16.6 |
Oops, something went wrong.