File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,13 @@ func main() {
200200 default :
201201 vars [n ] = []interface {}{x , y }
202202 }
203+ case int :
204+ switch y := v .(type ) {
205+ case int :
206+ vars [n ] = []int64 {int64 (x ), int64 (y )}
207+ default :
208+ vars [n ] = []interface {}{x , y }
209+ }
203210 case int64 :
204211 switch y := v .(type ) {
205212 case int64 :
@@ -290,7 +297,18 @@ func main() {
290297
291298 for n , v := range load {
292299 if _ , exists := vars [n ]; ! exists {
293- vars [n ] = v
300+ switch x := v .(type ) {
301+ case int8 :
302+ vars [n ] = int64 (x )
303+ case int16 :
304+ vars [n ] = int64 (x )
305+ case int32 :
306+ vars [n ] = int64 (x )
307+ case int :
308+ vars [n ] = int64 (x )
309+ default :
310+ vars [n ] = v
311+ }
294312 }
295313 }
296314
Original file line number Diff line number Diff line change 1414 image : {{$p.Repo}}/{{$p.App}}-{{.Name}}
1515 ports :
1616 - name : *&name_{{index $i}}
17- containerPort : {{add $p.BasePort $i}}
17+ containerPort : {{inc $p.BasePort $i}}
1818 protocol : TCP{{end}}
You can’t perform that action at this time.
0 commit comments