diff options
author | Maros Ondrejicka <mondreji@cisco.com> | 2023-02-28 12:49:43 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-02-28 22:13:21 +0000 |
commit | 85396a5488264690c7da2684742e4a5f38d192a7 (patch) | |
tree | d9afdf5bb8a7fd965adb2c3d4aa4111b7abb02d7 /extras/hs-test/resources | |
parent | 729b9c94f8222346a61c21d21a674bcb9b5974f8 (diff) |
hs-test: fill configuration files at runtime
Treat certain configuration files, which contain runtime-dependent
information, as templates. The information is filled at runtime and the
files are copied into containers.
This allows to avoid hard-coding IP addresses into configuration files.
Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I1dae8f15f4f76c0bf1779d7c68b7f3859bf5a861
Diffstat (limited to 'extras/hs-test/resources')
-rw-r--r-- | extras/hs-test/resources/envoy/proxy.yaml | 2 | ||||
-rw-r--r-- | extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/extras/hs-test/resources/envoy/proxy.yaml b/extras/hs-test/resources/envoy/proxy.yaml index 2093b5613ae..77da80d934d 100644 --- a/extras/hs-test/resources/envoy/proxy.yaml +++ b/extras/hs-test/resources/envoy/proxy.yaml @@ -44,7 +44,7 @@ static_resources: address: socket_address: # following address will be generated by Addresser during test run - address: 10.10.2.1 + address: {{.Server}} port_value: 666 bootstrap_extensions: - name: envoy.extensions.vcl.vcl_socket_interface diff --git a/extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf b/extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf index 03af8b76f15..bf15d1cdb7f 100644 --- a/extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf +++ b/extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf @@ -29,21 +29,21 @@ http { gzip on; upstream bk { - server 10.10.2.1:8091; + server {{.Server}}:8091; keepalive 30000; } upstream bk1 { - server 10.10.2.1:8092; + server {{.Server}}:8092; keepalive 30000; } upstream bk2 { - server 10.10.2.1:8093; + server {{.Server}}:8093; keepalive 30000; } server { listen 80; - server_name 10.10.1.2; + server_name {{.Proxy}}; server_tokens off; |