This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.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 logstash-security
- Loading branch information
Showing
198 changed files
with
9,023 additions
and
2,597 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
.ci/jobs/elastic+helm-charts+master+integration-apm-server.yml
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,39 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+master+integration-apm-server | ||
display-name: elastic / helm-charts - master - integration apm-server | ||
description: Master - integration apm-server | ||
scm: | ||
- git: | ||
wipe-workspace: 'True' | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual | ||
- axis: | ||
type: yaml | ||
name: APM_SERVER_SUITE | ||
filename: helpers/matrix.yml | ||
- axis: | ||
type: yaml | ||
name: KUBERNETES_VERSION | ||
filename: helpers/matrix.yml | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
source /usr/local/bin/bash_standard_lib.sh | ||
set +x | ||
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID") | ||
export VAULT_TOKEN | ||
unset VAULT_ROLE_ID VAULT_SECRET_ID | ||
set -x | ||
cluster_name="helm-${KUBERNETES_VERSION//./}-${branch_specifier:0:10}" | ||
cd helpers/terraform/ | ||
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${APM_SERVER_SUITE} CHART=apm-server |
22 changes: 22 additions & 0 deletions
22
.ci/jobs/elastic+helm-charts+master+template-lint-python.yml
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,22 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+master+lint-python | ||
display-name: elastic / helm-charts - master - lint python | ||
description: Master - lint python | ||
scm: | ||
- git: | ||
wipe-workspace: 'True' | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual&&ubuntu-18.04 | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
virtualenv -p python3 venv && source venv/bin/activate | ||
pip install -r requirements.txt | ||
make lint-python |
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
39 changes: 39 additions & 0 deletions
39
.ci/jobs/elastic+helm-charts+pull-request+integration-apm-server.yml
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,39 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+pull-request+integration-apm-server | ||
display-name: elastic / helm-charts - pull-request - integration apm-server | ||
description: Pull request - integration apm-server | ||
scm: | ||
- git: | ||
refspec: +refs/pull/*:refs/remotes/origin/pr/* | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual | ||
- axis: | ||
type: yaml | ||
name: APM_SERVER_SUITE | ||
filename: helpers/matrix.yml | ||
- axis: | ||
type: yaml | ||
name: KUBERNETES_VERSION | ||
filename: helpers/matrix.yml | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
source /usr/local/bin/bash_standard_lib.sh | ||
set +x | ||
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID") | ||
export VAULT_TOKEN | ||
unset VAULT_ROLE_ID VAULT_SECRET_ID | ||
set -x | ||
cluster_name="helm-${KUBERNETES_VERSION//./}-${branch_specifier:0:10}" | ||
cd helpers/terraform/ | ||
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${APM_SERVER_SUITE} CHART=apm-server |
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,22 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+pull-request+lint-python | ||
display-name: elastic / helm-charts - pull-request - lint python | ||
description: Pull request - lint python | ||
scm: | ||
- git: | ||
refspec: +refs/pull/*:refs/remotes/origin/pr/* | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual&&ubuntu-18.04 | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
virtualenv -p python3 venv && source venv/bin/activate | ||
pip install -r requirements.txt | ||
make lint-python |
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,39 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+staging+cluster-cleanup | ||
display-name: elastic / helm-charts - staging - cluster cleanup | ||
description: staging - cluster cleanup | ||
parameters: | ||
- string: | ||
name: BUILD_ID | ||
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)" | ||
scm: | ||
- git: | ||
wipe-workspace: 'True' | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual | ||
- axis: | ||
type: yaml | ||
name: KUBERNETES_VERSION | ||
filename: helpers/matrix.yml | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
source /usr/local/bin/bash_standard_lib.sh | ||
set +x | ||
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID") | ||
export VAULT_TOKEN | ||
unset VAULT_ROLE_ID VAULT_SECRET_ID | ||
set -x | ||
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}" | ||
cd helpers/terraform/ | ||
./in-docker make destroy KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} |
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 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+staging+cluster-creation | ||
display-name: elastic / helm-charts - staging - cluster creation | ||
description: staging - cluster creation | ||
parameters: | ||
- string: | ||
name: BUILD_ID | ||
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)" | ||
scm: | ||
- git: | ||
wipe-workspace: 'True' | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual | ||
- axis: | ||
type: yaml | ||
name: KUBERNETES_VERSION | ||
filename: helpers/matrix.yml | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
source /usr/local/bin/bash_standard_lib.sh | ||
set +x | ||
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID") | ||
export VAULT_TOKEN | ||
unset VAULT_ROLE_ID VAULT_SECRET_ID | ||
set -x | ||
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}" | ||
cd helpers/terraform/ | ||
./in-docker make up KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} | ||
./in-docker make k8s-staging-registry KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} |
45 changes: 45 additions & 0 deletions
45
.ci/jobs/elastic+helm-charts+staging+integration-apm-server.yml
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,45 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+staging+integration-apm-server | ||
display-name: elastic / helm-charts - staging - integration apm-server | ||
description: staging - integration apm-server | ||
parameters: | ||
- string: | ||
name: BUILD_ID | ||
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)" | ||
scm: | ||
- git: | ||
wipe-workspace: 'True' | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual | ||
- axis: | ||
type: yaml | ||
name: APM_SERVER_SUITE | ||
filename: helpers/matrix.yml | ||
- axis: | ||
type: yaml | ||
name: KUBERNETES_VERSION | ||
filename: helpers/matrix.yml | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
source /usr/local/bin/bash_standard_lib.sh | ||
set +x | ||
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID") | ||
export VAULT_TOKEN | ||
unset VAULT_ROLE_ID VAULT_SECRET_ID | ||
set -x | ||
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py | ||
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}" | ||
cd helpers/terraform/ | ||
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${APM_SERVER_SUITE} CHART=apm-server |
54 changes: 54 additions & 0 deletions
54
.ci/jobs/elastic+helm-charts+staging+integration-elasticsearch.yml
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,54 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+staging+integration-elasticsearch | ||
display-name: elastic / helm-charts - staging - integration elasticsearch | ||
description: staging - integration elasticsearch | ||
parameters: | ||
- string: | ||
name: BUILD_ID | ||
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)" | ||
scm: | ||
- git: | ||
wipe-workspace: 'True' | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual | ||
- axis: | ||
type: yaml | ||
name: ES_SUITE | ||
filename: helpers/matrix.yml | ||
- axis: | ||
type: yaml | ||
name: KUBERNETES_VERSION | ||
filename: helpers/matrix.yml | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
source /usr/local/bin/bash_standard_lib.sh | ||
set +x | ||
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID") | ||
export VAULT_TOKEN | ||
unset VAULT_ROLE_ID VAULT_SECRET_ID | ||
DOCKER_PASSWORD=$(retry 5 vault read -field password secret/devops-ci/docker.elastic.co/devops-ci) | ||
retry 5 docker login -u devops-ci -p $DOCKER_PASSWORD docker.elastic.co | ||
unset DOCKER_PASSWORD | ||
set -x | ||
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py | ||
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}" | ||
cd helpers/terraform/ | ||
# pull private images while we have the hosts docker daemon authenticated | ||
make pull-private-images | ||
# the private images will be used in here | ||
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${ES_SUITE} CHART=elasticsearch |
45 changes: 45 additions & 0 deletions
45
.ci/jobs/elastic+helm-charts+staging+integration-filebeat.yml
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,45 @@ | ||
--- | ||
- job: | ||
name: elastic+helm-charts+staging+integration-filebeat | ||
display-name: elastic / helm-charts - staging - integration filebeat | ||
description: staging - integration filebeat | ||
parameters: | ||
- string: | ||
name: BUILD_ID | ||
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)" | ||
scm: | ||
- git: | ||
wipe-workspace: 'True' | ||
axes: | ||
- axis: | ||
type: slave | ||
name: label | ||
values: | ||
- docker&&virtual | ||
- axis: | ||
type: yaml | ||
name: FILEBEAT_SUITE | ||
filename: helpers/matrix.yml | ||
- axis: | ||
type: yaml | ||
name: KUBERNETES_VERSION | ||
filename: helpers/matrix.yml | ||
builders: | ||
- shell: |- | ||
#!/usr/local/bin/runbld | ||
set -euo pipefail | ||
source /usr/local/bin/bash_standard_lib.sh | ||
set +x | ||
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID") | ||
export VAULT_TOKEN | ||
unset VAULT_ROLE_ID VAULT_SECRET_ID | ||
set -x | ||
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py | ||
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}" | ||
cd helpers/terraform/ | ||
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${FILEBEAT_SUITE} CHART=filebeat |
Oops, something went wrong.