-
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 branch 'master' into auditbeat-fim-update
- Loading branch information
Showing
1,370 changed files
with
103,591 additions
and
20,035 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,13 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
MSG="parameter missing." | ||
DEFAULT_HOME="/usr/local" | ||
KIND_VERSION=${KIND_VERSION:?$MSG} | ||
HOME=${HOME:?$DEFAULT_HOME} | ||
KIND_CMD="${HOME}/bin/kind" | ||
|
||
mkdir -p "${HOME}/bin" | ||
|
||
curl -sSLo "${KIND_CMD}" "https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64" | ||
chmod +x "${KIND_CMD}" |
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,14 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
MSG="parameter missing." | ||
DEFAULT_HOME="/usr/local" | ||
K8S_VERSION=${K8S_VERSION:?$MSG} | ||
HOME=${HOME:?$DEFAULT_HOME} | ||
KUBECTL_CMD="${HOME}/bin/kubectl" | ||
|
||
mkdir -p "${HOME}/bin" | ||
|
||
curl -sSLo "${KUBECTL_CMD}" "https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl" | ||
chmod +x "${KUBECTL_CMD}" | ||
|
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exuo pipefail | ||
|
||
MSG="parameter missing." | ||
TERRAFORM_VERSION=${TERRAFORM_VERSION:?$MSG} | ||
HOME=${HOME:?$MSG} | ||
TERRAFORM_CMD="${HOME}/bin/terraform" | ||
|
||
OS=$(uname -s | tr '[:upper:]' '[:lower:]') | ||
|
||
mkdir -p "${HOME}/bin" | ||
|
||
curl -sSLo - "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_${OS}_amd64.zip" > ${TERRAFORM_CMD}.zip | ||
unzip -o ${TERRAFORM_CMD}.zip -d $(dirname ${TERRAFORM_CMD}) | ||
rm ${TERRAFORM_CMD}.zip | ||
|
||
chmod +x "${TERRAFORM_CMD}" |
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,18 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
MSG="parameter missing." | ||
K8S_VERSION=${K8S_VERSION:?$MSG} | ||
HOME=${HOME:?$MSG} | ||
KBC_CMD="${HOME}/bin/kubectl" | ||
|
||
mkdir -p "${HOME}/bin" | ||
|
||
curl -sSLo "${KBC_CMD}" "https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl" | ||
chmod +x "${KBC_CMD}" | ||
|
||
GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
kind create cluster --image kindest/node:${K8S_VERSION} | ||
|
||
export KUBECONFIG="$(kind get kubeconfig-path)" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exuo pipefail | ||
|
||
DIRECTORY=${1:-.} | ||
|
||
FAILED=0 | ||
for tfstate in $(find $DIRECTORY -name terraform.tfstate); do | ||
cd $(dirname $tfstate) | ||
if ! terraform destroy -auto-approve; then | ||
FAILED=1 | ||
fi | ||
cd - | ||
done | ||
|
||
exit $FAILED |
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 |
---|---|---|
|
@@ -39,3 +39,7 @@ x-pack/dockerlogbeat/temproot.tar | |
*.test | ||
*.prof | ||
*.pyc | ||
|
||
# Terraform | ||
*.terraform | ||
*.tfstate* |
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
Oops, something went wrong.