以下是我的流量转移的istio yaml。如果我在Spinnaker中传递参数,我会遇到以下错误。我只发送像10、20等整数值。
"json: cannot unmarshal string into Go value of type int32"
我能否在yaml中将字符串更改为整数?
"json: cannot unmarshal string into Go value of type int32"
我能否在yaml中将字符串更改为整数?
- apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: webvs
namespace: default
spec:
gateways:
- xyz.default.svc.cluster.local
- mesh
hosts:
- web.xyz.com
http:
- route:
- destination:
host: web.default.svc.cluster.local
port:
number: 8080
subset: v1
weight: '${ parameters.Prodweightb }'
- destination:
host: web.default.svc.cluster.local
port:
number: 8080
subset: v2
weight: '${ parameters.Blineweightb }'
- destination:
host: web.default.svc.cluster.local
port:
number: 8080
subset: v3
weight: '${ parameters.Canaryweightb }'