File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ type Controller struct {
69
69
grpcroutequeue workqueue.TypedRateLimitingInterface [string ]
70
70
71
71
// envoyproxy control plane
72
+ xdscache envoyproxycache.SnapshotCache
72
73
xdsserver envoyproxyserver.Server
73
74
xdsLocalAddress string
74
75
xdsLocalPort int
@@ -271,8 +272,8 @@ func (c *Controller) Run(ctx context.Context) error {
271
272
272
273
klog .Info ("Starting Envoy proxy controller" )
273
274
// Create a cache
274
- envoycache : = envoyproxycache .NewSnapshotCache (false , envoyproxycache.IDHash {}, nil )
275
- c .xdsserver = envoyproxyserver .NewServer (ctx , envoycache , nil )
275
+ c . xdscache = envoyproxycache .NewSnapshotCache (false , envoyproxycache.IDHash {}, nil )
276
+ c .xdsserver = envoyproxyserver .NewServer (ctx , c . xdscache , nil )
276
277
277
278
var grpcOptions []grpc.ServerOption
278
279
grpcOptions = append (grpcOptions ,
You can’t perform that action at this time.
0 commit comments