Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[jenkins] Fix Google cluster name (#571)
Browse files Browse the repository at this point in the history
The cluster names created for running tests can't contain the `.`
character which is part of the branch name.
  • Loading branch information
mgreau authored Apr 10, 2020
1 parent 0f87b17 commit a55cea1
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .ci/jobs.t/elastic+helm-charts+{branch}+cluster-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make destroy KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name}
3 changes: 2 additions & 1 deletion .ci/jobs.t/elastic+helm-charts+{branch}+cluster-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make up KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${APM_SERVER_SUITE} CHART=apm-server
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${ES_SUITE} CHART=elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${FILEBEAT_SUITE} CHART=filebeat
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${KIBANA_SUITE} CHART=kibana
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${LOGSTASH_SUITE} CHART=logstash
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-%BRANCH%"
BRANCH_NAME="%BRANCH%"
cluster_name="helm-${KUBERNETES_VERSION//./}-${BRANCH_NAME//./}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${METRICBEAT_SUITE} CHART=metricbeat

0 comments on commit a55cea1

Please sign in to comment.