瀏覽代碼

Properly pass parameters for service rendering

Waqar Ahmed 4 年之前
父節點
當前提交
87236e388c
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      test/ipfs/1.0.1/templates/service.yaml

+ 3 - 1
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 }}