From 97dd6cd574fd07604ec1eaed51d9766190cd1ab2 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 7 Nov 2022 16:30:07 +0200 Subject: [PATCH] update questions and deployment, and fix tests --- test/wg-easy/1.0.0/questions.yaml | 7 +++++++ test/wg-easy/1.0.0/templates/deployment.yaml | 1 + test/wg-easy/1.0.0/test_values.yaml | 5 +++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/test/wg-easy/1.0.0/questions.yaml b/test/wg-easy/1.0.0/questions.yaml index f4d0f022db..d02faf2c0d 100644 --- a/test/wg-easy/1.0.0/questions.yaml +++ b/test/wg-easy/1.0.0/questions.yaml @@ -102,6 +102,13 @@ questions: type: int required: true default: 0 + - variable: client_mtu + label: Clients MTU + description: The MTU the clients will use. + schema: + type: int + required: true + default: 1420 - variable: client_address_range label: Clients IP Address Range description: Clients IP address range. diff --git a/test/wg-easy/1.0.0/templates/deployment.yaml b/test/wg-easy/1.0.0/templates/deployment.yaml index 31f1a5160a..ee9ad24af2 100644 --- a/test/wg-easy/1.0.0/templates/deployment.yaml +++ b/test/wg-easy/1.0.0/templates/deployment.yaml @@ -49,6 +49,7 @@ spec: {{ $envList = mustAppend $envList (dict "name" "PASSWORD" "value" $wgeasy.password) }} {{ $envList = mustAppend $envList (dict "name" "WG_PORT" "value" .Values.wgUDPPort) }} {{ $envList = mustAppend $envList (dict "name" "WG_PERSISTENT_KEEPALIVE" "value" $wgeasy.keep_alive) }} + {{ $envList = mustAppend $envList (dict "name" "WG_MTU" "value" $wgeasy.client_mtu) }} {{ $envList = mustAppend $envList (dict "name" "WG_DEFAULT_ADDRESS" "value" $wgeasy.client_address_range) }} {{ $envList = mustAppend $envList (dict "name" "WG_DEFAULT_DNS" "value" $wgeasy.client_dns_server) }} {{ if $wgeasy.allowed_ips }} diff --git a/test/wg-easy/1.0.0/test_values.yaml b/test/wg-easy/1.0.0/test_values.yaml index 033a07befe..9868d3d3b5 100644 --- a/test/wg-easy/1.0.0/test_values.yaml +++ b/test/wg-easy/1.0.0/test_values.yaml @@ -12,11 +12,12 @@ emptyDirVolumes: true environmentVariables: [] extraAppVolumeMounts: [] hostNetwork: true -wgUDPPort: 20290 -webUIPort: 20921 +wgUDPPort: 30290 +webUIPort: 30921 wgeasy: host: wg.domain.com password: secret + client_mtu: 1420 keep_alive: 5 client_address_range: 10.10.0.x client_dns_server: "8.8.8.8"