Skip to content

Commit 853fa95

Browse files
committed
remove debug code
Signed-off-by: roc <[email protected]>
1 parent fc3c78c commit 853fa95

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/controller/clbportpool_controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"sigs.k8s.io/controller-runtime/pkg/client"
3232
"sigs.k8s.io/controller-runtime/pkg/controller"
3333
"sigs.k8s.io/controller-runtime/pkg/handler"
34-
"sigs.k8s.io/controller-runtime/pkg/log"
3534
"sigs.k8s.io/controller-runtime/pkg/source"
3635

3736
networkingv1alpha1 "github.com/imroc/tke-extend-network-controller/api/v1alpha1"
@@ -142,7 +141,6 @@ func (r *CLBPortPoolReconciler) ensureExistedLB(ctx context.Context, pool *netwo
142141
lbToAdd := []networkingv1alpha1.LoadBalancerStatus{}
143142
lbNotExisted := []string{}
144143
lbInfos := getCLBInfoFromContext(ctx)
145-
log.FromContext(ctx).V(10).Info("getCLBInfoFromContext", "lbInfos", lbInfos)
146144
if lbInfos == nil {
147145
return nil
148146
}
@@ -248,7 +246,6 @@ func (r *CLBPortPoolReconciler) ensureLb(ctx context.Context, pool *networkingv1
248246
return errors.WithStack(err)
249247
} else {
250248
ctx = context.WithValue(ctx, lbInfoKey, info)
251-
log.FromContext(ctx).V(10).Info("set lb info", "info", info)
252249
}
253250
// 确保已有 lb 被添加到 status 中
254251
if err := r.ensureExistedLB(ctx, pool); err != nil {

0 commit comments

Comments
 (0)