From 87236e388c6f851cb5d0fce549fda99c73be20a5 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Fri, 29 Jan 2021 23:40:31 +0500 Subject: [PATCH] Properly pass parameters for service rendering --- test/ipfs/1.0.1/templates/service.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/ipfs/1.0.1/templates/service.yaml b/test/ipfs/1.0.1/templates/service.yaml index 09ebc198c1..e9ec57d84c 100644 --- a/test/ipfs/1.0.1/templates/service.yaml +++ b/test/ipfs/1.0.1/templates/service.yaml @@ -3,4 +3,6 @@ {{ $ports = mustAppend $ports (dict "name" "swarm" "port" $svc.swarmPort "nodePort" $svc.swarmPort "targetPort" 9401) }} {{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.apiPort "nodePort" $svc.apiPort "targetPort" 9501) }} {{ $ports = mustAppend $ports (dict "name" "gateway" "port" $svc.gatewayPort "nodePort" $svc.gatewayPort "targetPort" 9880) }} -{{ include "common.classes.service" (dict "type" "NodePort" ) }} +{{ $params := . }} +{{ $_ := set $params "service" (dict "type" "NodePort" "ports" $ports ) }} +{{ include "common.classes.service" $params }}