Skip to content

Commit 76d652f

Browse files
committed
Update etcd config items for region-based etcd DNS
1 parent af2a04c commit 76d652f

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

test/e2e/cluster_config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ clusters:
1919
etcd_client_ca_cert: "${ETCD_CLIENT_CA_CERT}"
2020
etcd_client_ca_key: "${ETCD_CLIENT_CA_KEY}"
2121
etcd_scalyr_key: "${ETCD_SCALYR_KEY}"
22-
etcd_dns_record_prefixes: "etcd-server.etcd"
22+
etcd_dns_record_prefixes: "etcd-server.etcd,etcd-server.eu-central-1"
23+
etcd_additional_endpoints: "https://etcd-server.eu-central-1.teapot-e2e.zalan.do:2479"
2324
docker_meta_url: https://docker-meta.stups-test.zalan.do
2425
vpa_enabled: "true"
2526
lightstep_token: "${LIGHTSTEP_TOKEN}"

test/e2e/run_e2e.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,15 @@ if [ "$create_cluster" = true ]; then
125125
"./cluster_config.sh" "${CDP_HEAD_COMMIT_ID}" "ready" > head_cluster.yaml
126126

127127
# either copy the certificates from the already created cluster or regenerate them from scratch
128-
if [ -f base_cluster.yaml ]; then
129-
./copy-certificates.py base_cluster.yaml head_cluster.yaml
130-
else
131-
aws-account-creator refresh-certificates --registry-file head_cluster.yaml --create-ca
132-
fi
128+
# NOTE: while migrating to region-based etcd, ensure certiciates are refreshed
129+
# if [ -f base_cluster.yaml ]; then
130+
# ./copy-certificates.py base_cluster.yaml head_cluster.yaml
131+
# else
132+
aws-account-creator refresh-certificates --registry-file head_cluster.yaml --create-ca
133+
# fi
134+
135+
echo "head_cluster.yaml:"
136+
cat head_cluster.yaml
133137

134138
# Update cluster
135139
echo "Updating cluster ${CLUSTER_ID}: ${API_SERVER_URL}"

0 commit comments

Comments
 (0)