From 1fbf7fd155443d199b36c5ed5898a61c8bbd6420 Mon Sep 17 00:00:00 2001 From: gujing <925973396@qq.com> Date: Wed, 3 Mar 2021 17:01:58 +0800 Subject: [PATCH] update vServerGroupId of http listener --- cloud-controller-manager/listeners.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/cloud-controller-manager/listeners.go b/cloud-controller-manager/listeners.go index 974fba1df..9da17b15c 100644 --- a/cloud-controller-manager/listeners.go +++ b/cloud-controller-manager/listeners.go @@ -1092,14 +1092,11 @@ func (t *http) Update(ctx context.Context) error { } needUpdate := false needRecreate := false - /* - if request.Bandwidth != 0 && - request.Bandwidth != response.Bandwidth { - needUpdate = true - config.Bandwidth = request.Bandwidth - klog.V(2).Infof("HTTP listener checker [bandwidth] changed, request=%d. response=%d", request.Bandwidth, response.Bandwidth) - } - */ + + if response.VServerGroupId != "" && + response.VServerGroupId != config.VServerGroupId { + needUpdate = true + } if request.AclStatus != "" && def.AclStatus != response.AclStatus { needUpdate = true