Skip to content

Commit 0fd6e72

Browse files
kyessenovistio-testing
authored andcommitted
use pkg/pool and pkg/attribute (istio#14198)
Signed-off-by: Kuat Yessenov <[email protected]>
1 parent 8a9104e commit 0fd6e72

File tree

217 files changed

+17748
-1388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+17748
-1388
lines changed

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ replace github.com/golang/glog => github.com/istio/glog v0.0.0-20190424172949-d7
66

77
replace k8s.io/klog => github.com/istio/klog v0.0.0-20190424230111-fb7481ea8bcf
88

9+
replace github.com/spf13/viper => github.com/istio/viper v1.3.3-0.20190515210538-2789fed3109c
10+
911
require (
1012
cloud.google.com/go v0.37.4
1113
code.cloudfoundry.org/copilot v0.0.0-20180808174356-6bade2a0677a
@@ -101,7 +103,6 @@ require (
101103
github.com/hashicorp/go-rootcerts v0.0.0-20160503143440-6bb64b370b90 // indirect
102104
github.com/hashicorp/go-uuid v1.0.1 // indirect
103105
github.com/hashicorp/go-version v1.2.0 // indirect
104-
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce // indirect
105106
github.com/hashicorp/memberlist v0.1.3 // indirect
106107
github.com/hashicorp/serf v0.8.1 // indirect
107108
github.com/hashicorp/vault v0.10.0
@@ -120,7 +121,6 @@ require (
120121
github.com/mitchellh/copystructure v1.0.0 // indirect
121122
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747
122123
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
123-
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238 // indirect
124124
github.com/mitchellh/reflectwalk v1.0.1 // indirect
125125
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
126126
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 // indirect
@@ -182,8 +182,8 @@ require (
182182
gopkg.in/stack.v1 v1.7.0 // indirect
183183
gopkg.in/yaml.v2 v2.2.2
184184
gotest.tools v2.2.0+incompatible // indirect
185-
istio.io/api v0.0.0-20190405142752-6b8d1849e7f4
186-
istio.io/pkg v0.0.0-20190513000936-0187f41267ce
185+
istio.io/api v0.0.0-20190515205759-982e5c3888c6
186+
istio.io/pkg v0.0.0-20190516214103-40b7bf4c7321
187187
k8s.io/api v0.0.0-20190222213804-5cb15d344471
188188
k8s.io/apiextensions-apiserver v0.0.0-20190221221350-bfb440be4b87
189189
k8s.io/apimachinery v0.0.0-20190221213512-86fb29eff628

go.sum

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ github.com/antlr/antlr4 v0.0.0-20190223165740-dade65a895c2/go.mod h1:T7PbCXFs94r
5050
github.com/aokoli/goutils v1.0.1 h1:7fpzNGoJ3VA8qcrm++XEE1QUe0mIwNeLa02Nwq7RDkg=
5151
github.com/aokoli/goutils v1.0.1/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ=
5252
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
53+
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
5354
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
5455
github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878 h1:EFSB7Zo9Eg91v7MJPVsifUysc/wPdN+NOnVe6bWbdBM=
5556
github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg=
@@ -78,8 +79,11 @@ github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T
7879
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
7980
github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc h1:TP+534wVlf61smEIq1nwLLAjQVEK2EADoW3CX9AuT+8=
8081
github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y=
82+
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
83+
github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
8184
github.com/coreos/go-oidc v0.0.0-20180117170138-065b426bd416 h1:X+JQSgXg3CcxgcBoMAqU8NoS0fch8zHxjiKWcXclxaI=
8285
github.com/coreos/go-oidc v0.0.0-20180117170138-065b426bd416/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc=
86+
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
8387
github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=
8488
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
8589
github.com/d4l3k/messagediff v1.2.1 h1:ZcAIMYsUg0EAp9X+tt8/enBE/Q8Yd5kzPynLyKptt9U=
@@ -255,8 +259,8 @@ github.com/hashicorp/go-version v1.2.0 h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+d
255259
github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
256260
github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo=
257261
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
258-
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce h1:xdsDDbiBDQTKASoGEZ+pEmF1OnWuu8AQ9I8iNbHNeno=
259-
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w=
262+
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
263+
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
260264
github.com/hashicorp/memberlist v0.1.3 h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M=
261265
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
262266
github.com/hashicorp/serf v0.8.1 h1:mYs6SMzu72+90OcPa5wr3nfznA4Dw9UyR791ZFNOIf4=
@@ -279,6 +283,8 @@ github.com/istio/glog v0.0.0-20190424172949-d7cfb6fa2ccd h1:AJnLAbRpHRy2stiICRI1
279283
github.com/istio/glog v0.0.0-20190424172949-d7cfb6fa2ccd/go.mod h1:gF8UB8w1Mqkddo9AqNOPkiduBosB3HHkpC5ra96cDzw=
280284
github.com/istio/klog v0.0.0-20190424230111-fb7481ea8bcf h1:AshFubsUWsHMYfGoz5XLZOOF87wnop5O/Fjjnqjk8lY=
281285
github.com/istio/klog v0.0.0-20190424230111-fb7481ea8bcf/go.mod h1:9gnFtvcm4y+2DZMNXbO8Q7Ke2kUDomg7HhR/mEs5wVA=
286+
github.com/istio/viper v1.3.3-0.20190515210538-2789fed3109c h1:EFWADU43GY2T7NIYYbIHWdrG2hRiWyGSHeON57ZADBE=
287+
github.com/istio/viper v1.3.3-0.20190515210538-2789fed3109c/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
282288
github.com/jefferai/jsonx v1.0.0 h1:Xoz0ZbmkpBvED5W9W1B5B/zc3Oiq7oXqiW7iRV3B6EI=
283289
github.com/jefferai/jsonx v1.0.0/go.mod h1:OGmqmi2tTeI/PS+qQfBDToLHHJIy/RMp24fPo8vFvoQ=
284290
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 h1:12VvqtR6Aowv3l/EQUlocDHW2Cp4G9WJVH7uyH8QFJE=
@@ -309,6 +315,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
309315
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
310316
github.com/lib/pq v1.1.1 h1:sJZmqHoEaY7f+NPP8pgLB/WxulyR3fewgCM2qaSlBb4=
311317
github.com/lib/pq v1.1.1/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
318+
github.com/magiconair/properties v1.8.0 h1:LLgXmsheXeRoUOBOjtwPQCWIYqM/LU1ayDtDePerRcY=
319+
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
312320
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
313321
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
314322
github.com/miekg/dns v1.0.14 h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA=
@@ -320,8 +328,8 @@ github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747/go.mod h1:Sfy
320328
github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
321329
github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=
322330
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
323-
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238 h1:+MZW2uvHgN8kYvksEN3f7eFL2wpzk0GxmlFsMybWc7E=
324-
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
331+
github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
332+
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
325333
github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
326334
github.com/mitchellh/reflectwalk v1.0.1 h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY70sEEpE=
327335
github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
@@ -365,6 +373,8 @@ github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaR
365373
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
366374
github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs=
367375
github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34=
376+
github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=
377+
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
368378
github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=
369379
github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
370380
github.com/philhofer/fwd v1.0.0 h1:UbZqGr5Y38ApvM/V/jEljVxwocdweyH+vmYvRPBnbqQ=
@@ -423,8 +433,14 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykE
423433
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
424434
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a h1:pa8hGb/2YqsZKovtsgrwcDH1RZhVbTKCjLp47XpqCDs=
425435
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
436+
github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI=
437+
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
438+
github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8=
439+
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
426440
github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
427441
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
442+
github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk=
443+
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
428444
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
429445
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
430446
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
@@ -440,6 +456,8 @@ github.com/uber/jaeger-client-go v0.0.0-20190228190846-ecf2d03a9e80 h1:nWzkj/LnV
440456
github.com/uber/jaeger-client-go v0.0.0-20190228190846-ecf2d03a9e80/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
441457
github.com/uber/jaeger-lib v2.0.0+incompatible h1:iMSCV0rmXEogjNWPh2D0xk9YVKvrtGoHJNe9ebLu/pw=
442458
github.com/uber/jaeger-lib v2.0.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
459+
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
460+
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
443461
github.com/yashtewari/glob-intersection v0.0.0-20180206001645-7af743e8ec84 h1:mhgx8n0EBQquRYFr1aCMfw0YSyz3q9ajRCFH/3NLnXw=
444462
github.com/yashtewari/glob-intersection v0.0.0-20180206001645-7af743e8ec84/go.mod h1:HptNXiXVDcJjXe9SqMd0v2FsL9f8dz4GnXgltU6q/co=
445463
github.com/yl2chen/cidranger v0.0.0-20180214081945-928b519e5268 h1:lkoOjizoHqOcEFsvYGE5c8Ykdijjnd0R3r1yDYHzLno=
@@ -494,6 +512,7 @@ golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5h
494512
golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
495513
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
496514
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
515+
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
497516
golang.org/x/sys v0.0.0-20181206074257-70b957f3b65e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
498517
golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
499518
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU=
@@ -567,10 +586,10 @@ gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81
567586
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
568587
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
569588
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
570-
istio.io/api v0.0.0-20190405142752-6b8d1849e7f4 h1:wQ44ZUabUTet5bO+WUEMLcl7Mn96lFzhvg3OChIooc0=
571-
istio.io/api v0.0.0-20190405142752-6b8d1849e7f4/go.mod h1:hhLFQmpHia8zgaM37vb2ml9iS5NfNfqZGRt1pS9aVEo=
572-
istio.io/pkg v0.0.0-20190513000936-0187f41267ce h1:lBicv2wmTtNCOw9iH30NfsBtBa1k6i8FKroeQIVraPc=
573-
istio.io/pkg v0.0.0-20190513000936-0187f41267ce/go.mod h1:+o3nlEteTEdVOi3r2B8/t04z8jBZbpllHcKo873LrAo=
589+
istio.io/api v0.0.0-20190515205759-982e5c3888c6 h1:lnDXeR6NYxT+Rfa5jKE1CpMfStnJ36/bYOSziS8dubU=
590+
istio.io/api v0.0.0-20190515205759-982e5c3888c6/go.mod h1:hhLFQmpHia8zgaM37vb2ml9iS5NfNfqZGRt1pS9aVEo=
591+
istio.io/pkg v0.0.0-20190516214103-40b7bf4c7321 h1:zXJi3xLeMGtvewwN7LzzqGhpiAOw/pFrM+CPGd5Fowc=
592+
istio.io/pkg v0.0.0-20190516214103-40b7bf4c7321/go.mod h1:QuX5yn89LMkQdwuz0OyikOs3DBN45poAUNBAlOmFIvQ=
574593
k8s.io/api v0.0.0-20190222213804-5cb15d344471 h1:MzQGt8qWQCR+39kbYRd0uQqsvSidpYqJLFeWiJ9l4OE=
575594
k8s.io/api v0.0.0-20190222213804-5cb15d344471/go.mod h1:iuAfoD4hCxJ8Onx9kaTIt30j7jUFS00AXQi6QMi99vA=
576595
k8s.io/apiextensions-apiserver v0.0.0-20190221221350-bfb440be4b87 h1:BMfPZfi3CkPd9e9Qbm+/AFgE6qXWQcbzUvC91LR3m7w=

mixer/adapter/cloudwatch/logHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
2525
multierror "github.com/hashicorp/go-multierror"
2626

27-
"istio.io/istio/mixer/pkg/pool"
2827
"istio.io/istio/mixer/template/logentry"
28+
"istio.io/pkg/pool"
2929
)
3030

3131
const (

mixer/adapter/memquota/keys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"strconv"
2121
"sync"
2222

23-
"istio.io/istio/mixer/pkg/pool"
23+
"istio.io/pkg/pool"
2424
)
2525

2626
// we maintain a pool of these for use by the makeKey function

mixer/adapter/opa/opa_integration_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ import (
2222

2323
api_mixer_v1 "istio.io/api/mixer/v1"
2424
"istio.io/istio/mixer/pkg/adapter"
25-
"istio.io/istio/mixer/pkg/attribute"
25+
attr "istio.io/istio/mixer/pkg/attribute"
2626
"istio.io/istio/mixer/pkg/config/storetest"
2727
"istio.io/istio/mixer/pkg/server"
2828
"istio.io/istio/mixer/template"
29+
"istio.io/pkg/attribute"
2930
)
3031

3132
const (
@@ -262,7 +263,7 @@ func TestServer(t *testing.T) {
262263
requestBag.Set(k, v)
263264
}
264265
var attrProto api_mixer_v1.CompressedAttributes
265-
requestBag.ToProto(&attrProto, nil, 0)
266+
attr.ToProto(requestBag, &attrProto, nil, 0)
266267

267268
req := &api_mixer_v1.CheckRequest{
268269
Attributes: attrProto,

mixer/adapter/prometheus/prometheus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ import (
3838
"istio.io/istio/mixer/adapter/metadata"
3939
"istio.io/istio/mixer/adapter/prometheus/config"
4040
"istio.io/istio/mixer/pkg/adapter"
41-
"istio.io/istio/mixer/pkg/pool"
4241
"istio.io/istio/mixer/template/metric"
4342
"istio.io/pkg/cache"
43+
"istio.io/pkg/pool"
4444
)
4545

4646
type (

mixer/adapter/signalfx/tracing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929

3030
"istio.io/istio/mixer/pkg/adapter"
3131
"istio.io/istio/mixer/pkg/adapter/opencensus"
32-
"istio.io/istio/mixer/pkg/attribute"
3332
"istio.io/istio/mixer/template/tracespan"
33+
"istio.io/pkg/attribute"
3434
)
3535

3636
// How long to wait for a response from ingest when sending spans. New spans will

mixer/adapter/solarwinds/internal/papertrail/papertrail_logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828

2929
"istio.io/istio/mixer/adapter/solarwinds/config"
3030
"istio.io/istio/mixer/pkg/adapter"
31-
"istio.io/istio/mixer/pkg/pool"
3231
"istio.io/istio/mixer/template/logentry"
32+
"istio.io/pkg/pool"
3333
)
3434

3535
const (

mixer/adapter/stackdriver/log/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ import (
3535
"istio.io/istio/mixer/adapter/stackdriver/config"
3636
"istio.io/istio/mixer/adapter/stackdriver/helper"
3737
"istio.io/istio/mixer/pkg/adapter"
38-
"istio.io/istio/mixer/pkg/pool"
3938
"istio.io/istio/mixer/template/logentry"
39+
"istio.io/pkg/pool"
4040
)
4141

4242
type (

mixer/adapter/statsd/statsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import (
3232
"istio.io/istio/mixer/adapter/metadata"
3333
"istio.io/istio/mixer/adapter/statsd/config"
3434
"istio.io/istio/mixer/pkg/adapter"
35-
"istio.io/istio/mixer/pkg/pool"
3635
"istio.io/istio/mixer/template/metric"
36+
"istio.io/pkg/pool"
3737
)
3838

3939
const (

mixer/cmd/mixc/cmd/util.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ import (
3131

3232
mixerpb "istio.io/api/mixer/v1"
3333
"istio.io/istio/mixer/cmd/shared"
34-
"istio.io/istio/mixer/pkg/attribute"
34+
attr "istio.io/istio/mixer/pkg/attribute"
3535
"istio.io/istio/pkg/tracing"
36+
"istio.io/pkg/attribute"
3637
)
3738

3839
type clientState struct {
@@ -106,7 +107,7 @@ func parseBytes(s string) (interface{}, error) {
106107
}
107108

108109
func parseStringMap(s string) (interface{}, error) {
109-
m := attribute.NewStringMap("")
110+
m := attribute.NewStringMap("", make(map[string]string, 1), nil)
110111
for _, pair := range strings.Split(s, ";") {
111112
colon := strings.Index(pair, ":")
112113
if colon < 0 {
@@ -211,7 +212,7 @@ func parseAttributes(rootArgs *rootArgs) (*mixerpb.CompressedAttributes, []strin
211212
}
212213

213214
var attrs mixerpb.CompressedAttributes
214-
b.ToProto(&attrs, nil, 0)
215+
attr.ToProto(b, &attrs, nil, 0)
215216

216217
dw := make([]string, len(gb))
217218
for k, v := range gb {

mixer/cmd/mixc/cmd/util_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ import (
2323
"google.golang.org/grpc/codes"
2424
"google.golang.org/grpc/status"
2525

26-
"istio.io/istio/mixer/pkg/attribute"
26+
attr "istio.io/istio/mixer/pkg/attribute"
27+
"istio.io/pkg/attribute"
2728
)
2829

2930
func TestAttributeHandling(t *testing.T) {
@@ -45,7 +46,7 @@ func TestAttributeHandling(t *testing.T) {
4546
}
4647

4748
var b attribute.Bag
48-
if b, err = attribute.GetBagFromProto(a, dw); err != nil {
49+
if b, err = attr.GetBagFromProto(a, dw); err != nil {
4950
t.Errorf("Expected to get proto bag, got failure %v", err)
5051
}
5152

mixer/pkg/adapter/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"context"
1919
"io"
2020

21-
"istio.io/istio/mixer/pkg/attribute"
21+
"istio.io/pkg/attribute"
2222
)
2323

2424
type (

mixer/pkg/adapter/instanceUtil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strings"
2424
"time"
2525

26-
"istio.io/istio/mixer/pkg/pool"
26+
"istio.io/pkg/pool"
2727
)
2828

2929
// This file contains common utility functions that adapters need to process content

mixer/pkg/adapter/test/integration.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ import (
3535

3636
istio_mixer_v1 "istio.io/api/mixer/v1"
3737
"istio.io/istio/mixer/pkg/adapter"
38-
"istio.io/istio/mixer/pkg/attribute"
38+
attr "istio.io/istio/mixer/pkg/attribute"
3939
"istio.io/istio/mixer/pkg/config/storetest"
4040
"istio.io/istio/mixer/pkg/server"
4141
"istio.io/istio/mixer/pkg/template"
4242
template2 "istio.io/istio/mixer/template"
4343
"istio.io/istio/pilot/test/util"
44+
"istio.io/pkg/attribute"
4445
)
4546

4647
// Utility to help write Mixer-adapter integration tests.
@@ -397,7 +398,7 @@ func getAttrBag(attrs map[string]interface{}) istio_mixer_v1.CompressedAttribute
397398
}
398399

399400
var attrProto istio_mixer_v1.CompressedAttributes
400-
requestBag.ToProto(&attrProto, nil, 0)
401+
attr.ToProto(requestBag, &attrProto, nil, 0)
401402
return attrProto
402403
}
403404

0 commit comments

Comments
 (0)