From c67b7db0461c70440d2b55d559da647efb37b37d Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Tue, 15 Nov 2022 19:35:10 +0200 Subject: [PATCH] fix udp port --- test/wg-easy/1.0.0/templates/deployment.yaml | 2 +- test/wg-easy/1.0.0/templates/service.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/wg-easy/1.0.0/templates/deployment.yaml b/test/wg-easy/1.0.0/templates/deployment.yaml index 1ea233984c..2246cd5cee 100644 --- a/test/wg-easy/1.0.0/templates/deployment.yaml +++ b/test/wg-easy/1.0.0/templates/deployment.yaml @@ -48,7 +48,7 @@ spec: {{ end }} ports: - name: udp - containerPort: 51820 + containerPort: {{ .Values.wgUDPPort }} protocol: UDP - name: web containerPort: 51821 diff --git a/test/wg-easy/1.0.0/templates/service.yaml b/test/wg-easy/1.0.0/templates/service.yaml index b8eb8b9cc4..5f1bfef9e6 100644 --- a/test/wg-easy/1.0.0/templates/service.yaml +++ b/test/wg-easy/1.0.0/templates/service.yaml @@ -3,7 +3,7 @@ {{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} {{ $ports := list }} {{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.webUIPort "nodePort" .Values.webUIPort "targetPort" 51821) }} -{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.wgUDPPort "nodePort" .Values.wgUDPPort "targetPort" 51820 "protocol" "UDP") }} +{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.wgUDPPort "nodePort" .Values.wgUDPPort "targetPort" .Values.wgUDPPort "protocol" "UDP") }} {{ $params := . }} {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} {{ $_1 := set .Values "extraSelectorLabels" $selectors }}