2022-07-21 16:54:56 +00:00
|
|
|
#!/bin/bash
|
2023-03-28 22:48:58 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 22:48:58 +00:00
|
|
|
|
2022-07-21 16:54:56 +00:00
|
|
|
|
|
|
|
set -eEuo pipefail
|
|
|
|
|
|
|
|
# Copy lambda config files into the register dir
|
|
|
|
find ${CASE_DIR} -maxdepth 1 -name '*_l*.json' -type f -exec cp -f {} workdir/${CLUSTER}/register \;
|
|
|
|
|
2022-11-07 16:02:04 +00:00
|
|
|
upsert_config_entry primary '
|
|
|
|
kind = "terminating-gateway"
|
|
|
|
name = "terminating-gateway"
|
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "l2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
'
|
2022-07-21 16:54:56 +00:00
|
|
|
|
|
|
|
register_services primary
|
|
|
|
register_lambdas primary
|
|
|
|
|
|
|
|
# wait for Lambda config entries
|
|
|
|
wait_for_config_entry service-defaults l1
|
|
|
|
wait_for_config_entry service-defaults l2
|
|
|
|
|
|
|
|
gen_envoy_bootstrap s1 19000 primary
|
|
|
|
gen_envoy_bootstrap terminating-gateway 20000 primary true
|