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 pull request #532 from Conky5/docker-registry-staging
Staging image testing
- Loading branch information
Showing
13 changed files
with
441 additions
and
4 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
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 |
45 changes: 45 additions & 0 deletions
45
.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,45 @@ | ||
--- | ||
- 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 | ||
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=${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 |
45 changes: 45 additions & 0 deletions
45
.ci/jobs/elastic+helm-charts+staging+integration-kibana.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-kibana | ||
display-name: elastic / helm-charts - staging - integration kibana | ||
description: staging - integration kibana | ||
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: KIBANA_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=${KIBANA_SUITE} CHART=kibana |
45 changes: 45 additions & 0 deletions
45
.ci/jobs/elastic+helm-charts+staging+integration-logstash.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-logstash | ||
display-name: elastic / helm-charts - staging - integration logstash | ||
description: staging - integration logstash | ||
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: LOGSTASH_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=${LOGSTASH_SUITE} CHART=logstash |
45 changes: 45 additions & 0 deletions
45
.ci/jobs/elastic+helm-charts+staging+integration-metricbeat.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-metricbeat | ||
display-name: elastic / helm-charts - staging - integration metricbeat | ||
description: staging - integration metricbeat | ||
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: METRICBEAT_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=${METRICBEAT_SUITE} CHART=metricbeat |
Oops, something went wrong.